.css('font-size') on a jquery object returns undefined.
Is it possible to get the value of .css('font-size') coming form an external css file?
.css is only for the style attribute.
@fb55 is it possible to check the styles applied to an element [via css]?
Cheerio doesn't render pages, so this sadly isn't possible.
This is actually a difference from jQuery's $.css, which gets the value of computed styles. What is your policy around maintaining compatibility with jQuery? Would you consider adding a warning here, if not renaming the method? Glad to make a PR for either.
A warning in the docs would be appreciated!
Most helpful comment
A warning in the docs would be appreciated!