Open firatsarlar opened 11 years ago
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.
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.
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.