Bug 1404222 Part 11: Fix wpt reftest shape-image-001.html to correct a too-wide container. draft
authorBrad Werth <bwerth@mozilla.com>
Fri, 09 Feb 2018 16:24:03 -0800
changeset 762268 106be1b8d13db8311a7ac42d78b7a44d9f62a226
parent 762267 ddc651fd7a12f52e1c1b3e0310bcebf96dcd912c
child 762269 7aac1638b4b49ea9b487fa99a11b5c1da8de567c
push id101114
push userbwerth@mozilla.com
push dateThu, 01 Mar 2018 23:33:31 +0000
bugs1404222
milestone60.0a1
Bug 1404222 Part 11: Fix wpt reftest shape-image-001.html to correct a too-wide container. 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;