- From: L. David Baron <dbaron@dbaron.org>
- Date: Mon, 9 Jun 2008 16:26:38 -0700
- To: fantasai <fantasai.lists@inkedblade.net>
- Cc: Andrew Fedoniouk <news@terrainformatica.com>, Boris Zbarsky <bzbarsky@MIT.EDU>, Anne van Kesteren <annevk@opera.com>, www-style@w3.org
On Monday 2008-06-09 16:00 -0700, fantasai wrote: > Yeah, we added > > # Style rules outside of @media rules apply to all media types that > # the style sheet applies to. > > You'd also need > > | Style rules inside an @media rule apply to all media types that > | the style sheet applies to /and/ that the @media rule applies to. > > Would that be enough? No. We actually need to define what the media list does. In particular, I think we should change bullet 1 in section 6.4.1 bullet point 1, which currently says: # Find all declarations that apply to the element and property in # question, for the target media type. Declarations apply if the # associated selector matches the element in question. to say something like: # Find all declarations that apply to the element and property in # question, for the target media type. Declarations apply if the # associated selector matches the element in question and the # target medium matches the media list on all @media rules # containing the declaration and on all links on the path through # which the style sheet was reached. We should also add a sentence somewhere saying something like: # When the same style sheet is imported or linked to a document in # multiple places, user agents must process (or act as though they # do) each link as though the link were to a separate style sheet. We also need a sentence somewhere saying something like: # A target medium matches a media list if one of the items in the # media list is the target medium or 'all'. (We could also non-normatively note that media queries changes the syntax of media lists and this definition of matching.) -David -- L. David Baron http://dbaron.org/ Mozilla Corporation http://www.mozilla.com/
Received on Monday, 9 June 2008 23:27:37 UTC