- From: 一丝 <yiorsi@gmail.com>
- Date: Fri, 29 Nov 2013 20:13:01 +0800
- To: "Tab Atkins Jr." <jackalmage@gmail.com>
- Cc: Alan Gresley <alan@css-class.com>, www-style list <www-style@w3.org>
Received on Friday, 29 November 2013 12:13:52 UTC
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:13:52 UTC