Files
firefox/testing/web-platform/tests/css/css-transforms/reference
Daniel Holbert 555976871d Bug 1842714 [wpt PR 40961] - Rework skew-test1.html to have more reliable expectations., a=testonly
Automatic update from web-platform-tests
Rework skew-test1.html to have more reliable expectations. (#40961)

The old version of this test produced a polygon without precisely-representable
vertices, which turned out to be problematic. The reference case might have
been correct, but all browsers still had fuzzy-failures, and at least two
engines (WebKit and Gecko) required fuzzy-tolerances that would allow nearly
1000 pixels to differ by essentially arbitrarily-large amounts in any color
channel.

This reworked version of the test uses multiples of 45deg for the skew angles,
which produces a diamond shape whose bounding-box is exactly 2x the width of
the original square. This exactness makes the test's expectations easier to
reason about and validate.

This reworked version of the test also uses the common "covered-up-target" test
approach, to ensure that the transformed shape is the correct size, shape, and
position, without suffering from fuzzy-failures that arise from antialiasing or
pixel-snapping variability.

This implements my proposal in
https://github.com/web-platform-tests/interop/issues/378
--

wpt-commits: a3ab613d616a3c1598806287b2daf23ca9553b88
wpt-pr: 40961
2023-07-20 10:31:27 +00:00
..