Skip to content

[css-overflow] Should overflow-clip-margin apply to scrollable boxes? #10745

@emilio

Description

@emilio

I kinda expected overflow-clip-margin: content-box to work on scrollable boxes. This would only be useful for content-box (because you can't specify a negative clip margin).

I.e. I'd expect these two elements to render the same.

<!doctype html>
<style>
  div {
    width: 50px;
    height: 50px;
    border: 1px solid;
    padding: 10px;
    overflow-clip-margin: content-box;
  }
  span { height: 100px; width: 100px; background: green }
</style>
<div style="overflow: clip"><span></span></div>
<div style="overflow: hidden"><span></span></div>

Should they? That would allow achieving the same magic clipping behavior that some form controls (like <input>) have.

cc @dshin-moz @chrishtr @mfreed7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Regular agenda items

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions