Bug 1404222 Part 8: Fix wpt reftest shape-image-001.html to correct a too-wide container. r=dholbert
authorBrad Werth <bwerth@mozilla.com>
Fri, 09 Feb 2018 16:24:03 -0800
changeset 776870 1c17b43d22afbd5e25f6d29c9168f2316b36103b
parent 776869 2fc754735a6f2f6e8d487b40c413fd67a8d9b26d
child 776871 491be7851cfc3e4959af6e22a1adf70d5f7bb168
push id105022
push userdholbert@mozilla.com
push dateTue, 03 Apr 2018 21:03:05 +0000
reviewersdholbert
bugs1404222
milestone61.0a1
Bug 1404222 Part 8: Fix wpt reftest shape-image-001.html to correct a too-wide container. r=dholbert MozReview-Commit-ID: 3fwtUNCqWLX The test currently stretches a 100 x 100 image to 150 pixels wide, which makes the shaded region of the png stretch to 75 pixels. None of the math in the rest of the test accounts for this stretching, and the test fails on all browsers. It seems clear that the intention was to use an unstretched, 100 pixel wide image, which makes the test pass.
testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/shape-image-001.html
--- a/testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/shape-image-001.html
+++ b/testing/web-platform/tests/css/css-shapes/shape-outside/shape-image/shape-image-001.html
@@ -17,17 +17,17 @@
         }
         #test {
             width: 150px;
             color: rgb(0, 100, 0);
             background-color: black;
         }
         #image {
             float: left;
-            width: 150px;
+            width: 100px;
             height: 100px;
             shape-outside: url("support/left-half-rectangle-70.png");
         }
         #failure {
             width: 50px;
             height: 100px;
             background-color: red;
             position: absolute;