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
I kinda expected
overflow-clip-margin: content-boxto work on scrollable boxes. This would only be useful forcontent-box(because you can't specify a negative clip margin).I.e. I'd expect these two elements to render the same.
Should they? That would allow achieving the same magic clipping behavior that some form controls (like
<input>) have.cc @dshin-moz @chrishtr @mfreed7