W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: Shadows vs. layout

From: Brad Kemper <brad.kemper@gmail.com>
Date: Wed, 5 Aug 2009 09:30:21 -0700
Cc: W3C style mailing list <www-style@w3.org>
Message-Id: <EB0FFE97-3E62-436F-A9D8-366402769C8B@gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>

On Aug 5, 2009, at 7:56 AM, fantasai wrote:

> Brad Kemper wrote:
>>> Ok, by trigger overflow I mean trigger scrolling. Content that  
>>> overflows
>>> a box doesn't affect the layout of elements outside the box, except
>>> insofar as it triggers scrolling behavior.
>> Well, I would think that if it is not affecting the layout/size of  
>> elements outside of itself, then it would also not affect the size  
>> layout of such element even if it was a BODY element or viewport.  
>> Ergo, it's parent would not be larger as a result, and would  
>> therefore not need to scroll anyway if it didn't before. Is not the  
>> scroll bar appearing as the result of some parent element getting  
>> wider? ANd if a parent element can get wider because of the  
>> overflow of a shadow or outline or border-image, then it can affect  
>> layout. That's the point I was trying to make, so correct me if  
>> there is some logical flaw to my argument that I am missing, please.
> If I have content that overflows a fixed-size box
>  <div style="height: 2em">
>    <p>Lots of content more than 2em</p>
>  </dpv>
> or even an auto-height container
>  <div>
>    <p style="position: absolute"> Lots of content more than Some  
> content</p>
>  </div>
> in both cases the content that overflows the box does not affect the
> layout of content surrounding the <div>; as far as they're concerned
> the <div>'s contents might as well not be there. But the overflowing
> content is definitely part of the scrollable area.
> ~fantasai

OK, but shadows are not content, and I do not want to create  
scrollbars so that people can see the nearly invisible part of the  
blurred shadow. See my last e-mail for an example of how a shadow can  
change the layout in an undesirable way.
Received on Wednesday, 5 August 2009 16:31:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:28 UTC