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

border-radius and clipping of background and content

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 17 Jun 2003 21:25:54 -0500
Message-ID: <3EEFCDB2.1070402@mit.edu>
To: www-style@w3.org

I was just looking at the current description of border-radius at 
http://www.w3.org/TR/2002/WD-css3-border-20021107/#the-border-radius and 
noticed that it explicitly says that the background is not painted 
outside the rounded border.  It says nothing about the content, 
however... so if you consider the following markup:

<div style="white-space: pre; border: 1px solid black;
             border-radius: 6em">
line
line
line
line
line
line
line
line
line
line
</div>

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?

-Boris
Received on Tuesday, 17 June 2003 22:25:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:22 GMT