> Brad Kemper wrote:
> So, I suppose I am proposing that the curve of the border-radius DOES act as a
> mask of its contents, if the element with the border-radius is set to "overflow:
> hidden" (or any overflow value other than "visible"). It doesn't really make
> sense to me that the mask created by "overflow: hidden" should be a square
> cornered rectangle, when the shape of the element doing the clipping does not
> have square corners.
I would add that this might require a change to the CSS 2.1 section on overflow[1].
11.1.1:
hidden: ...content is clipped and that no scrolling user interface should be provided to view the content outside the clipping region...
[the term "clipping region" is not defined for overflow]
So, I would add to that:
The clipping region for 'hidden' and 'scroll' is defined as the shape formed by the intersection of the padding box and the inner edge of the border radii of its corners.
111.1.1 says:
...four 'auto' values result in the clipping region being the same as the element's border box
A border box is defined elsewhere[2] as:
The border edge surrounds the box's border. If the border has 0 width, the border edge is the same as the padding edge. The four border edges define the box's border box.
That seems incomplete, due to the fact that the "edge [that] surrounds the box's border" may have rounded corners. Does this mean that a border box is the same shape as the rounded corner shape? If so, then the border edge is not the same as the padding edge if the border has 0 width, because the padding edge has sharp 90