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

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

From: John Daggett <jdaggett@mozilla.com>
Date: Sun, 11 Aug 2013 23:58:41 -0700 (PDT)
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style@w3.org
Message-ID: <25734199.2594561.1376290721191.JavaMail.zimbra@mozilla.com>

Simon Sapin wrote:

> §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.

Simon, can you give an example of where your definition is not
equivalent to the current rule in the spec?  I'm trying to see how the
longhand/shorthand distinction matters and I can't think of an example.


John Daggett
Received on Monday, 12 August 2013 06:59:07 UTC

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