Skip to content

[css-overflow] CSSOM scrollWidth/scrollHeight behaviour of "overflow: clip". #5572

Closed
@bfgeek

Description

@bfgeek

Consider:

<!DOCTYPE html>
<div id="target" style="width: 50px; height: 50px; overflow: clip;">
  <div style="width: 100px; height: 100px; background: lime;"></div>
</div>
<script>
console.log(target.scrollWidth);
console.log(target.scrollHeight);
</script>

What should the console log?

FF currently logs 100, we Blink currently log 50 as we saw some additional performance opportunities (and it isn't "scrollable" like other overflow types), but happy if this should be 100.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions