Skip to content

Shorthand properties of computed CSSStyleDeclaration don't return correct values #22838

@jdm

Description

@jdm
<div id="test" style="overflow: hidden"></div>
<script>onload = function() {
  var div = document.getElementById('test');
  console.log(getComputedStyle(div).overflow)
  console.log(getComputedStyle(div).overflowX);
};
</script>

In Firefox, this shows hidden twice. In Servo this shows an empty string, followed by hidden.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions