Skip to content

layout: Pass degrees to the WebRender hue rotate filter#56546

Merged
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41063
Dec 7, 2025
Merged

layout: Pass degrees to the WebRender hue rotate filter#56546
servo-wpt-sync merged 1 commit intoweb-platform-tests:masterfrom
servo:servo_export_41063

Conversation

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

@servo-wpt-sync servo-wpt-sync commented Dec 6, 2025

Fixes the hue-rotate() CSS filter. The problem was that Servo used angle.radians instead of angle.degrees, so the hue rotation was applied incorrectly. Switching to degrees makes the filter render as expected.

image

Testing: the demo html file now works as expected. Added a new test.
Fixes: #40955

Reviewed in servo/servo#41063

Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

Signed-off-by: anonmiraj <[email protected]>
@servo-wpt-sync servo-wpt-sync merged commit 83f5e99 into web-platform-tests:master Dec 7, 2025
25 checks passed
@servo-wpt-sync servo-wpt-sync deleted the servo_export_41063 branch December 7, 2025 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants