mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb/CSS: Add support for the srgb
color space in color()
It makes the following WPT tests pass: - css/css-color/predefined-001.html - css/css-color/xyz-003.html - css/css-color/xyz-d50-003.html - css/css-color/xyz-d50-004.html - css/css-color/xyz-d65-003.html Also we now render the reference of color-mix-currentcolor-nested-for- color-property.html properly. Which means that it's now different from the actual test, that is still rendered incorrectly. In other word, the false positive for this test is now turned into a true negative.
This commit is contained in:
parent
3b04c983f1
commit
a3ef24e30a
Notes:
github-actions[bot]
2024-11-14 09:27:29 +00:00
Author: https://github.com/LucasChollet
Commit: a3ef24e30a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2329
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 37 additions and 2 deletions
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Green square #009900 reference</title>
|
||||
<style>
|
||||
.test { background-color: #009900; width: 12em; height: 12em;}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if you see a green square, and no red.</p>
|
||||
<div class="test"></div>
|
||||
</body>
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Color 4: predefined colorspaces, srgb, decimal values</title>
|
||||
<link rel="author" title="Chris Lilley" href="mailto:chris@w3.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-color-4/#valdef-color-srgb">
|
||||
<link rel="match" href="../../../../expected/wpt-import/css/css-color/greensquare-090-ref.html">
|
||||
<meta name="assert" content="Color function with explicit srgb value as decimal matches sRGB #009900">
|
||||
<style>
|
||||
.test { background-color: red; width: 12em; height: 6em; margin-top:0}
|
||||
.ref { background-color: #009900; width: 12em; height: 6em; margin-bottom: 0}
|
||||
.test {background-color: color(srgb 0 0.6 0)}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if you see a green square, and no red.</p>
|
||||
<p class="ref"> </p>
|
||||
<p class="test"> </p>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue