Bug 1404222 Part 8: 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 773448 2d3ef32d4fde0a736e1ab9675bc17dead72f844e
parent 773447 aaee6016f93ae683a82da1e8e58d3ab5503c7314
child 773449 d55ea2b9b4f26f6f8aad09be654ad2fecc554a6b
push id104237
push userbwerth@mozilla.com
push dateTue, 27 Mar 2018 23:13:03 +0000
bugs1404222
milestone61.0a1
Bug 1404222 Part 8: 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;