W3C home > Mailing lists > Public > public-html@w3.org > March 2012

Re: <style scoped> and the cascade

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Fri, 9 Mar 2012 10:06:44 +1100
Message-ID: <CAHp8n2mF+apaNBnV2siTUdAbWY9C7kOQQ40mYwmZbyKExrX-4g@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Lachlan Hunt <lachlan.hunt@lachy.id.au>, Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>, public-html@w3.org
On Fri, Mar 9, 2012 at 2:41 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 3/8/12 7:27 AM, Lachlan Hunt wrote:
>> Why is the priority of the !important rules reversed?
> See http://lists.w3.org/Archives/Public/public-html/2012Mar/0228.html the
> paragraph starting "Of course".
> I don't feel too strongly about the exact way we handle !important rules
> here, honestly, but it seemed like this would give the most flexible
> behavior.....

As a use case I see widgets that a Web dev pulls from somewhere else
and where he/she doesn't want to change the code, but override it with
some common styling for the Web page. In this case, !important from a
global declaration would be usable to override the local scope.

FWIW: I like this idea.

Received on Thursday, 8 March 2012 23:07:32 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:50 UTC