RE: !important

Hello,

Results for IE 5.5:

IE 5.5 for Windows gives the user's !important precedence over the author's 
!important.  However, it only takes effect after opening a new page; a 
refresh doesn't make all of the changes.

I used the attached user style sheet to look at Joel's example page.  Since 
he only declared font-size as important, that's the only thing I can't 
change w/my style sheet with a page refresh. Once I  open it in a new page 
i get the smaller font and the serif font-family (rather than arial as he 
defined).  Changes in text color take effect with a page refresh.

--wendy

At 10:48 AM 7/17/01 , Joel Sanda wrote:
>Opera 5.12 for Windows seems to handle the !important declaration. Opera,
>though, can be trickier to test than Netscape or IE because of its
>flexibility with style sheets.
>
>I tossed an example up here:
>http://www.geocities.com/joelsanda/important.htm.
>
>The example's a bit extreme - the p class is defined as arial, 20em, red,
>and declared important. The final paragraph (p.you) (way past the huge red
>letters <grin>) is defined as arial, 20em; black.
>
>Opera 5.12 (Windows) will not override the normal p class, but will allow me
>to modify the p class with user preferences or by loading an external user
>style sheet.
>
>This should conform to CSS Level 1.
>
>Joel Sanda
>Product Manager
>-------------------------------------------------------www.eCollege.com
>eCollege
>joels@ecollege.com
> > p. 303.873.7400 x3021
> > f.  303.632.1721
>
>
>-----Original Message-----
>From: Wendy A Chisholm [mailto:wendy@w3.org]
>Sent: Monday, July 16, 2001 5:14 PM
>To: w3c-wai-gl@w3.org
>Cc: w3c-wai-ua@w3.org
>Subject: !important
>
>
>Hello,
>
>Does anyone know if current user agents have implemented !important as
>defined in CSS1 or as in CSS2 - i.e. in CSS1 the author has preference, in
>CSS2 it's the user.
>
>I'm assuming it's per the CSS1 spec since that is more widely implemented
>than CSS2.
>
>Sorry for the cross-post.  Please provide a reference with your response.
>
>WebReview only shows !important in the CSS1 chart and not the CSS2 list
>(which  they warn is not complete).
>
>Thanks,
>--wendy
>--
>wendy a chisholm
>world wide web consortium
>web accessibility initiative
>seattle, wa usa
>tel: +1 206.706.5263
>/--
--
wendy a chisholm
world wide web consortium
web accessibility initiative
seattle, wa usa
tel: +1 206.706.5263
/--

Received on Tuesday, 17 July 2001 13:31:25 UTC