gehuangyi20 / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Position:fixed interferes with body background-attachment #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. body{background:url("/image.gif") repeat-x scroll top;} to create a
horizontal bar across the top of page.
2. Any element (tested with div and img) to position:fixed
3. Enough text to generate vertical scrolling.

What is the expected output? What do you see instead?
The body background should scroll along with non-fixed content, but instead
it remains fixed.

What version of the product are you using? On what operating system?
2.0(beta3) on Windows XP Pro SP2; Windows XP Home SP2.

Please provide any additional information below.
If at least one element is set to the fixed position, the body background
will remain fixed as well. Occurs when using both IE7.js and IE8.js.

For an example:
http://www.ohanlon-scholarship.org/ie7.test.php

Original issue reported on code.google.com by ringtail...@gmail.com on 11 Mar 2008 at 9:19

GoogleCodeExporter commented 9 years ago
This is a restriction of the fixed positioning solution. The solution requires 
a fixed 
background on the document body.

Original comment by dean.edw...@gmail.com on 11 Feb 2010 at 6:14