- 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
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 UTC