gehuangyi20 / ie7-js

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

setting png alpha causes it to not honor 'width=100%' in stylesheet #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. embed a .png as background using css with width of div set to 100%
2. while using IE.js to set the png alpha transparent
3.

What is the expected output? What do you see instead?
expected png stretched to 100% width of viewport (firefox/opera/safari get 
this one right)

seen png stays in the leftmost corner... height is correct width has no 
effect... if png is not made alpha it stretches as expected..

What version of the product are you using? On what operating system?
IE8.js 2.0 beta 3 in IE6 on windows 2000

Please provide any additional information below.

Original issue reported on code.google.com by sam.ac...@gmail.com on 26 Feb 2008 at 3:02

GoogleCodeExporter commented 9 years ago
Can you provide a test case please?

Original comment by dean.edw...@gmail.com on 26 Feb 2008 at 8:40

GoogleCodeExporter commented 9 years ago
without IE8.js;
http://mephitus.no-ip.org/testcase.html (this works as expected in firefox & 
opera... the image is even stretched in IE... but of course in IE alpha doesnt 
work)

with IE8.js;
http://mephitus.no-ip.org/testcase2.html (image has alpha but doesnt stretch)

Original comment by sam.ac...@gmail.com on 26 Feb 2008 at 9:30

GoogleCodeExporter commented 9 years ago
The alpha image is not stretched it is repeated. The PNG fix does not support
repeated backgrounds:

http://code.google.com/p/ie7-js/#PNG

There is an enhancement request that PNGs should be stretched if 
background-repeat is
set:

http://code.google.com/p/ie7-js/issues/detail?id=17

I'll mark this as a dupe.

Original comment by dean.edw...@gmail.com on 26 Feb 2008 at 9:48

GoogleCodeExporter commented 9 years ago
well... darn.. 

tho i have to admit im surprised at what youve gotten IE to do in JS what the 
code 
monkeys at MS cant seem to do with the source code...

kudos to you

Original comment by sam.ac...@gmail.com on 26 Feb 2008 at 10:08

GoogleCodeExporter commented 9 years ago
Don't be depressed! The request to stretch background images is pretty popular 
so I
am likely to include it soon.

Original comment by dean.edw...@gmail.com on 26 Feb 2008 at 10:11