-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is this really work in IE8 just with adding -ms-behavior? #54
Comments
I left an answer on StackOverflow as well, but I'll answer here for posterity. You need to place the If you're using server software other than Apache, you don't need to include |
But... index.html that comes in package works in that way! I also viewing it from folder by double clicking the page without any servers. |
Yeah. Frustratingly inconsistent, isn't it? |
I don't understand what you means. If index.html page works fine in IE8 without any servers, why my page no work as expected? What I ask is what else I must do to make it work. |
Does your file have a standards mode DOCTYPE?
The polyfill doesn't work in quirks mode (this is a known issue). |
Oh it started working... Thank you. |
Good to hear :-) Thanks for your suggestion - I'll add it to the Readme. (Also thanks @tigt - having a proper localhost is IMHO best practice.) |
You have any ideas why it no work in quirks mode? |
I'm not sure why it doesn't work in quirks mode. (I'm afraid I don't have enough free time at the moment to investigate.) I would consider any fix to be for existing sites that can't convert to standards mode; every new project should really use standards mode. There will be bugs in IE either way ;-) |
Maybe you can tell me how to debug htc? Line by line execution and viewing variables data. |
This should help: http://msdn.microsoft.com/en-us/library/dd565628(v=vs.85).aspx |
Ok thank you very much. I will see what I can do. |
Looks like I found why it no work in quirks, but I don't know why that happens. |
According to this http://msdn.microsoft.com/en-us/library/ie/ms530723(v=vs.85).aspx, when IE8 isn't in Standards mode, |
Well... for some really weird reason the background simply disappears. But at least code in htc executed. |
I fear there might be methods in the |
Hm. Interesting. I have the same issue than you Metafalica. The code is executed (I had to use I also made sure that I wasn't in quirk mode, using this piece of code: |
First of all, I think - when you giving example, it should be minimal, so everyone can understand what he need to make it work.
Your index.html is visually good, but not that good at explaining what I need to do to make it work.
So, I followed your instruction and created this simplest code:
Err, I don't know how to paste code here, since [code] no work and html disappears.
Look code here: http://stackoverflow.com/questions/25338009/background-size-polyfill-does-not-work-in-ie8
I made this minimal test page and background-size: contain and cover completely no work. In IE8 background acts the same way as without this thing.
The text was updated successfully, but these errors were encountered: