aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-12 19:45:38 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-12 19:45:38 -0700
commit03465ad8c77f03ae2f538d046ae1e1dc86f04723 (patch)
treee407c4f46b06d0ad60ed87e2b9d75860cbcde3d5
parent2e049a85330ebc71212b4629119d561652ac9bef (diff)
parentf3f15040035b8cb52cffdc62e1a2cbd36bdebc9c (diff)
downloadservo-03465ad8c77f03ae2f538d046ae1e1dc86f04723.tar.gz
servo-03465ad8c77f03ae2f538d046ae1e1dc86f04723.zip
Auto merge of #11079 - Zaggy1024:label-cursor, r=pcwalton
Changed cursor for labels to "default" so their text doesn't use the text cursor. The cursor in Firefox and Chrome for labels is always the default cursor rather than changing to the text cursor on text. In Edge, however, this only applies to the text of the actual label element. This PR changes Servo to match Firefox and Chrome. A convenient example of an element that this style applies to (and has different behavior between Firefox and Edge) is the "This repository" label for the search input at the top on Github. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11079) <!-- Reviewable:end -->
-rw-r--r--resources/servo.css2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/servo.css b/resources/servo.css
index 1233d73ac17..5f53c177e59 100644
--- a/resources/servo.css
+++ b/resources/servo.css
@@ -33,6 +33,8 @@ td[align="right"] { text-align: right; }
center { text-align: -servo-center; }
+label { cursor: default; }
+
input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]),
textarea {
cursor: text;