Beyond
Internet Explorer 6 (CSS in latest browser versions)

Update:

This page was created a while ago. Since then I have done an updated version of this presentation that I presented on barcamp brighton 4.
Below I embedded the slides of the updated presentation from slideshare:

What is this about?

Internet Explorer 6 features adopted by new browsers

word-wrap

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Utenimadminimveniamquisnostrudexercitationullamcolaborisutaliquip
word-wrap: break-word;

CSS3, supported in IE, Safari and Firefox 3.1 (Alpha)

word-wrap spec

What can be done now (if you don't support IE6)

Internet Explorer 7

Internet Explorer 8 (beta2)

box-sizing

this is a regular box with its width set to 200px
this is a box with its width set to 200px with box-sizing set to border-box
-moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; width: 200px; border: 10px solid #333; padding: 1em;

CSS3, supported in Safari, Opera and Firefox 3

box-sizing spec

outline

this box has padding, a border and an outline
border: 3px solid green; outline-offset: .5em; outline: 3px solid #000; padding: .5em;

CSS3, supported in Safari, Opera and Firefox 3

outline spec

What can be done in WebKit, Firefox 3.1 (and Opera 9.5)

Text shadow

This text has a shadow
text-shadow: 1px 1px 1px #333;

CSS3, supported in Safari, Opera, iCab and Firefox 3.1 (Alpha)

text shadow spec

Box shadow (not Opera)

This box has a shadow
-webkit-box-shadow: 10px 10px 5px #888;
-moz-box-shadow: 10px 10px 5px #888;

CSS3, supported in Safari and Firefox 3.1 (Alpha)

box shadow spec

Border image (not Opera)

This box has various border background images
-moz-border-image: url('images/border.png') 27 27 27 27 round round; -webkit-border-image: url('images/border.png') 27 27 27 27 round round; border-image: url(border.png) 27 27 27 27 round round; padding: 15px 15px 15px 15px; border: double orange 1em;

CSS3, supported in Safari, and Firefox 3

border shadow spec

Border radius (not Opera)

this box has some rounded corners
-moz-border-radius-bottomright: 5px; -moz-border-radius-topleft: 5px; -webkit-border-bottom-right-radius: 5px; -webkit-border-top-left-radius: 5px; border: 1px solid #000; padding: 10px;

CSS3, supported in Safari, and Firefox 3

border-radius spec

Multi-column layout (not Opera)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-moz-column-count: 4; -moz-column-gap: 2em; -moz-column-rule: 1px solid #333; -webkit-column-count: 4; -webkit-column-gap: 2em; -webkit-column-rule: 1px solid #333;

CSS3, supported in Safari, and Firefox 3

multi column spec

Media Queries

@media all and (max-width: 640px) { .media-query { background-color: #c00; } }

background-origin / background-clip

Lorem ipsum dolor sit amet, consectetur adipisicing elit
-webkit-background-origin: content; -webkit-background-clip: content; -moz-background-origin: content; -moz-background-clip: content;

CSS3, supported in Safari, and Firefox 3

background-origin spec
background-clip spec

-webkit namespace

resize

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
resize: both; overflow: auto;

CSS3, supported in Safari

resize spec

Font embedding

In Safari this text is displayed in Yanone Kaffeesatz
@font-face { font-family: Kaffeesatz; src: url(YanoneKaffeesatz-Regular.otf); } .font-face { font-family: Kaffeesatz; font-size: 3em; } font: Yanone Kaffeesatz

CSS2, supported in Safari (and with proprietary Embedded Open Type in IE)

font-face spec

font embedding demo at opentype.info

Transitions

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
.transition { opacity: 1; -webkit-transition: opacity 1s linear; } .transition:hover { opacity: 0; }

supported in Safari

transitions on webkit.org

example on cssPlay
menu example on shauninman.com
another example on shauninman.com

Gradients

this box has a gradient in the background
background: -webkit-gradient(linear, left top, left bottom, from(#247DCF), to(#fff), color-stop(0.9, #fff)); -webkit-background-origin: padding; -webkit-background-clip: content;

supported in Safari

gradients on webkit.org

Reflections

border: 1px solid white; -webkit-box-reflect:below 1px -webkit-gradient(linear, left top, left bottom, from(transparent), color-stop(0.5, transparent), to(white)); margin-bottom: 200px;

supported in Safari

reflections on webkit.org

Masks

-webkit-mask-box-image: url(images/mask.png) 75 stretch;

supported in Safari

CSS masks on webkit.org

Multiple background images

this box has several background images
background: url(images/generator5.jpg) top -300px no-repeat, url(images/generator5.jpg) top right no-repeat, url(images/generator5.jpg) bottom right no-repeat, url(images/generator5.jpg) left repeat-y; multiple backgrounds spec

background-size (Opera as well)

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
-webkit-background-size: 100% 100px; -o-background-size: 100% 100px; background-size spec
--> beyond IE6 demo page

What do you think?

beyondIE6, presentation for barcamp brighton 3, marctobiaskunisch.com/beyondIE6, contact: mtk 'at' marctobiaskunisch.com