W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: border-radius and clipping of background and content

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 18 Jun 2003 09:21:06 -0700 (PDT)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.50.0306180915550.31876-100000@dhalsim.dreamhost.com>

On Tue, 17 Jun 2003, Boris Zbarsky wrote:
> some of the text will end up being painted completely outside the border
> (in the top left and bottom left corners of the box).
> Should it be the responsibility of the content author to provide
> sufficient padding for the selected border-radius?  Or the box model
> handle this automatically somehow?

There's no difference between a rounded border and a square one.

    <p> mowmow </p>

   div { border: solid; height: 2em; width: 2em; }
   p { margin: -0.5em; }

It's overflow. The 'overflow' property decides how overflow is rendered.
The 'overflow-clip' property will decide exactly how the overflow is
clipped if it is clipped ('overflow: hidden').

Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 18 June 2003 12:18:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC