-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Issue with ::before and ::after pseudo elements #24
Comments
Thank you for your feedback! Yes, IE has a bug, where unknown properties at pseudo-selectors are computed at the element and not at the pseudoelement. Its complicated to fix this issue, at the moment I do not have enough time and nerves to fix it. |
I understand -- thank you for the clarification! In the end I went for a different polyfill which worked for my use case. Anyways, I’d suggest to keep this ticket open as it might be helpful for others and contains the test case? |
@qqilihq I have similar problem and problem with SVG path's fill and stroke (sample attached below). Please suggest the polyfill you have used.
path {
|
This issue had me guessing for a whole afternoon.
One way around this is:
That's where I was at when I tested this polyfill. I could see that .setProperty() was supported and working in your example. I just couldn't replicate the functionality in my test scenario... because my scenario had psuedo elements in it :) Please please add this piece of the puzzle to ie11CustomProperties.js |
Sorry, at the moment, its a too big puzzle for my spare time.... |
@qqilihq - can you please help me with the Polyfill you used? Even I'm facing the exact same issue. |
Thanks a lot @qqilihq . But yes 11000 websites are using this current polyfill and there's a no fix on this since last year. It is strange. Update: |
@happy2deepak could you provide a little example of what you meant in your update there? I am not sure what you mean. |
First: Many thanks for making this -- looks like this will save us quite some time!
I'm encountering a problem with CSS
::before
and::after
elements. Minimal example follows using the latest version from the master branch:index.html
:styles.css
:This is supposed to create three squares in red, green, and blue. Screenshot from Chrome, Edge, etc. looks as follows:
When rendering in IE with the polyfill, I see the following:
The generated CSS code looks as follows:
Any ideas what's wrong here?
The text was updated successfully, but these errors were encountered: