- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 14 Nov 2013 16:41:23 -0800
- To: Alan Gresley <alan@css-class.com>
- Cc: www-style list <www-style@w3.org>
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, 15 November 2013 00:42:11 UTC