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
border-image-repeat:round output doesn't match other browsers #11668
border-image-repeat:round output doesn't match other browsers #11668
Conversation
EWS run on previous version of this PR (hash 2637927) |
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.
Can we see the WPT progressions in this patch?
I'll update the test expectations shortly. I wanted to see if EWS found any other issues. |
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.
Does this implement this part of the spec?
"The middle image's width is scaled by the same factor as the top image unless that factor is zero or infinity, in which case the scaling factor of the bottom is substituted, and failing that, the width is not scaled. The height of the middle image is scaled by the same factor as the left image unless that factor is zero or infinity, in which case the scaling factor of the right image is substituted, and failing that, the height is not scaled."
I believe this logic is implemented in |
2637927
to
40ea80c
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.
r=me but please export to WPT
@@ -6,6 +6,7 @@ | |||
<link rel="help" href="http://www.w3.org/TR/css3-background/#border-images"> | |||
<link rel="match" href="reference/border-image-repeat-round-ref.html"> | |||
<meta name="assert" content="diamonds in corners should be red, and other diamonds should be orange, it should be 4 orange diamonds on each side."> | |||
<meta name="fuzzy" content="0-92;0-3435"> |
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.
Please use the longhand form for clarity, here and below.
<meta name="fuzzy" content="0-92;0-3435"> | |
<meta name="fuzzy" content="maxDifference=0-92;totalPixels=0-3435"> |
EWS run on previous version of this PR (hash 40ea80c) |
40ea80c
to
cc788d7
Compare
EWS run on previous version of this PR (hash cc788d7) |
cc788d7
to
c64f115
Compare
EWS run on current version of this PR (hash c64f115) |
c64f115
to
78a59f4
Compare
https://bugs.webkit.org/show_bug.cgi?id=155955 <rdar://problem/28213711> Reviewed by Tim Nguyen. The RoundTile and SpaceTile didn't take the scale factors computed in NinePieceImage, so would arrive at incorrect counts. This caused the logic to scale images when it should have left them unscaled, and simply tiled (or spaced) the elements. This change progresses four WPT tests: (1) border-image-repeat-round.html (2) border-image-round-and-stretch.html (3) border-image-slice-percentage-test.html (4) border-image-space-001.html * Source/WebCore/platform/graphics/Image.cpp: (WebCore::Image::drawTiled): Canonical link: https://commits.webkit.org/261903@main
78a59f4
to
255da9f
Compare
Committed 261903@main (255da9f): https://commits.webkit.org/261903@main Reviewed commits have been landed. Closing PR #11668 and removing active labels. |
255da9f
c64f115
π wincairoπ mac-AS-debugπ§ͺ wpe-wk2π§ͺ ios-wk2π§ͺ api-macπ§ͺ api-iosπ§ͺ mac-wk1π§ͺ gtk-wk2π§ͺ mac-wk2π§ͺ api-gtkπ tv-simπ§ͺ mac-AS-debug-wk2π watchπ§ͺ mac-wk2-stress