W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: [css3-background] Background-attachment and a new suggestion

From: arcticmac <arcticmac@comcast.net>
Date: Thu, 21 Jul 2005 19:26:09 +0000
Message-Id: <a0620070fbf05a4fcde67@[192.168.11.4]>
To: www-style@w3.org
Perhaps you could clarify what you want to do?  with images perhaps?


you said
>>What I was looking for is basically this: a background-attachment 
>>that mimics "fixed" except for the bit where it stays on the same 
>>place relative to the viewport.

my understanding of the spec is this:
fixed:  forces image to remain in same position in viewport (that is, 
it doesn't move around in the frame of the browser window).  an 
example is the grass at the bottom of the page on the "outdoor" theme 
at http://www.mikematas.com/blog/.
scroll:  image is attached to whatever element it is set for.  when 
the viewport is scrolled, the image moves, but if the element is 
scrolled, the image stays fixed
local: image moves when either it's element is scrolled, or when the 
viewport is scrolled.

Forgive me if I'm being nearsighted or something, but I don't see any 
other options.  There are two things to be set: the movement when the 
element in question scrolls internally, and the movement when the 
element in question scrolls around the page.  there are only 4 
different ways to do this.  three are available, and the fourth, 
moving the image when it's element is scrolled internally, but not 
when the element moves around the page, makes no sense, because the 
image would get left behind it's element.

--The ArcicMac
Received on Thursday, 28 July 2005 15:21:49 GMT

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