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
declarations, user style sheets override author style sheets
299
-
which override the default style sheet.
300
-
"!important" declaration override normal declarations.
301
-
An imported style sheet has the same
302
-
origin as the style sheet that imported it.
293
+
<!-- HWL 20020423: editorial change to description of weight/origin -->
294
+
295
+
<LI>The primary sort of the declarations is by weight (normal or important) and origin (author, user, or user agent). The weight of style sheets, in ascending order, is:
296
+
297
+
<ol>
298
+
<li>user agent style sheets
299
+
<li>user normal style sheets
300
+
<li>author normal style sheets
301
+
<li>author important style sheets
302
+
<li>user important style sheets
303
+
</ol>
303
304
304
305
<LI>
305
306
The secondary sort is by <a href="#specificity">specificity</a>
@@ -335,11 +336,16 @@ declaration. Both author and user style sheets may contain
335
336
of documents by giving users with special requirements (large
336
337
fonts, color combinations, etc.) control over presentation.
337
338
339
+
340
+
<!-- HWL 20020423: removed historical note -->
341
+
342
+
<!--
338
343
<div class="note"><P>
339
344
<em><strong>Note.</strong>
340
345
This is a semantic change since CSS1. In CSS1, author "!important"
341
346
rules took precedence over user "!important" rules. </em>
342
347
</div>
348
+
-->
343
349
344
350
<P>Declaring a <span class="index-inst" title="shorthand
345
351
property">shorthand property</span> (e.g., <span
@@ -419,7 +425,7 @@ Some examples:
419
425
</BODY>
420
426
</PRE>
421
427
422
-
<P>In the above example, the color of the P element would be
428
+
<P>In the above example, the color of the P element would be
423
429
green. The declaration in the "style" attribute will override the one in
424
430
the STYLE element because of cascading rule 3, since it has a higher
425
431
specificity.
@@ -433,6 +439,17 @@ defined as an "ID" in the source document's DTD.
433
439
434
440
<H3>Precedence of non-CSS presentational hints</H3>
435
441
442
+
<p>If the user agent chooses to honor presentational hints from other
443
+
sources than style sheets, these hints must be given the same weight
444
+
as the user agent's default style sheet.
445
+
446
+
<div class="note">
447
+
<P><em><strong>Note.</strong>
448
+
Non-CSS presentational hints had a higher weight in CSS2.
449
+
</div>
450
+
451
+
<!-- HWL 20020423: replaced description of presentational hints -->
452
+
<!--
436
453
<P>The UA may choose to honor presentational hints from other sources
437
454
than style sheets, for example the FONT element or the "align"
438
455
attribute in HTML. If so, the non-CSS presentational hints must be
@@ -454,7 +471,7 @@ equal to 1, not 0. The change is due to the introduction of the
0 commit comments