W3C home > Mailing lists > Public > www-style@w3.org > September 2008

Re: border-radius on replaced elements

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 10 Sep 2008 22:41:54 -0700
Message-ID: <48C8AFA2.6020602@inkedblade.net>
To: Brad Kemper <brkemper.comcast@gmail.com>
CC: www-style <www-style@w3.org>

brkemper@comcast.net wrote:
> Oh. You mean if a border radius is set directly on the IMG itself.
> True, I misunderstood. However, that still only makes sense if
> "overflow: hidden" actually hides the part of the content that is
> outside of the curve of the border-radius.* And, my examples show
> that it does not, except for background properties.

So, testing an implementation doesn't prove what's in the spec. :)

> 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").

   # Backgrounds, but not the border-image, are clipped to the inner,
   # resp., outer curve of the border if ‘background-clip’ is
   # ‘padding-box’ resp., ‘border-box’. Other effects that clip to
   # the border or padding edge (such as ‘overflow’) also must clip
   # to the curve.

I added that second sentence in there months ago.

Received on Thursday, 11 September 2008 05:42:40 UTC

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