New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 625522 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

CSSComputedStyleDeclaration::length doesn't consider custom properties

Project Member Reported by timloh@chromium.org, Jul 4 2016

Issue description

The 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
 
Summary: CSSComputedStyleDeclaration::length doesn't consider custom properties (was: CSSComputedStyleDeclaration::length dosen't consider custom properties)
Cc: tabatkins@chromium.org
Tab, do you think this is a valid bug?

Thanks!
Labels: Update-Quarterly
Labels: Code-ComputedStyle

Comment 5 by shend@chromium.org, Oct 31 2017

Labels: BlockedBug Standards
Labels: -Update-Quarterly
Related spec issue: https://github.com/w3c/csswg-drafts/issues/1316.

Sign in to add a comment