zepto icon indicating copy to clipboard operation
zepto copied to clipboard

Problem pulling style info from css pseudo-elements

Open lisabaut opened this issue 9 years ago • 2 comments

I want to retrieve the 'content' property of a ':before' element. If I write vanilla JavaScript without including Zepto it is working. As soon as I include the Zepto library the result is 'none' although the actual code is not using Zepto at all.

Working example with vanilla JavaScript: http://codepen.io/lisabaut/pen/YyMJRb

Example with same code but Zepto library included (see Settings > JavaScript > Add External JavaScript): http://codepen.io/lisabaut/pen/dYLgwr If I change the code and select e.g. the 'color' property of the pseudo-element I get the correct result. If I want to return the 'content' property the result is 'none'.

Note: The original tutorial code and idea can be found here: https://www.lullabot.com/articles/importing-css-breakpoints-into-javascript

lisabaut avatar Nov 22 '15 13:11 lisabaut

@mislav is this something we need or want to support?

madrobby avatar Jul 12 '16 15:07 madrobby

Seems to be fixed in v1.2.0 https://codepen.io/anon/pen/zdZNWj

chris-oreilly avatar Aug 08 '17 02:08 chris-oreilly