Re: practicality of user styleshseets

On Thu, Oct 14, 2010 at 4:19 PM, Felix Miata <mrmazda@earthlink.net> wrote:
> On 2010/10/14 14:30 (GMT-0400) Boris Zbarsky composed:
>
>> I'm not sure why he needs find the rule in the stylesheet...
>
> Because
>
>  * {background-image: none !important}
>
> does not override
>
>  .gobbledegook142375-UX {background: url(pointlesstransparentbackground.png)....
>
> I have to identify .gobbledegook142375-UX as needing to be added to the user
> stylesheet.

You shouldn't have to.  CSS is quite clear that !important user rules
*always* override *all* author rules. Check
<http://www.w3.org/TR/CSS2/cascade.html#cascading-order> - rules are
*first* sorted by source/importance, and then within each source group
sorted by specificity.

If a browser has the behavior you describe above, it is a bug.

~TJ

Received on Thursday, 14 October 2010 23:45:45 UTC