W3C home > Mailing lists > Public > www-style@w3.org > March 2010

css backgrounds and borders: odd note

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 13 Mar 2010 09:24:05 -0800
Message-Id: <C927D770-3D47-4A86-825C-5FEEA9B51B5D@gmail.com>
To: www-style list <www-style@w3.org>
I was looking at the Backgrounds and Borders module[1], and noticed this green note in the 'border-style' section[1]:

# Also note that rounded corners may cause the corners and the contents to overlap, if the padding is less than the radius of the corner.

I thought this was odd for two reasons:

It is in the 'border-style' section, not the 'border-radius' section, so it seems like a non sequitur. 
We have language in the 'border-radius' section that I would say makes this note unnecessary:
# Backgrounds, but not the border-image, are clipped to the appropriate curve (as determined by ‘background-clip’). Other effects that clip to the border or padding edge (such as ‘overflow’ other than ‘visible’) also must clip to the curve. The content of replaced elements is always trimmed to the content edge curve.[2]

That text there about clipping the content to the curve when overflow is not 'visible' (or always when content is of replaced elements) already presupposes that the rounded corners may overlap the content. So... I think we can safely just remove the comment from the 'border-style' section and from the spec entirely. Or if others feel it is really needed or helpful, then put it in right before the text about clipping.

I think the text may have been added after the 22 July 2009 CSS WG telcon[3], in which there was this about border-radius percentages measurements:

Bert gives an example of resizing his window so the box
  resizes, and that causes the padding to not be enough and text
  overlaps the border

[1] http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-border-style
[2] http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-border-radius
[3] http://www.w3.org/2009/07/22-CSS-minutes.html

Received on Saturday, 13 March 2010 17:24:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:43 UTC