@media and browsers conditional statments

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  

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