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.
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'.
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