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

Re: [css-syntax] Duplicate declarations in style rules

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 12 Aug 2013 17:46:07 -0700
Message-ID: <CAAWBYDDLzESDjX8QCmYcz3MhM0eY7ZQD4=+H55HvMxfPJoDy5g@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style list <www-style@w3.org>
On Sun, Aug 11, 2013 at 11:27 PM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
>
> §8.1 Style rules of css-syntax says:
>>
>> If a style rule contains multiple declarations with the same name,
>> all but the last such declaration are discarded.
>
>
> It’s actually not that simple:
>
> If a style rule contains multiple declarations for the same longhand
> property after shorthand expansion [refer to CSS Cascade], all but the one
> with greatest cascading order [refer to CSS Cascade] are discarded.
>
>   Note: within one style rule, the relative cascading order is determined
> only by '!important', then source order.

I've removed that paragraph now.  Cascade doesn't care about
duplicates, and CSSOM now defines duplicate-handling properly.

However, either Cascade or Syntax needs to care about shorthand
expansion.  Where's best?

> (BTW, is "cascading order" a term that should have a <dfn> in Cascade?)

Hm, maybe.

~TJ
Received on Tuesday, 13 August 2013 00:46:54 UTC

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