Bug 1821357 [wpt PR 38906] - Add tRNS PNG test, a=testonly
commitf2738883cf56d42474ec7acc2723a563e0188a09
authorChris Blume <ProgramMax@gmail.com>
Mon, 20 Mar 2023 19:36:32 +0000 (20 19:36 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 29 Mar 2023 12:50:56 +0000 (29 12:50 +0000)
treea1f3a05d86af1090cbb9ca33177183059620f9ea
parentacab2297ee6d1bb1e010f065dcc5996423f0a4b1
Bug 1821357 [wpt PR 38906] - Add tRNS PNG test, a=testonly

Automatic update from web-platform-tests
Add tRNS PNG test (#38906)

* Add tRNS PNG test

The PNG spec Third Edition clarified that high bits of a tRNS chunk should be
ignored on a lower bit depth image. Previous editions were unclear,
which caused divergent behavior.

This commits adds a PNG image which contains a tRNS chunk with non-zero
values in its high bits. This commit also adds a test to verify these
high bits are ignored.

* Address code review comments

Updated title, added help link, and made the image a relative link.
--

wpt-commits: 7430bc2032e0508178993c81eb84feafb2866057
wpt-pr: 38906
testing/web-platform/tests/images/trns.png [new file with mode: 0644]
testing/web-platform/tests/png/trns-chunk.html [new file with mode: 0644]