From 6cdf65b1e059d2905c2e2c536a7de4f8328a876c Mon Sep 17 00:00:00 2001
From: Siarhei Bobryk
Date: Tue, 15 Sep 2020 12:59:28 +0300
Subject: [PATCH] Remove redundant text-transform for FF's select
Nowadays we don't need to specify the text-transform property for the
select element for Firefox. Such functionality already built-in in
Firefox as well as for all other browsers normalise.css supports:
Chrome, Safari, Edge, IE11, IE10.
Sources:
- [Firefox's forms.css](https://dxr.mozilla.org/mozilla-central/source/layout/style/res/forms.css#133)
- `view-source:resource://gre-resources/forms.css`
Other changes:
- Specify IE supported versions because we still need to set
text-transform for button in Edge, IE11, and IE10 explicitly.
- Remove select from the text-transform UI test
Tested on:
- Safari 13.1.2
- Chrome 85.0.4183.102
- Firefox 80.0.1
- Edge 44.19041.423.0
- IE 11.450.19041.0
- IE 10.0.9200.16384
---
normalize.css | 6 ++----
test.html | 1 -
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/normalize.css b/normalize.css
index 192eb9ce4..7a64f097d 100644
--- a/normalize.css
+++ b/normalize.css
@@ -179,12 +179,10 @@ input { /* 1 */
}
/**
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
- * 1. Remove the inheritance of text transform in Firefox.
+ * Remove the inheritance of text transform in Edge, IE11, and IE10.
*/
-button,
-select { /* 1 */
+button {
text-transform: none;
}
diff --git a/test.html b/test.html
index 615b08326..4ccedef39 100644
--- a/test.html
+++ b/test.html
@@ -314,7 +314,6 @@