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

Re: [css3-cascade] Unclear what 'default' does

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 14 Jan 2013 16:50:09 -0800
Message-ID: <CAAWBYDCVqMqbaL+RpdTHeAKBeYU08CuqAu=j=7J_F8BnrpFr_g@mail.gmail.com>
To: Anton Prowse <prowse@moonhenge.net>
Cc: "www-style@w3.org" <www-style@w3.org>
On Mon, Jan 14, 2013 at 12:55 PM, Anton Prowse <prowse@moonhenge.net> wrote:
> The css3-cascade WD of 2013-01-03 says, in 4.3.3:
>   # If the cascaded value is the ‘default’ keyword, then the origin
>   # level to which it belongs is discarded from the cascade, resulting
>   # in a new cascaded value.
> I honestly don't understand what it means to "discard" an origin level from
> the cascade!  Please can somebody explain (by way of example), as well as
> clarify the spec (by way of new prose). :-)

I've fixed the spec by amending that sentence to "then all
declarations in the origin level to which it belong...".

I still need to add an example (was asked to a long time ago by Daniel).

>   # For this purpose, all author-originating styles (author and
>   # override, both normal and important) are treated as belonging to
>   # the same origin level.
> I'm confused by what, precisely, an origin is.  I think it's because the
> "Origin" subsection of 4.2, and 4.2.1, contradict each other.  Is an origin
> a function of !important, or not?

Clarified.  4.2.1 now talks about !important origins, and points to
the list in 4.2 as the normative list of CSS origins.

> I assume that if 'default' is used in a /user/-originating style, the origin
> to be "discarded" is a function of !important, and so 'default' is less
> powerful in the User context than in the Author context.  Is that correct?

Now that the normative list of origins is clarified, this should be
obvious (yes).  We may end up still tweaking the way we group origins
for 'default' - I've added an issue to track it.

Received on Tuesday, 15 January 2013 00:50:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC