New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SVG] Default for x1, y1 and y2 is 0% for LinearGradient #6731
Conversation
EWS run on previous version of this PR (hash 59a6b64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any WPT test that already covers this?
A reftest that checks the rendering would be useful, to proof the visual effect is correct too.
I checked via some keywords to see if there is any WPT but I couldn't manage to find it. :-( You want new tests beside this test for linear gradient? Or want me to change "expected file" of this test?
59a6b64
to
70463bd
Compare
EWS run on previous version of this PR (hash 70463bd)
|
EWS run on previous version of this PR (hash 70463bd)
|
@nikolaszimmermann - I added the tests but it seems that it might not be an easy fix and would need some more changes. Since prior to my latest push, the added test was still failing after the changes. So I think it might need more fixing. |
70463bd
to
07252d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to say, svg/gradients is a more natural place for these tests. However, I still wonder if there is WPT coverage?
EWS run on previous version of this PR (hash 07252d7)
|
Do you want me to change them to gradient or wait till whole EWS to run to see if there is any WPT coverage and then do one final push to get everything sorted? |
EWS run on previous version of this PR (hash 07252d7)
|
07252d7
to
2bd9d54
Compare
EWS run on previous version of this PR (hash 2bd9d54)
|
EWS run on current version of this PR (hash 2bd9d54)
|
@nikolaszimmermann - Moved to SVG/Gradient and also fixed the other stuff. :-) |
2bd9d54
to
a757bd5
Compare
EWS run on current version of this PR (hash a757bd5)
|
Now it is good to go for your review. mac-wk1 is platform / infra issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, r=me if EWS is fine.
[SVG] Default for x1, y1 and y2 is 0% for LinearGradient https://bugs.webkit.org/show_bug.cgi?id=248212 Reviewed by Nikolas Zimmermann. This patch is to align Webkit with Blink / Chrome and Gecko / Firefox. Merge - https://chromium.googlesource.com/chromium/blink/+/219dff463987f53c22f5f96f35a794246a13538d As per the spec, if the x1|y1|y2 attribute is not specified, the effect is as if a value of "0%" were specified. * Source/WebCore/svg/SVGLinearGradientElement.h: Update default values for x1, y1 and y2 * LayoutTests/svg/gradient/linear-gradient-default-length.html: Add Test Case * LayoutTests/svg/gradient/linear-gradient-default-length-expected.txt: Add Test Case Expectations * LayoutTests/svg/gradient/linear-gradient-y2-default-length.svg: Added Test Case * LayoutTests/svg/gradient/linear-gradient-y2-default-length-expected.svg: Added Test Case Expectations * LayoutTests/svg/gradient/linear-gradient-y1-default-length.svg: Added Test Case * LayoutTests/svg/gradient/linear-gradient-y1-default-length-expected.svg: Added Test Case Expectations * LayoutTests/svg/gradient/linear-gradient-x1-default-length.svg: Added Test Case * LayoutTests/svg/gradient/linear-gradient-x1-default-length-expected.svg: Added Test Case Expectations Canonical link: https://commits.webkit.org/257032@main
a757bd5
to
7a2abd4
Compare
Committed 257032@main (7a2abd4): https://commits.webkit.org/257032@main Reviewed commits have been landed. Closing PR #6731 and removing active labels. |
7a2abd4
a757bd5