aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-05-17 14:57:32 -0700
committerbors-servo <lbergstrom+bors@mozilla.com>2016-05-17 14:57:32 -0700
commite0addae51c6ecacd474e501da06f647ca9d96dc0 (patch)
tree51b3c0ee7695df53f7c91cd68d1b2859f7f73f4b /components/style
parent02399d90c175239f7ed9fafa1470dc8e0e9820eb (diff)
parent4f4d4cb7b436e9aad8a68327fd46a55e76e4f9f1 (diff)
downloadservo-e0addae51c6ecacd474e501da06f647ca9d96dc0.tar.gz
servo-e0addae51c6ecacd474e501da06f647ca9d96dc0.zip
Auto merge of #11222 - KiChjang:stylo-keywords, r=bholley
Add -moz-user-* CSS longhands for Gecko - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy --faster` does not report any errors - [x] These changes do not require tests because stylo r? @bholley <!-- 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/11222) <!-- Reviewable:end -->
Diffstat (limited to 'components/style')
-rw-r--r--components/style/properties/longhand/pointing.mako.rs12
-rw-r--r--components/style/properties/longhand/ui.mako.rs3
2 files changed, 15 insertions, 0 deletions
diff --git a/components/style/properties/longhand/pointing.mako.rs b/components/style/properties/longhand/pointing.mako.rs
index a00b2b8207d..7068a951b0e 100644
--- a/components/style/properties/longhand/pointing.mako.rs
+++ b/components/style/properties/longhand/pointing.mako.rs
@@ -54,3 +54,15 @@
// is nonstandard, slated for CSS4-UI.
// TODO(pcwalton): SVG-only values.
${helpers.single_keyword("pointer-events", "auto none")}
+
+${helpers.single_keyword("-moz-user-input", "none enabled disabled", products="gecko",
+ gecko_ffi_name="mUserInput", gecko_constant_prefix="NS_STYLE_USER_INPUT")}
+
+${helpers.single_keyword("-moz-user-modify", "read-only read-write write-only", products="gecko",
+ gecko_ffi_name="mUserModify", gecko_constant_prefix="NS_STYLE_USER_MODIFY")}
+
+${helpers.single_keyword("-moz-user-focus",
+ "ignore normal select-after select-before select-menu select-same select-all none",
+ products="gecko",
+ gecko_ffi_name="mUserFocus",
+ gecko_constant_prefix="NS_STYLE_USER_FOCUS")}
diff --git a/components/style/properties/longhand/ui.mako.rs b/components/style/properties/longhand/ui.mako.rs
index cb86d43bc2b..6e2fdb345fc 100644
--- a/components/style/properties/longhand/ui.mako.rs
+++ b/components/style/properties/longhand/ui.mako.rs
@@ -11,3 +11,6 @@
${helpers.single_keyword("ime-mode", "normal auto active disabled inactive", products="gecko",
gecko_ffi_name="mIMEMode")}
+
+${helpers.single_keyword("-moz-user-select", "auto text none all", products="gecko",
+ gecko_ffi_name="mUserSelect", gecko_constant_prefix="NS_STYLE_USER_SELECT")}