Skip to content

Commit 348ed07

Browse files
committed
[css-color-4] add example with multiple fallbacks
1 parent 26fe81a commit 348ed07

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

css-color-4/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,6 +2434,14 @@ Profiled, Device-dependent Colors</h2>
24342434
the fallback color will be used.
24352435
</div>
24362436

2437+
<div class="example">
2438+
An intense green is provided in prophoto-rgb space.
2439+
It has a first fallback, which is the same color in display-p3
2440+
in case prophoto is unsupported. The color is in gamut of display-p3.
2441+
Lastly, a desaturated sRGB fallback is provided.
2442+
<pre class="lang-css">color(prophoto-rgb 0.4835 0.9167 0.2188, display-p3 0.3499 0.9800 0.1399, rgb(33.44% 96.68% 21.07%))/pre>
2443+
</div>
2444+
24372445
<h3 id="predefined">
24382446
Predefined colorspaces: ''srgb'', ''display-p3'', ''a98-rgb'', ''prophoto-rgb'', ''rec2020'',
24392447
''xyz'' and ''lab'''.</h3>

0 commit comments

Comments
 (0)