W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Question regarding the "all" property

From: Philip Walton <philip@philipwalton.com>
Date: Wed, 23 Jan 2013 10:09:58 -0800
Message-ID: <CAGRhNhVLD98cP05KaY89H8PLtMLfGjZL47g=EQvO-AwHeT8yaQ@mail.gmail.com>
To: www-style@w3.org
I'm writing about the new "all" property and I just wanted to make sure I'm
factually correct on a few points:

"all" is just a regular CSS property and all the normal specificity rules
of the cascade apply, correct?

That means that if I've done something like:

#sidebar > div { background: red; }

Then the following rule, if applied to a <div> in the sidebar will not
override the previous background definition.

.widget { all: default; }

If so, that implies that the all property cannot be used to achieve true
encapsulation, it's just a simple way for authors to undo what they've
already done (no judgment either way, just checking).

Am I'm understanding this correctly?
Received on Wednesday, 23 January 2013 18:10:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT