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

Re: [css3-background] Curved borders intersecting backgrounds of inner boxes

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 10 Apr 2010 17:48:00 -0700
To: Zack Weinberg <zweinberg@mozilla.com>
Cc: W3C Emailing list for WWW Style <www-style@w3.org>
Message-ID: <20100411004800.GA32197@pickering.dbaron.org>
On Saturday 2010-04-10 17:14 -0700, Zack Weinberg wrote:
> As far as I know, in the absence of border-radius, border-image, or
> inset box-shadow it is impossible to make a nested box's background
> overlap a containing box's border.  It seems to me that putting the
> nested background under the containing border (and inset shadow) and
> clipping it to the curve is always the right thing.

Well, nested boxes' backgrounds can extend way out of their
containing element once explicit heights, negative margins, and a
bunch of other features are used.  Clipping those boxes is what
'overflow: hidden' is for.  And I think once browsers fix their bugs
with border-radius on elements with 'overflow: hidden' (such as
https://bugzilla.mozilla.org/show_bug.cgi?id=459144 ) you'll get the
behavior that you want when 'overflow' is 'hidden'.

Are you proposing that certain clipping happen under some conditions
even when 'overflow' is visible?

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 11 April 2010 00:48:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:26 GMT