W3C home > Mailing lists > Public > www-style@w3.org > March 2003

Re: CSS2.1, CSS3: Background-Attachment

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 2 Mar 2003 09:17:34 -0800 (PST)
To: fantasai <fantasai@escape.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.50.0303020859270.19746-100000@dhalsim.dreamhost.com>

On Sun, 2 Mar 2003, fantasai wrote:
>
> As an author, I would expect the background to scroll
> with the element's content just like it does for the <body>.

The working group discussed this at length. It is hoped that CSS3 will
introduce a value, called 'overflow-scroll', to achieve the effect you
describe. What brought this on is

   http://www.hixie.ch/tests/adhoc/css/background/block/001.html

What would you say should happen under the borders?


> Indeed this is how several browsers have implemented it.
>
>    http://fantasai.tripod.com/www-style/2003/background-attachment.html
>
> With "background-attachment: scroll", these browsers scroll the
> background with the content:
>    Mozilla, Win IE
>
> These follow CSS2.1's wording:
>    Opera 7.0, MacIE

Actually, Mozilla follows both wordings simulateously. See:

   http://www.hixie.ch/tests/adhoc/css/background/block/002.html

...so there are more separate implementations (WinIE5.5 and WinIE6.0 count
as the same implementation) of the CSS2.1 model than of the CSS1 model.

Not to mention that WinIE doesn't show the background under the borders,
and thus doesn't have to face that part of the problem. It has been
suggested that if the Trident implementors had implemented backgrounds
correctly (going under the borders) they would have changed their
implementation to match the 2.1 wording.


> If CSS dictates that scrolling the background with the text is no longer
> possible, I shall be therefore be somewhat annoyed.

It is still possible. Merely enclose the overflowing contents in a block
and put a background on that instead of on the element with the overflow
property.


> In CSS1, 'scroll' means that the background "scrolls along with the
> content"; CSS2 changes this to "scrolls along with the document".

CSS1 didn't have to deal with this as 'overflow' didn't exist.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Sunday, 2 March 2003 12:17:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:20 GMT