W3C home > Mailing lists > Public > www-style@w3.org > June 2013

[css-backgrounds] Painting area and 'background-attachment: local'

From: Simon Sapin <simon.sapin@exyr.org>
Date: Fri, 14 Jun 2013 16:57:03 +0100
Message-ID: <51BB3D4F.8010004@exyr.org>
To: www-style@w3.org
CC: fantasai <fantasai.lists@inkedblade.net>, Robert O'Callahan <robert@ocallahan.org>
Hi,

So, we recently decided that with 'background-attachment: local', the 
background positioning area is based on the "inner" scrolled content, 
not the "outer" box:

http://lists.w3.org/Archives/Public/www-style/2013May/0516.html
http://lists.w3.org/Archives/Public/www-style/2013May/0783.html

What about the background *painting* area? I think it should be the 
same. Specifically:


   When 'background-attachment' is 'local' for a given background layer:

   1. Both the positioning and painting area are based on the scrolled 
content. (The difference between padding-box and border-box includes any 
non-overlay scrollbars in addition to borders.)

   2. Values of 'overflow' other than 'visible' also affect the 
background layer: the background layer is only visible at the 
intersection of the painting area and the "outer" padding area.

   Note: This means that 'background-clip: border-box' is 
indistinguishable from 'padding-box'.

   Note: when 'overflow' is 'visible', 'background-attachment: local' is 
the same as 'scroll'.


Thoughts?

-- 
Simon Sapin
Received on Friday, 14 June 2013 15:57:27 UTC

This archive was generated by hypermail 2.3.1 : Friday, 14 June 2013 15:57:28 UTC