11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: cascade.src,v 2.9 1998-02-24 22:52:37 ijacobs Exp $ -->
3+ <!-- $Id: cascade.src,v 2.10 1998-03-09 16: 22:00 bbos Exp $ -->
44<HEAD>
55<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
@@ -276,13 +276,11 @@ must apply the following algorithm:</p>
276276 declarations apply, terminate the algorithm.
277277
278278 <LI>
279- Sort the declarations by explicit weight.
280- <span class="index-inst" title="!override">!override</span>
281- declarations, which may only appear in user style sheets,
282- carry more weight than "!important" declarations.
283- <span class="index-inst" title="!important">!important</span>
284- declarations carry more weight than normal (unmarked)
285- declarations.
279+ Sort the declarations by weight.
280+ <span class="index-def" title="important">"!important"</span>
281+ declarations in the user's style sheet have more weight than
282+ all other declarations.
283+
286284 <LI>
287285 Sort by origin: the author's style sheets override the user's
288286 style sheets which override the default style sheet. An imported
@@ -306,10 +304,14 @@ must apply the following algorithm:</p>
306304the above steps yields a rule that has a higher weight than the other
307305rules that apply to the same element/property combination.
308306
309- <P> This strategy gives author's style sheets considerably higher
310- weight than those of the reader. It is therefore important that the
311- User agent gives the user the ability to turn off the influence of a
312- certain style sheet, e.g., through a pull-down menu.
307+ <P>Note that "!important" may occur in author's and UA's style sheets,
308+ but only has an effect in the user's style sheets.
309+
310+ <P> Apart from the "!important" setting on individual declarations,
311+ this strategy gives author's style sheets higher weight than those of
312+ the reader. It is therefore important that the User Agent gives the
313+ user the ability to turn off the influence of a certain style sheet,
314+ e.g., through a pull-down menu.
313315
314316<H3><a name="important-rules">!override and !important rules</a></H3>
315317
0 commit comments