Skip to content

Commit aedfb0d

Browse files
committed
[css-color-5] Fix error in example caused by w3c@59972ba
1 parent b6e3e2d commit aedfb0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-color-5/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,15 +942,15 @@ Relative color syntax is only applicable to the non-legacy RGB syntactic forms.
942942
<a>legacy color syntax</a> would be incorrect
943943

944944
<pre>
945-
rgba(from <span class="swatch" style="--color: darkblue"></span> 16 32 b / 0.5 )
945+
rgba(from <span class="swatch" style="--color: darkblue"></span> darkblue 16 32 b / 0.5 )
946946
</pre>
947947
</div>
948948

949949
<div class="example">
950950
Instead, use
951951

952952
<pre>
953-
rgb(from <span class="swatch" style="--color: darkblue"></span> 16 32 b / 0.5 )
953+
rgb(from <span class="swatch" style="--color: darkblue"></span> darkblue 16 32 b / 0.5 )
954954
</pre>
955955

956956
This takes the sRGB value of darkblue (0 0 139) and replaces

0 commit comments

Comments
 (0)