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

Re: Shadows vs. layout

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 3 Aug 2009 16:33:12 -0500
Message-ID: <dd0fbad0908031433t9649aa7kc7532567575e4702@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: David Hyatt <hyatt@apple.com>, fantasai <fantasai.lists@inkedblade.net>, Brad Kemper <brad.kemper@gmail.com>, W3C style mailing list <www-style@w3.org>
On Mon, Aug 3, 2009 at 4:22 PM, Andrew
Fedoniouk<news@terrainformatica.com> wrote:
> Tab Atkins Jr. wrote:
>> To be fair, on the GUI systems you know about, the elements are
>> purposely placed so that the shadow doesn't try to 'spill out' of the
>> container.  So the question of overflow behavior doesn't come up.
> Window rectangle does not include shadow/outline.
> At least on Windows it is a bit challenging to get outline rectangle
> of the window that includes shadow. So pardon me but I am not buying
> "purposely placed so that the...". Haven't seen such purposeful attempts.

I'm talking about within a window - windows themselves live on the
desktop, which is overflow:hidden.  ^_^

> The only case when the shadow is just such a background - is a part of
> window (read: DOM element) background itself as here
> http://www.terrainformatica.com/htmlayout/images/tooltip-balloon.jpg for
> example.

Hmm, HTMLayout lets elements jump out of the application's window?
That's... weird.

>> In the web environment the issue is a bit different - it's easy to
>> make elements with shadows/outlines/border-images that have parts of
>> the visual effect spilling out.
> Yes. As in any other GUI system including various WMs.

I don't dispute that it can happen.  I'm just saying that in my
experience, OS GUI elements are either overflow:hidden, or their
children are prevented from having shadow spill out (this may because
the shadow is counted as part of their geometry).

I generally agree with you here, Andrew.  ^_^

Received on Monday, 3 August 2009 21:34:11 UTC

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