W3C home > Mailing lists > Public > www-style@w3.org > November 2013

Re: [mediaqueries] Add "<" and ">" syntax?

From: 一丝 <yiorsi@gmail.com>
Date: Fri, 29 Nov 2013 20:15:12 +0800
Message-ID: <CA+-d5ZoQxHvRL+ccWGFrP__v+CbhFLAr5Ut38QmC5ejvHvHt3Q@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Alan Gresley <alan@css-class.com>, www-style list <www-style@w3.org>
http://ww3.sinaimg.cn/bmiddle/c1608aa0gw1eb25717rekj20fj0fkdgz.jpg


以上
一丝


2013/11/29 一丝 <yiorsi@gmail.com>

> High level sincerity!
>
>
>
>
> 以上
> 一丝
>
>
> 2013/11/15 Tab Atkins Jr. <jackalmage@gmail.com>
>
> On Tue, Nov 12, 2013 at 7:40 PM, Alan Gresley <alan@css-class.com> wrote:
>> > How does that work with a link stylesheets?
>>
>> The same way as anything else.
>>
>> > <link rel="stylesheet" media="speech and (device-aspect-ratio > 16/9)"
>> > href="example.css">
>> >
>> > <link rel="stylesheet" media="screen and (device-width > 800px)"
>> > href="example.css" />
>> >
>> > According to what characters can appear in HTML5 attributes. The HTML5
>> spec
>> > states that 'unquoted attribute values' must not be used with angle
>> brackets
>> > [1] so the Media Queries spec must show the following as invalid since
>> they
>> > could cause failure of HTML parsing.
>> >
>> > <link rel=stylesheet media=speech and (device-aspect-ratio > 16/9)
>> > href=example.css>
>> >
>> > <link rel=stylesheet media=screen and (device-width > 800px)
>> > href=example.css />
>>
>> That's a completely invalid <link> anyway, as you can't put spaces in
>> unquoted attribute values.
>>
>> We don't need to add special text about quirks of HTML's syntax to
>> Media Queries, since they apply to every use of HTML attributes, and
>> there's nothing special about MQ here that warrants an additional
>> warning.
>>
>> ~TJ
>>
>>
>
Received on Friday, 29 November 2013 12:16:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:37 UTC