W3C home > Mailing lists > Public > www-style@w3.org > March 2010

Re: [CSSWG] Minutes and Resolutions 2010-03-17

From: John Daggett <jdaggett@mozilla.com>
Date: Tue, 23 Mar 2010 21:00:26 -0700 (PDT)
To: Jonathan Kew <jonathan@jfkew.plus.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
Message-ID: <1099536364.21749.1269403226033.JavaMail.root@cm-mail03.mozilla.org>
Jonathan Kew wrote:

> Here, new character-transform-aware UAs would replace the vertical-align
> and font-size settings, using 'inherit' instead. Does this apply
> regardless of the order? Or would later properties override earlier
> ones...

Right, that's the general rule in CSS, the latter rule overrides.  There
can be some not-so-clear applications of this when shorthands are
involved, since shorthands reset values which are not specified:

  p#test1 {
    font: 24px Adobe Garamond Pro;
    font-weight: bold;
  }
  
  p#test2 {
    font-weight: bold;
    font: 24px Adobe Garamond Pro;
  }
  
The text in test1 will be bold but normal in test2 because the font
shorthand in the second rule resets other font properties, including
font-weight, to the initial value 'normal'.
Received on Wednesday, 24 March 2010 04:00:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:25 GMT