servo: Merge #11363 - Don't inherit text-transform on input elements (from Manishearth:transform-noinherit); r=SimonSapin
authorManish Goregaokar <manishsmail@gmail.com>
Tue, 24 May 2016 05:22:21 -0700
changeset 338891 30769cfe07cc0ae03ac873a5b69ac4aa25356175
parent 338890 9ab9423a875b4c4660057eb3cdb5a2394f567731
child 338892 c1f26391396ed3fcedb9b654c162a59ddcf5df83
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersSimonSapin
servo: Merge #11363 - Don't inherit text-transform on input elements (from Manishearth:transform-noinherit); r=SimonSapin Seems to be pretty standard across browsers. See also: https://www.tjvantoll.com/2012/07/10/default-browser-handling-of-the-css-text-transform-property/ Perhaps we should do this for more font properties? It seems like a bunch aren't inherited. Fixes #11362 Source-Repo: https://github.com/servo/servo Source-Revision: 2ce9eba3dc87348c5de235883295f0f6ead4317e
servo/resources/user-agent.css
--- a/servo/resources/user-agent.css
+++ b/servo/resources/user-agent.css
@@ -247,16 +247,17 @@ table:matches(
 
 :matches(table, thead, tbody, tfoot, tr) > form {
   display: none !important;
 }
 
 
 input, select, option, optgroup, button, textarea, keygen {
   text-indent: initial;
+  text-transform: none;
 }
 
 textarea { white-space: pre-wrap; }
 
 input[type="radio"], input[type="checkbox"], input[type="reset"], input[type="button"],
 input[type="submit"], select, button {
   box-sizing: border-box;
 }