Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions css-color-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2808,15 +2808,10 @@ or any other color or monochrome output device which has been characterized.
if the <a>used color scheme</a> is ''light'' or unknown,
or the second image,
if the <a>used color scheme</a> is ''dark''.
The none keyword
produces a fully transparent image
with no natural size.

It is equivalent to a single-stop gradient whose stop color is ''transparent''':

<pre class="lang-css">
linear-gradient(transparent)
</pre>
The <dfn value for="light-dark()">none</dfn> keyword
computes to ''image(transparent)''
(a fully transparent image with no natural size).

<div class="example" id="ex-light-dark-color">
For example, to maintain a legible contrast on links,
Expand Down Expand Up @@ -2866,6 +2861,12 @@ or any other color or monochrome output device which has been characterized.
<pre class="lang-css">
background-image: light-dark(url(my-light-image.png), none);
</pre>

This is equivalent to:

<pre class="lang-css">
background-image: light-dark(url(my-light-image.png), image(transparent));
</pre>
</div>


Expand Down
6 changes: 5 additions & 1 deletion css-images-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,11 @@ Image Fallbacks and Annotations: the ''image()'' notation {#image-notation}
one can use this as a simple way to "tint" a background image,
by overlaying a partially-transparent color over the top of the other image:

<pre class="lang-css">background-image: image(rgba(0,0,255,.5)), url("bg-image.png");</pre>
<pre class="lang-css">background-image: image(rgba(0, 0, 255, .5)), url("bg-image.png");</pre>

This is equivalent to a single color stop gradient:

<pre class="lang-css">background-image: linear-gradient(rgba(0, 0, 255, .5)), url("bg-image.png");</pre>

'background-color' does not work for this,
as the solid color it generates always lies <em>beneath</em> all the background images.
Expand Down
6 changes: 5 additions & 1 deletion css-images-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,11 @@ Image Fallbacks and Annotations: the ''image()'' notation {#image-notation}
one can use this as a simple way to "tint" a background image,
by overlaying a partially-transparent color over the top of the other image:

<pre class="lang-css">background-image: image(rgba(0,0,255,.5)), url("bg-image.png");</pre>
<pre class="lang-css">background-image: image(rgba(0, 0, 255, .5)), url("bg-image.png");</pre>

This is equivalent to a single color stop gradient:

<pre class="lang-css">background-image: linear-gradient(rgba(0, 0, 255, .5)), url("bg-image.png");</pre>

'background-color' does not work for this,
as the solid color it generates always lies <em>beneath</em> all the background images.
Expand Down
Loading