On Tue, Jul 23, 2013 at 3:48 AM, Mike Samuel <[email protected]> wrote:
> 2013/7/23 felix <[email protected]>:
>> On Mon, Jul 22, 2013 at 5:35 PM, Mike Samuel <[email protected]> wrote:
>>> The use of "/" in media-queries and the fact that media queries appear
>>> adjacent to a URL in @import means that we might want to guard against
>>> media queries that could also be interpreted as URLs.
>>> I propose prefixing with "only" all media queries that do not start
>>> with "only" and consist of only commas and known media types per
>>> http://dev.w3.org/csswg/mediaqueries4/#media0 :
>>
>> you also need to say 'only all and' when the media query lacks a media_type.
>
> Is this so that the second branch in
>
> media_query
>  : [ONLY | NOT]? S+ media_type [ S+ AND S+ expression ]* S*
>  | expression [ S+ AND S+ expression ]* S*
>
> can be treated as an equivalent instance of the first branch?

yeah, when media_type is omitted, it's equivalent to "all",
so "(color)" is equivalent to "only all and (color)".

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to