Indexed getter for readonly CSSStyleDeclaration is broken #26178
Labels
A-content/css
Interacting with CSS from web content (parsing, serializing, introspection)
A-content/dom
Interacting with the DOM from web content
C-has-manual-testcase
window.getComputedStyle(document.documentElement)[0]
returnsalign-content
in Firefox, butundefined
in Servo.get_property_value
correctly has a different codepath for readonly (ie. computed) style declarations, but IndexedGetter (and Length) do not. It shouldn't be too hard to reuse the get_computed_style code path for the indexed getter as long as we can figure out how to map the array indices to property names, but it's not totally clear how to get the length of the computed styles.This also has the effect that
Object.getOwnPropertyNames(window.getComputedStyle(document.documentElement))
returns an empty object, and this ends up breaking the MotionMark benchmark's browser detection.The text was updated successfully, but these errors were encountered: