- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 19 Jun 2014 00:14:05 -0700
- To: Michaël Rouges <michael.rouges@gmail.com>
- Cc: www-style list <www-style@w3.org>
On Wed, Jun 18, 2014 at 9:26 PM, Michaël Rouges <michael.rouges@gmail.com> wrote: > Hi, > > I find the CSS Media Queries very usefull, but imho, I think that miss an > another very usefull particularity, moreover, many solutions based on > JavaScript exist around the net, trying to do that... > > My idea is pretty simple : to have a Media Query on the current url, usable > like the attribute value selector, same selection behavior, like : > > ``` > @media url^="protocol://sub.domain. > tld/page" > ``` > > By this feature, I think it has never been easier to merge all styles in one > file without having to use stratagems, sometimes very complex, to apply > styles to specific elements of a certain page & may reduce the JavaScript > dependency and class/id attributes especially used to resolve that. (best > ratio page content / page code, on each page) > > What do you think about it? :) This already exists in Firefox as the @document rule, which was specified in the Conditional Rules module <http://dev.w3.org/csswg/css-conditional/> originally but has since been punted to the next level. ~TJ
Received on Thursday, 19 June 2014 07:14:52 UTC