Skip to content

Commit

Permalink
Clarify that semi-transparency is preserved
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Feb 5, 2020
1 parent d352465 commit b5603c1
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2599,7 +2599,7 @@ <h3>
</dt>
<dd>
A user agent can present this icon where an icon with a
<a>solid color</a> is needed. The
<a>single color</a> is needed. The
color information in the icon is discarded and only the alpha data
is used.
</dd>
Expand Down Expand Up @@ -2739,7 +2739,7 @@ <h2>
</p>
<p>
If the icon contains transparent pixels, the user agent MUST
composite the icon onto a solid color (eg. white) of the user agent's
composite the icon onto a single color (eg. white) of the user agent's
choice.
</p>
<p class="note">
Expand Down Expand Up @@ -2841,10 +2841,10 @@ <h2 class="icon-title">
</section>
<section>
<h2>
Solid color icons
Single color icons
</h2>
<p>
Some platforms enforce that icons be displayed with a <dfn>solid
Some platforms enforce that icons be displayed with a <dfn>single
color</dfn>, where only the transparency of the icon can be
controlled. As web applications need to across multiple
platforms, it is possible to indicate that an icon can have a
Expand All @@ -2854,15 +2854,12 @@ <h2>
padding in different places throughout the platform.
</p>
<p>
When processing a <a>single-color</a> icon, the user agent MUST NOT use
the red component, green component, or blue component of a pixel. If
it has alpha equal to zero, the user agent SHOULD NOT display it.
If it the alpha component is greater than zero, the user agent SHOULD
display it with any tint.
</p>
<p>
If no single color icon is defined when an icon with a solid color is
expected to be presented, the user agent MAY show a fallback icon.
When processing a <a>single-color</a> icon, the user agent MUST NOT
use the red component, green component, or blue component of a pixel.
The user agent SHOULD display each pixel with its original alpha
value, but with a red, green, and blue value of the user agent's
choosing. It is RECOMMENDED that the user agent use the same color
value for all pixels.
</p>
<p class="note">
Designers of <a>single-color</a> icons are recommended to set all
Expand All @@ -2878,7 +2875,7 @@ <h2>
</p>
<section>
<h3>
Example usage of solid color icons
Example usage of single color icons
</h3>
<h2 class="icon-title">
Usage examples
Expand Down

0 comments on commit b5603c1

Please sign in to comment.