W3C home > Mailing lists > Public > www-style@w3.org > August 2008

@media and browsers conditional statments

From: Francois Remy <fremycompany_pub@yahoo.fr>
Date: Mon, 4 Aug 2008 00:08:19 +0200
Message-ID: <6D48385B453B4BE2A83761D1378EDCDA@FremyCompany1>
To: "CSS 3 W3C Group" <www-style@w3.org>
What about a @media browser-base filtering of CSS ?
It should be greater than hacks to repair browsers bugs.

http://www.w3.org/TR/css3-mediaqueries/ :

So, if we aks UA to implements a "media_feature" with its name, it will be true
only for the render engine, and not for other ones. 

    @media (gecko) {
        /* This will be available for gecko-based browsers only */
    }
    
    @media (gecko > 2.0) {
        /* This will be available for gecko-based browser with gecko's version smaller than 2 */
    }
    
    Proposed rendering engine : 
    - trident, webkit, gecko, presto

Non-conforming browser will use none of theses @media block because "gecko","trident", ... will be false.
<< Media queries involving unknown media types are always false. >>

What are you thinking of it ?

Fremy



        Fremy :: Developpement Web (JavaScript + ASP.Net; XHTML; CSS2)
      Mon blog de développement personnel
      Les Forums Developpez.com
      Le site Codes-Sources.com  




GreenGradient_2.jpg
(image/jpeg attachment: GreenGradient_2.jpg)

Received on Sunday, 3 August 2008 22:08:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT