media attribute and nested media restrictions says:
  # The user agent must apply the external resource to views while
  # their state match the listed media and the other relevant
  # conditions apply, and must not apply them otherwise.
and says:
  # User agents must apply the styles to views while their state
  # match the listed media, and must not apply them otherwise. 

This is somewhat unclear as to how nesting of media restrictions
works, and how linking of the same style sheet multiple times works.
In particular:
 (1) If a style sheet is linked twice, once with a media attribute
 that matches and once with one that does, this seems to require
 that the user agent both apply and not apply the style sheet.  (In
 applies it only through the link that does match.  The order is
 relevant for the cascade, testably so if there are other sheets
 between the links.)

 (2) This seems to imply that the media attribute overrides media
 restrictions inside the style sheets (either linked or in style
 elements).  It should be clear that media restrictions nest, and
 that all of the media restrictions surrounding a path to a rule
 must match the state of the view for that rule to be applied via
 that path.

This is equivalent to
which was resolved in CSS 2.1 via the proposal in plus
adding "The import only takes effect if the target medium matches
the media list." to the last paragraph in CSS 2.1 section 6.3.


L. David Baron                       
Mozilla Corporation             

Received on Friday, 24 October 2008 12:24:27 UTC