Skip to content

Commit b61504b

Browse files
committed
[css-color-4] Remove the 'color-correction' property per resolution yesterday, but move the parts that should still be specified earlier in the spec.
1 parent c695ca5 commit b61504b

File tree

1 file changed

+14
-61
lines changed

1 file changed

+14
-61
lines changed

css-color/Overview.bs

+14-61
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,20 @@ Notes On Using Colors</h3>
144144
<li><a href="http://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-without-color"><em>1.4.1 Use of Color:</em> Color is not used as the only visual means of conveying information, indicating an action, prompting a response, or distinguishing a visual element</a>
145145
</ul>
146146

147+
<h3 id='sRGB'>Colors in sRGB</h3>
148+
149+
Colors specified in CSS, HTML, and untagged images are in the sRGB color space ([[!SRGB]]).
150+
151+
<p class="note">This is not yet reliably implemented across implementations, though it has been shown to be implementable. Implementing it compatibly may require notifying plugins to treat untagged colors in the same way to avoid issues with colors not matching each other within a page.</p>
152+
153+
An <dfn export>untagged image</dfn> is an image that is not explicitly assigned a color profile, as defined by the image format.
154+
155+
Note that this rule does not apply to videos, since untagged video should be presumed to be in CCIR 601.
156+
157+
<p class="issue">
158+
Really? Shouldn't video be consistent with images?
159+
Or do implementations really do this differently?
160+
</p>
147161

148162
<h2 id='numeric-rgb'>
149163
RGB Colors</h2>
@@ -2159,67 +2173,6 @@ Simple alpha compositing</h3>
21592173
are not implemented or do not apply, implementations must act as though they have their initial values.)
21602174

21612175

2162-
<h2 id='color-management'>
2163-
Color Management: the 'color-correction' property</h2>
2164-
2165-
CSS Level 1 ([[CSS1]]), CSS Level 2 ([[!CSS21]]), and CSS Color Level 3 ([[CSS3COLOR]])
2166-
define colors specified in CSS to be in the sRGB color space ([[!SRGB]]).
2167-
However, most or all existing Web browser implementations do not correct colors specified in HTML, CSS, or untagged images
2168-
even when the proper correction is known.
2169-
2170-
If browsers did so,
2171-
it would make the colors displayed in Web pages more consistent between different displays and operating systems.
2172-
However, a more important type of consistency is the consistency of colors in different parts of a page on the same display,
2173-
such as between colors specified in style sheets and colors in images,
2174-
or between those colors and colors drawn by plugins.
2175-
Improving the consistency of colors between different displays, therefore,
2176-
requires care not to cause the worse problem of inconsistency of colors on the same display.
2177-
2178-
In the long run, we hope that it might be possible for implementations to switch to
2179-
treating CSS colors and colors in untagged images as being in sRGB by default.
2180-
(This may depend on additions for color management being made to the plugin API and popular plugins using those additions.)
2181-
Therefore, this specification provides a way to clearly opt in to that correct behavior,
2182-
but provides an default behavior (initial value) that may be equivalent to this opt-in.
2183-
2184-
<pre class='propdef'>
2185-
Name: color-correction
2186-
Value: auto | sRGB
2187-
Initial: auto
2188-
Applies to: all elements
2189-
Inherited: yes
2190-
Percentages: N/A
2191-
Media: visual
2192-
Computed value: as specified
2193-
</pre>
2194-
2195-
The 'color-correction' property specifies the color space that colors specified in CSS
2196-
and colors in <a>untagged images</a> are in.
2197-
An <dfn export>untagged image</dfn> is an image that is not explicitly assigned a color profile,
2198-
as defined by the image format.
2199-
It does not apply to videos, since untagged video should be presumed to be in CCIR 601.
2200-
2201-
<p class="issue">
2202-
Really? Shouldn't video be consistent with images?
2203-
Or do implementations really do this differently?
2204-
2205-
<dl dfn-type=value dfn-for="color-correction">
2206-
<dt><dfn>sRGB</dfn>
2207-
<dd>
2208-
Colors specified in CSS
2209-
and colors in <a>untagged images</a>
2210-
are in the sRGB color space.
2211-
2212-
<dt><dfn>auto</dfn>
2213-
<dd>
2214-
The color space for colors specified in CSS and colors in <a>untagged images</a> is not defined.
2215-
However, implementations must use a single color space for such colors so that they match each other.
2216-
When doing so would not cause color mismatches with content such as plugins,
2217-
implementations should treat ''auto'' the same as ''sRGB''.
2218-
</dl>
2219-
2220-
Note: The initial value of this property may change in a future level of this specification.
2221-
2222-
22232176
<h2 id='color-adjust'>
22242177
Preserving Colors in Different-Capability Devices: the 'color-adjust' property</h2>
22252178

0 commit comments

Comments
 (0)