Why use CSS Zen Garden for CSS3 demo

For those who have not seen my Edge of the Web CSS3 demon­stra­tion I used the CSS Zen Garden HTML. Why, because I wanted to use some­body else’s HTML, mainly because I wanted to show it works with any HTML and that most people would be famil­iar with the site.

I will not sub­mit it, because Dave has not accep­ted any new sub­mis­sions almost two year, my demo is far from the visual stand­ard of most other design and I broke one major rule the CSS does not validate.

There are no hacks in the CSS just lots of browsers spe­cific declar­a­tions like:

-moz-box-shadow: 5px 5px 7px rgba(0,0,0,0.66);

And even worse Microsoft spe­cific declar­a­tions, which break the W3C rules for CSS

filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=5, OffY=5, Color='#AA666666', Positive='true');

As I said in my present­a­tion, the import­ant thing to know about val­id­a­tion, is why your code does not val­id­ate, if you know that, then val­id­a­tion is irrelevant.

4 Responses to “Why use CSS Zen Garden for CSS3 demo”

  1. pepelsbey Says:

    You can use more W3C-compatible –ms-filter:“progid:DXImageTransform…” to tar­get only IE8+ ;)

  2. Nick Says:

    The –ms-filter “fea­ture” only worked in the IE8 betas. The pro­duc­tion ver­sion of Ie8 requires the older format fil­ter: progid:DXImageTransform… for com­pat­ib­il­ity sake accord­ing to Microsoft.

  3. pepelsbey Says:

    Actu­ally, it works:

    DIV {
    width:100px;
    height:100px;
    background:#000;
    –ms-filter:‘progid:DXImageTransform.Microsoft.Alpha(Opacity=50)’;
    }

    IE 8.0.6001.18702 (final ver­sion on Win­dows XP SP2)
    IE 8.0.7600.16385 (final ver­sion on Win­dows 7)

    And your example too.

  4. Nick Says:

    Pepels­bey my mis­take while try­ing to resolve an issue of IE8 crash­ing. I read the MS IE blog post on fil­ter com­pat­ib­il­ity as abandon­ing –ms-filter in IE8, not as IE8 in stand­ards mode using either –ms-filter or filter:

    I will post a little more about fil­ters, shortly

Affiliates

Google
text advertising by
Powered by Reseller Zoom