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

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