Or how I stopped worrying about IE6 and started loving CSS3
Presentation given at Edge of the Web, November 4, 2009
1 of 31
More Related Content
Progressive enhancement with CSS3
1. Progressive
Enhancement
with CSS
Or how I stopped worrying about IE6 and
started loving CSS3
Nick Cowie
Reformed web standards fascist
nickcowie.com
@ nickobec
17. @font-face
No longer restricted to web safe fonts
Supported: FF3.5, SAF3, OP10, IE4
Unsupported: Next font in font stack
IE: .eot format, loads all @font-face
Problems: FOUT, failover
19. RGBa
Alpha channel on colours
Supported: FF3, SAF3, OP10
Unsupported: ignores RGBa colour
so set RGB colour before RGBa colour
IE: only in special cases
21. RGBa backgrounds in IE
hack
Use conditional comments
background-color: transparent;
filter: progid:DXImageTransform.Microsoft.Gradient
(GradientType=0, StartColorStr='#aaRRGGBB',
EndColorStr='#aaRRGGBB') ;
22. border-radius
Rounded corners on block elements
Supported: FF3, SAF3
Unsupported: ignores
IE: JavaScript or images
Problems: max size in some webkit
-moz-border-radius: 24px 0 24px 0;
-webkit-border-radius: 24px 0 24px 0;
23. text-shadow
Drop shadow for text
Supported: FF3.5, SAF3, OP9.5
Unsupported: ignores
IE: AVOID AT ALL COSTS filter: Shadow
24. box-shadow
Drop shadow block elements
Supported: FF3.5, SAF3, IE5
Unsupported: ignores
IE: filter: progid:DXImageTransform.Microsoft.dropshadow
(O鍖X=5, O鍖Y=5, Color='#aaRRGGBB', Positive='true')";
Problems: inheritance in IE
25. transform
Alter the appearance of elements:
rotate, skew, flip ...
Supported: FF3.5, SAF4
Unsupported: ignores
IE: no
Problems: getting too smart
26. transition
Control the transition between two
states
Supported: FF3.7, SAF4
Unsupported: ignores
IE: has it own transition, but ...
Problems: getting too smart
27. gradients
Gradients as block elements background
Supported: SAF4, IE5
Unsupported: ignores
Provide alternatives first.
IE: filter: progid:DXImageTransform.Microsoft.Gradient
(GradientType=0, StartColorStr='#aaRRGGBB',
EndColorStr='#aaRRGGBB') ;
28. box-reflect
Reflects a box element and contents
Supported: SAF4
Unsupported: ignores
Tricks: Add a css mask with a gradient
30. Wait there are more
I only chose a few to demonstrate a few, so get
a copy of Safari or Chrome and go explore
SurfinSafari or css3.info
31. Thank you
Now go make the web a more beautiful
place one website & one browser at a time
際際滷s: http://www.slideshare.net/nickobec/progressive-
enhancement-with-css3
Demo: http://nickcowie.com/eotw
References: http://delicious.com/nickobec/eotwpres
licensed under a Creative Commons Attribution 2.5 Australia Licence.
except Canny Bill screenshots 息 Andy Clarke
State Library of WA screenshots 息 State Library of WA
used with permission