Skip to content

Commit

Permalink
Test priority of cICP over iCCP (#44644)
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus authored and marcoscaceres committed Feb 23, 2024
1 parent 2984301 commit 9b092f9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions png/cICP-wins-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>PNG Third Edition: Coding Independent Code Points</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<style>
.test {
width: 128px;
height: 64px;
background-color: green;
}
</style>
<body>
<p>Test passes if you see a green rectangle, and no red.</p>
<div class="test"><img src="support/srgb_green.png" alt=""></div>
</body>
</html>
22 changes: 22 additions & 0 deletions png/cICP-wins.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>PNG Third Edition: Coding Independent Code Points</title>
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
<link rel="help" href="https://www.w3.org/TR/png-3/#11iCCP">
<link rel="help" href="https://www.w3.org/TR/png-3/#cICP-chunk">

<link rel="match" href="cICP-wins-ref.html">
<meta name="assert" content="When the cICP chunk is present, decoders that recognize it SHALL ignore iCCP">
<style>
.test {
width: 128px;
height: 64px;
background-color: red;
}
</style>
<body>
<p>Test passes if you see a green rectangle, and no red.</p>
<div class="test"><img src="support/cICP-and-iCCP.png" alt=""></div>
</body>
</html>
Binary file added png/support/cICP-and-iCCP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/support/srgb_green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b092f9

Please sign in to comment.