Skip to content
Permalink
Browse files
Remove unnecessary appearance: auto; declarations in html.css.
https://bugs.webkit.org/show_bug.cgi?id=240764

`input` and `select` already have an `appearance: auto` rule.

Reviewed by Tim Nguyen.

* Source/WebCore/css/html.css:
(#endif):
(input[type="search"]::-webkit-search-cancel-button):
(input[type="search"]::-webkit-search-decoration):
(#if defined(ENABLE_DATE_AND_TIME_INPUT_TYPES) && ENABLE_DATE_AND_TIME_INPUT_TYPES):
(input:is([type="button"], [type="submit"], [type="reset"])):
(input[type="file"]::file-selector-button):
(input[type="checkbox"]):
(#if !(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)):
(select:is([size=""], [size="0"], [size="1"])):

Canonical link: https://commits.webkit.org/250859@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
ziransun committed May 23, 2022
1 parent 20ac310 commit 848c6dd0c808e42c7cdf8588127910cf9eec8417
Showing 1 changed file with 2 additions and 25 deletions.
@@ -436,7 +436,6 @@ input {
#endif

input[type="search"] {
appearance: auto;
box-sizing: border-box;
#if defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY
border: 1px solid -webkit-control-background;
@@ -450,22 +449,8 @@ input::-webkit-textfield-decoration-container {
content: none !important;
}

input[type="search"]::-webkit-search-cancel-button {
appearance: auto;
display: block;
flex: none;
align-self: flex-start;
margin: auto 0;
}

input[type="search"]::-webkit-search-decoration {
appearance: auto;
display: block;
flex: none;
align-self: flex-start;
margin: auto 0;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-decoration {
appearance: auto;
display: block;
@@ -486,7 +471,6 @@ input[type="search"]::-webkit-search-results-button {

#if defined(ENABLE_DATE_AND_TIME_INPUT_TYPES) && ENABLE_DATE_AND_TIME_INPUT_TYPES
input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"], [type="week"]) {
appearance: auto;
align-items: center;
display: inline-flex;
overflow: hidden;
@@ -817,12 +801,10 @@ input:is([type="radio"], [type="checkbox"]) {
}

input:is([type="button"], [type="submit"], [type="reset"]) {
appearance: auto;
white-space: pre;
}

input[type="file"]::file-selector-button {
appearance: auto;
white-space: nowrap;
margin: 0;
font-size: inherit;
@@ -868,7 +850,6 @@ button[type="menu"], button[type="menu"]:active {
#endif

input[type="range"] {
appearance: auto;
padding: initial;
border: initial;
margin: 2px;
@@ -960,7 +941,6 @@ area, param {
}

input[type="checkbox"] {
appearance: auto;
#if !(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)
box-sizing: border-box;
#else
@@ -1009,7 +989,6 @@ input:is([type="checkbox"], [type="radio"]):checked:disabled {

#if !(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)
input[type="radio"] {
appearance: auto;
box-sizing: border-box;
}
#endif
@@ -1078,15 +1057,13 @@ select {

#if !(defined(WTF_PLATFORM_IOS_FAMILY) && WTF_PLATFORM_IOS_FAMILY)
select:is([size], [multiple]), select[size][multiple] {
appearance: auto;
align-items: flex-start;
border: 1px inset gray;
border-radius: initial;
white-space: initial;
}

select:is([size=""], [size="0"], [size="1"]) {
appearance: auto;
align-items: center;
border: 1px solid;
border-radius: 5px;

0 comments on commit 848c6dd

Please sign in to comment.