css-ratiocinator icon indicating copy to clipboard operation
css-ratiocinator copied to clipboard

Content in icon fonts

Open firatsarlar opened this issue 12 years ago • 2 comments

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.

firatsarlar avatar Feb 01 '13 17:02 firatsarlar

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 avatar Feb 14 '13 04:02 begriffs

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 avatar Feb 17 '14 06:02 begriffs