Re: @version rule

* Ian Hickson wrote:
>  2. UAs don't implement a whole level at a time.
>
>     Point me to a *single* CSS1 UA. There aren't ANY. There are lots of
>     UAs that implement parts of CSS1, CSS2 and even CSS3, but none that
>     implement a single layer.

Yeah, very harmful, isn't it? Take this document:

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
  <html>
    <head>
  
    <style type="text/css">
      p { visibility: hidden }
      p:first-child { visibility: visible }
    </style>
  
    <title></title>
    </head>
  
    <body>
      <p>Wort</p>
    </body>
  </html>

Current Mozilla builds give me my "Wort", Opera 5.12 for example
doesn't, since it doesn't support the :first-child pseudo-class.

>     Which level should IE6 claim to support?

Microsoft claims full CSS Level 1 compliance (or support, don't know the
exact wording).

>  3. You can already do it if you are creative.
>
>     For example, using @media rules:
>
>        /* CSS1 rules here */
>
>        @media all {
>           /* CSS2 rules here */
>        }
>
>        @media all and (some: media-query) {
>           /* CSS3 rules here */
>        }
>
>     ...or @import rules:
>
>        @charset "ISO-8859-1";
>        @import "css2";
>        @import "css3" all and (some: media-query);
>        /* css1 */

What if the user agent just implements the media queries module but not
some other CSS Level 3 features used in these documents?

I sympathize with the idea of an @version statement. I would be great if
I can specify "process this block only if you support all used
@rules/property-value pairs/selectors/etc." since implementing just
_some_ features of CSS may break documents, as shown above.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

Received on Sunday, 29 July 2001 21:15:02 UTC