W3C home > Mailing lists > Public > www-style@w3.org > June 2014

[Proposal] @media url

From: Michaël Rouges <michael.rouges@gmail.com>
Date: Thu, 19 Jun 2014 06:26:18 +0200
Message-ID: <CAMNVKQHzLP6oshSj4Ne9w+-TrsZf3bxcDrPNA=ydQt3sxOQrew@mail.gmail.com>
To: www-style@w3.org

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.

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? :)

Michaël Rouges - https://github.com/Lcfvs - @Lcfvs
Received on Thursday, 19 June 2014 04:28:27 UTC

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