Tests: Import a few ICC profiles related tests

This commit is contained in:
Lucas CHOLLET 2024-12-15 15:59:06 -05:00 committed by Tim Ledbetter
parent 2b56a53d41
commit 9261688488
Notes: github-actions[bot] 2024-12-19 09:55:24 +00:00
10 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: Color Space of Tagged Images. HTML img</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<body>
<p>Test passes if you see a green square, and no red.</p>
<!-- solid color #009900 PNG image, untagged -->
<p><img src="./support/009900.png" alt="should be green"/></p>
</body>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: Color Space of Tagged Images. HTML img</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<body>
<p>Test passes if you see a green square, and no red.</p>
<!--
solid color #990000 PNG image, iCCP with v2 profile
red-green swapped to be sure the profile is actually applied
-->
<p><img src="./support/swap-990000-iCCP.png" alt="should be green"/></p>
</body>

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: Color Space of Tagged Images. HTML img</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#tagged-images">
<link rel="help" href="https://w3c.github.io/PNG-spec/#11iCCP">
<meta name="assert" content="Tagged RGB images... if the color profile or other identifying information is valid, must be treated as being in the specified color space.">
<link rel="match" href="../../../../expected/wpt-import/css/css-color/009900-image-ref.html">
<body>
<p>Test passes if you see a green square, and no red.</p>
<!-- solid color #990000 PNG image, iCCP with v2 ICC swapped red-green sRGB profile -->
<p><img src="./support/swap-990000-iCCP.png" alt="should be green"/></p>
</body>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: Color Space of Tagged Images. HTML img</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#tagged-images">
<link rel="help" href="https://w3c.github.io/PNG-spec/#11sRGB">
<meta name="assert" content="Tagged RGB images... if the color profile or other identifying information is valid, must be treated as being in the specified color space.">
<link rel="match" href="../../../../expected/wpt-import/css/css-color/009900-image-ref.html">
<body>
<p>Test passes if you see a green square, and no red.</p>
<!-- solid color #009900 PNG image, sRGB chunk, relative colorimetric -->
<p><img src="./support/009900-sRGB.png" alt="should be green"/></p>
</body>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Color 4: Color Spaces of Untagged Colors</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://drafts.csswg.org/css-color-4/#untagged">
<meta name="assert" content=" untagged images must be treated as being in the sRGB color space">
<link rel="match" href="../../../../expected/wpt-import/css/css-color/009900-tagged-image-ref.html">
<body>
<p>Test passes if you see a green square, and no red.</p>
<!-- solid color #009900 PNG image, no color information -->
<p><img src="./support/009900.png" alt="should be green"/></p>
</body>