Skip to content

Commit 7da2b14

Browse files
committed
fix(reset): select border-radius in Safari
1 parent ebab002 commit 7da2b14

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

.changeset/tasty-pandas-impress.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"css-homogenizer": patch
3+
---
4+
5+
fix(reset): select border-radius in Safari

reset-scoped.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* Selectors sorted as they appear in the HTML Standard for better compression.
66
*/
77

8-
/* Only for Safari: button, select, input, textarea */
98
._h1,
109
._h2,
1110
._h3,
@@ -22,10 +21,10 @@
2221
._dl,
2322
._dd,
2423
._figure,
25-
._input,
26-
._button,
27-
._select,
28-
._textarea,
24+
._input, /* Safari-only */
25+
._button, /* Safari-only */
26+
._select, /* Safari-only */
27+
._textarea, /* Safari-only */
2928
._fieldset {
3029
margin: 0;
3130
}
@@ -98,9 +97,13 @@
9897
color: inherit;
9998
}
10099

101-
/* Only for Firefox */
102100
._input::placeholder,
103101
._textarea::placeholder {
104102
color: gray;
105-
opacity: 1;
103+
opacity: 1; /* Firefox-only */
104+
}
105+
106+
/* Safari-only */
107+
._select {
108+
border-radius: 0;
106109
}

reset.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ html {
99
line-height: 1;
1010
}
1111

12-
/* Only for Safari: button, select, input, textarea */
1312
body,
1413
h1,
1514
h2,
@@ -27,10 +26,10 @@ menu,
2726
dl,
2827
dd,
2928
figure,
30-
input,
31-
button,
32-
select,
33-
textarea,
29+
input, /* Safari-only */
30+
button, /* Safari-only */
31+
select, /* Safari-only */
32+
textarea, /* Safari-only */
3433
fieldset {
3534
margin: 0;
3635
}
@@ -103,9 +102,13 @@ textarea {
103102
color: inherit;
104103
}
105104

106-
/* Only for Firefox */
107105
input::placeholder,
108106
textarea::placeholder {
109107
color: gray;
110-
opacity: 1;
108+
opacity: 1; /* Firefox-only */
109+
}
110+
111+
/* Safari-only */
112+
select {
113+
border-radius: 0;
111114
}

0 commit comments

Comments
 (0)