Skip to content

Commit a80f8a6

Browse files
committed
Exclude Chrome-specific style from Safari
1 parent df8ea70 commit a80f8a6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

webext-base.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
/* Firefox only: @-moz-document */
44
/* Firefox only: var(--in-content-*) */
5+
/* Chrome only: -webkit-hyphens */
56
/* Safari only: _::-webkit-full-page-media */
67

78
@import 'chrome://global/skin/in-content/common.css'; /* Firefox-only */
@@ -39,10 +40,12 @@ input[type='checkbox'] {
3940
vertical-align: -0.15em;
4041
}
4142

42-
textarea:focus {
43-
/* Inexplicably missing from Chrome’s input style https://github.com/chromium/chromium/blob/6bea0557fe/extensions/renderer/resources/extension.css#L287 */
44-
border-color: #4d90fe;
45-
transition: border-color 200ms;
43+
@supports (not (-webkit-hyphens:none)) and (not (-moz-appearance:none)) and (list-style-type:'*') {
44+
textarea:focus {
45+
/* Inexplicably missing from Chrome’s input style https://github.com/chromium/chromium/blob/6bea0557fe/extensions/renderer/resources/extension.css#L287 */
46+
border-color: #4d90fe;
47+
transition: border-color 200ms;
48+
}
4649
}
4750

4851
hr {

0 commit comments

Comments
 (0)