Skip to content

Commit

Permalink
[css-color-4] Disambiguate opacity and alpha, silence bs warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Jan 12, 2024
1 parent 17bb4cd commit 711296f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions css-color-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ Transparency: the 'opacity' property</h3>
</wpt>

<dl>
<dt><dfn dfn-for="opacity"><<alpha-value>></dfn>
<dt><dfn dfn-for="opacity"><<opacity-value>></dfn>
<dd>
The opacity to be applied to the element.
The resulting opacity is applied to the entire element,
Expand All @@ -649,9 +649,10 @@ Transparency: the 'opacity' property</h3>
inline-opacity-float-child.html
</wpt>

Opacity in CSS is typically represented using the <<alpha-value>> syntax,
Opacity in CSS is typically represented using the <<opacity-value>> syntax,
for example in the 'opacity' property
or as the [=alpha component=] in a [=color function=].
or as the [=alpha component=] in a [=color function=],
using the <<alpha-value>> syntax.
Represented as a <<number>>, the useful range of the value is ''0''
(representing full transparency)
to ''1''
Expand Down Expand Up @@ -691,7 +692,7 @@ Transparency: the 'opacity' property</h3>

If separate opacity for each glyph is desired,
it can be achieved by using a color value
which includes opacity,
which includes alpha,
rather than setting the 'opacity' property.

If a box has 'opacity' less than 1,
Expand Down

0 comments on commit 711296f

Please sign in to comment.