Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

Let’s go ::outside

Tom Gilder has started a series of posts looking ahead to CSS3. In his first installment, he describes the awesomely powerful ::outside pseudo-element. Using this, CSS3 authors can apply multiple backgrounds and borders to single elements (at the moment doing so requires fussing around with nested divs). If you don’t instantly see the importance of this, take a look at some of the attempts to render rounded box corners using CSS. All of them require the addition of extra presentational elements, none of which would be needed if we could use the ::outside selector instead.

This is Let’s go ::outside by Simon Willison, posted on 28th July 2003.

View blog reactions

Next: PHP XPath Implementation

Previous: Better web forms

4 comments

  1. Naturally, the rounded corners were only an example, since we both know CSS-3 also offers the new border-radius property to round them without having to kludge with ::outside. We won't even bother mentioning it, in fact. ;)

    Dave S. - 29th July 2003 00:15 - #

  2. "Naturally, the rounded corners were only an example, since we both know CSS-3 also offers the new border-radius property" If Mozilla's rendering of rounded corners using -moz-border-radius is any indication of what it will look like (incredibly grainy!), I'm not sure it will be an acceptable subtitute to rounded corners rendered in an image and set as a background. Similar to how some designers set text in an image because of the web's typographical shortcomings and cruddy display of fonts.

    MikeyC - 29th July 2003 00:23 - #

  3. True, but the ability to apply multiple backgrounds gives us much more than just rounded corners. We can have funky border images on all four sides, drop shadows, special effects at different corners, multiple background "watermarks" at different positions within the elements. Only 7 or 8 years to go!

    Simon Willison - 29th July 2003 13:15 - #

  4. We can have funky border images on all four sides, drop shadows, special effects at different corners, multiple background "watermarks" at different positions within the elements.

    CSS3 is also including ways to do some of those without the use of ::outside:

    Only 7 or 8 years to go!

    Well, all I can say is, keep track of this bug list.

    Minh Nguyễn - 30th July 2003 03:32 - #

Comments are closed.

Previously hosted at http://simon.incutio.com/archive/2003/07/28/outside

A django site