mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibGfx/PNG: Read the cICP chunk
This commit is contained in:
parent
cffc8678d8
commit
a144481e6c
Notes:
github-actions[bot]
2025-02-12 17:26:09 +00:00
Author: https://github.com/LucasChollet
Commit: a144481e6c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3502
Reviewed-by: https://github.com/trflynn89
10 changed files with 94 additions and 6 deletions
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>PNG Third Edition: animated PNG</title>
|
||||
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
|
||||
<body>
|
||||
<p>Test passes if you see a lime green rectangle, and no red.</p>
|
||||
<div class="test"><img src="support/lime.png" alt=""></div>
|
||||
</body>
|
BIN
Tests/LibWeb/Ref/expected/wpt-import/png/apng/support/lime.png
Normal file
BIN
Tests/LibWeb/Ref/expected/wpt-import/png/apng/support/lime.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 179 B |
17
Tests/LibWeb/Ref/expected/wpt-import/png/cICP-wins-ref.html
Normal file
17
Tests/LibWeb/Ref/expected/wpt-import/png/cICP-wins-ref.html
Normal file
|
@ -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>
|
BIN
Tests/LibWeb/Ref/expected/wpt-import/png/support/srgb_green.png
Normal file
BIN
Tests/LibWeb/Ref/expected/wpt-import/png/support/srgb_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 B |
Loading…
Add table
Add a link
Reference in a new issue