layout: Pass degrees to the WebRender hue rotate filter#41063
layout: Pass degrees to the WebRender hue rotate filter#41063yezhizhen merged 3 commits intoservo:mainfrom
Conversation
|
🔨 Triggering try run (#19952101166) for Linux (WPT) |
|
Test results for linux-wpt from try job (#19952101166): Flaky unexpected result (30)
Stable unexpected results that are known to be intermittent (20)
Stable unexpected results (1)
|
|
|
|
Can you investigate a bit about why |
|
It fails because of the way that SVG is treated, same as <!DOCTYPE html>
<style>body > * { border: solid }</style>
<img src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' style='background: cyan'></svg>">
<svg style='background: cyan'></svg>So just mark it as failing. But this needs a new automated test. See https://web-platform-tests.org/writing-tests/reftests.html You can e.g. start with a red square, hue-rotate to green, then compare with |
|
Updated the title, because this isn't just a "typo!" Thanks for catching this. |
Signed-off-by: anonmiraj <[email protected]>
b9f6de7 to
0e0fae3
Compare
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#56546) with upstreamable changes. |
Signed-off-by: anonmiraj <[email protected]>
Signed-off-by: anonmiraj <[email protected]>
0e0fae3 to
3e99d9e
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#56546). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#56546) title and body. |
yezhizhen
left a comment
There was a problem hiding this comment.
Thanks. I updated the body.
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.
Testing: the demo html file now works as expected. Added a new test.
Fixes: #40955