Skip to content
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

Content in icon fonts #28

Open
firatsarlar opened this issue Feb 1, 2013 · 2 comments
Open

Content in icon fonts #28

firatsarlar opened this issue Feb 1, 2013 · 2 comments

Comments

@firatsarlar
Copy link

Because of before , after selectors are not accessible through the dom, content in icon fonts is discarded.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@begriffs
Copy link
Owner

After doing some experiments, I have found that the webkit being used in phantomjs does not support pseudo-elements in window.getMatchedCSSRules().

The user agent returned from phantomjs is Mozilla/5.0 (Macintosh; Intel Mac OS X) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.0 (development) Safari/534.34. On the other hand, my real Chrome browser (version 537.17) supports the pseudo-element style lookup.

I think it may not be possible to resolve this issue until phantom ships with a newer version of webkit.

begriffs added a commit that referenced this issue Feb 14, 2013
@begriffs
Copy link
Owner

Still no fix for this. Here's the internal browser bug
https://bugs.webkit.org/show_bug.cgi?id=76736

However I think window.getComputedStyle can report psuedo-class styles properly. http://davidwalsh.name/pseudo-element

There may be hope yet for this bug.

begriffs added a commit that referenced this issue Feb 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants