Skip to content

Commit fe56763

Browse files
patrickhlaukenecolas
authored andcommitted
Remove box-sizing for input[type="search"]
This normalizes the CSS to what the suggested default browser CSS should be, which is now implemented in IE11, Edge, Blink, WebKit and Gecko (for the latter, see https://www.w3.org/Bugs/Public/show_bug.cgi?id=28784) References twbs/bootstrap#17379 Closes #471
1 parent 64de79a commit fe56763

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

normalize.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,11 @@ input[type="number"]::-webkit-outer-spin-button {
348348
}
349349

350350
/**
351-
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
352-
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
351+
* Address `appearance` set to `searchfield` in Safari and Chrome.
353352
*/
354353

355354
input[type="search"] {
356-
-webkit-appearance: textfield; /* 1 */
357-
box-sizing: content-box; /* 2 */
355+
-webkit-appearance: textfield;
358356
}
359357

360358
/**

test.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,6 @@ <h3 class="Test-it">should be styleable</h3>
429429
<div class="Test-run">
430430
<input type="search" style="border:1px solid #ADD8E6; padding:10px; width:200px;">
431431
</div>
432-
<h3 class="Test-it">should have a <code>content-box</code> box model</h3>
433-
<div class="Test-run">
434-
<div style="background:red; display:inline-block; height:62px; width:242px;">
435-
<input type="search" style="border:1px solid #ADD8E6; height:20px; padding:20px; width:200px;">
436-
</div>
437-
</div>
438432
<h3 class="Test-it">should not have a cancel button in Safari or Chrome</h3>
439433
<div class="Test-run">
440434
<input type="search" value="search">

0 commit comments

Comments
 (0)