- From: Håkon Wium Lie <howcome@opera.com>
- Date: Wed, 9 May 2007 15:19:09 +0200
- To: "L. David Baron" <dbaron@dbaron.org>
- Cc: Al Gilman <Alfred.S.Gilman@IEEE.org>, www-style@w3.org, wai-liaison@w3.org
Also sprach L. David Baron:
> On Tuesday 2007-05-08 12:41 -0400, Al Gilman wrote:
> > If no @media rule is present in the context of a style rule, the
> > effect of that style rule is the same as if there were an @media: all
> > rule in the context. The subject style rule applies to
> > any media type. (Properties assigned in this rule will apply or
> > not apply per the applicability stated in their defining paragraphs.)
> > Somehow, the section on the @media rule fails to say this.
> > http://www.w3.org/TR/CSS21/media.html#at-media-rule
Right.
> > It is, however, stated with regard to the @import rule.
> > http://www.w3.org/TR/CSS21/cascade.html#at-import
Which states:
"In the absence of any media types, the import is unconditional.
Specifying 'all' for the medium has the same effect."
> I agree that the specification is quite unclear in this case. All
> media specifiers (in @import, @media, and the media attribute of
> <link> or <?xml-stylesheet?>) are handled by intersection. In other
> words, they say that the contents of the rule or sheet are not used
> if the media specifier does not match. It would probably be good if
> the specification said it that way. (It currently seems to describe
> only authoring requirements and not implementation requirements.)
One way to fix it may be to add this sentence at the end of 7.2.1:
Style rules outside of @media rules apply to all media types.
-h&kon
Håkon Wium Lie CTO °þe®ª
howcome@opera.com http://people.opera.com/howcome
Received on Wednesday, 9 May 2007 13:20:06 UTC