CSSComputedStyleDeclaration::length doesn't consider custom properties |
||||||
Issue descriptionThe CSSStyleDeclaration returned by getComputedStyle always returns a fixed value for length, ignoring the presence of any custom properties, while the CSSStyleDeclaration for inline style correctly counts custom properties. Similarly, item() on the style from getComputedStyle never returns a custom property. Firefox includes custom properties on computed style's length, and returns then as the last values for item(). http://jsbin.com/rurahoziya/1/edit?html,js,console,output
,
Aug 1 2016
Tab, do you think this is a valid bug? Thanks!
,
Feb 12 2017
,
Oct 30 2017
,
Oct 31 2017
,
Dec 6 2017
,
Jun 2 2018
Related spec issue: https://github.com/w3c/csswg-drafts/issues/1316. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by timloh@chromium.org
, Jul 5 2016