You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css2/colors.html
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -109,14 +109,16 @@ <h2><a name="q2">14.2 The background</a></h2>
109
109
</p>
110
110
111
111
<p>For HTML documents, however, we recommend that authors specify the
112
-
background for the BODY element rather than the HTML element. User
113
-
agents should observe the following precedence rules to fill in the
114
-
background of the canvas of HTML documents:
115
-
if the value of the <ahref="colors.html#propdef-background" class="noxref"><spanclass="propinst-background">'background'</span></a> property for the HTML
116
-
element is different from 'transparent' then use it, else use the
117
-
value of the <ahref="colors.html#propdef-background" class="noxref"><spanclass="propinst-background">'background'</span></a>
118
-
property for the BODY element. If the resulting value is
119
-
'transparent', the rendering is undefined. This does not apply to XHTML documents.
112
+
background for the BODY element rather than the HTML element.
113
+
For HTML documents whose root HTML element has computed values of
114
+
'transparent' for <ahref="colors.html#propdef-background-color" class="noxref"><span
115
+
class="propinst-background-color">'background-color'</span></a> and 'none'
116
+
for <ahref="colors.html#propdef-background-image" class="noxref"><spanclass="propinst-background-image">'background-image'</span></a>,
117
+
user agents must instead use the computed value of those properties
118
+
from that HTML element's first BODY element child when painting
119
+
backgrounds for the canvas, and must not paint a background for that
120
+
BODY element.
121
+
This does not apply to XHTML documents.
120
122
</p>
121
123
<divclass="html-example"><p>
122
124
According to these rules, the canvas underlying the following
with the "alternate" keyword in HTML 4.0 <ahref="refs.html#ref-HTML40" rel="biblioentry" class="noxref"><spanclass="informref">[HTML40]</span></a>), the UA must
347
360
allow the user to select which style sheet set the UA should apply.
348
361
349
-
<li>User agents must give the user the ability to turn off the
350
-
influence of specific author style sheets. Conformance to UAAG 1.0
351
-
checkpoint 4.14 satisfies this condition [[-UUAG]].
352
-
353
362
<li>The UA must allow the user to turn off the influence of author style sheets.
<pclass="note">Note: implementation experience has demonstrated that a fixed ratio between adjacent absolute-size keywords is problematic, and this specification does NOT recommend such a fixed ratio, in contrast to previous specifications (<ahref="http://www.w3.org/TR/REC-CSS1#font-size">CSS1 suggested 1.5</a>, and <ahref="http://www.w3.org/TR/REC-CSS2/fonts.html#font-size-props">CSS2 suggested 1.2</a>).</p>
574
+
575
+
<p>Implementors should build a table of scaling factors for absolute-size keywords relative to the 'medium' font size and the particular device and its characteristics (e.g. the resolution of the device).
576
+
</p>
577
+
585
578
<p>
586
579
Different media may need different scaling factors. Also, the UA
587
580
should take the quality and availability of fonts into account when
0 commit comments