Skip to content

Commit f33d8b0

Browse files
authored
Use UA styles rather than prose to define <input> clip
The previous prose to make `overflow` act as `visible` with regards to other CSS features but still clip didn't work well with e.g. `text-overflow: ellipsis`. CSS now has a standard way to do what `input` buttons need, i.e. clip and also not affect interaction with `vertical-align`. Fixes #9976.
1 parent 6bc6e2d commit f33d8b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131501,6 +131501,11 @@ input, select, button, textarea {
131501131501
appearance: auto;
131502131502
}
131503131503

131504+
input:not([type=image i]) {
131505+
overflow: clip !important;
131506+
overflow-clip-margin: 0 !important;
131507+
}
131508+
131504131509
input, select, textarea {
131505131510
text-align: initial;
131506131511
}
@@ -131540,11 +131545,6 @@ input:not([type=image i]), textarea { box-sizing: border-box; }</code></pre>
131540131545

131541131546
<ul>
131542131547
<li><p>The <span>inner display type</span> is always 'flow-root'.</p></li>
131543-
131544-
<li><p>The <span>'overflow'</span> property is ignored, and always behaves as 'visible' for the
131545-
purpose of interaction with other CSS features (in particular, the <span>'vertical-align'</span>
131546-
property), but still clips any overflow at the border edge, and no scrolling mechanism is
131547-
displayed.</p></li>
131548131548
</ul>
131549131549

131550131550

0 commit comments

Comments
 (0)