@@ -70,7 +70,7 @@ Preferred Color Schemes {#preferred}
70
70
71
71
* the initial color of the background canvas <span class=issue> find what we name this in other specs</span> ,
72
72
the initial value of the '/color' property,
73
- and the [[css-color-4#system-colors|system colors]]
73
+ and the [[css-color-4#css- system-colors|system colors]]
74
74
* the default colors of scrollbars and other interaction UI
75
75
* the default colors of form controls and other "specially-rendered" elements
76
76
* the default colors of other browser-provided UI, such as "spellcheck" underlines
@@ -215,16 +215,32 @@ Finding the Used Color Scheme {#color-scheme-processing}
215
215
written before color scheme preferences were exposed,
216
216
do not change behavior.
217
217
218
+ Effects of the Used Color Scheme {#color-scheme-effect}
219
+ --------------------------------
220
+
218
221
For all elements,
219
- rendering with a color scheme should affect the colors used in all browser-provided UI for the element--
222
+ rendering with a color scheme should cause the colors used in all browser-provided UI for the element--
220
223
e.g. scrollbars, spellcheck underlines, form controls, etc.--
221
224
to match with the intent of the color scheme.
222
225
223
- For the root element of a page ,
226
+ On the root element,
224
227
rendering with a color scheme additionally must affect the background of the canvas,
225
228
the initial value of the '/color' property,
226
- and the [[css-color-4#system-colors|system colors]] ,
227
- and should affect the page's scrollbars.
229
+ and the used values of the [[css-color-4#css-system-colors|system colors]] ,
230
+ and should also affect the viewport's scrollbars.
231
+
232
+ In order to preserve expected color contrasts,
233
+ in the case of embedded documents typically rendered over a transparent [=canvas=]
234
+ (such as provided via an HTML <{iframe}> element),
235
+ if the used 'color-scheme' of the element
236
+ and the used 'color-scheme' of the embedded document’s root element
237
+ do not match,
238
+ then the UA must use an opaque [=canvas=] of the ''Canvas'' color
239
+ appropriate to the embedded document’s 'color-scheme'
240
+ instead of a transparent canvas.
241
+ This rule does not apply to documents embedded
242
+ via elements intended for graphics
243
+ (such as <{img}> elements embedding an SVG document).
228
244
229
245
The "color-scheme" <{meta}> value {#color-scheme-meta}
230
246
---------------------------------
0 commit comments