summaryrefslogtreecommitdiffstats
path: root/servo/components/style/properties/longhands/inherited_ui.mako.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /servo/components/style/properties/longhands/inherited_ui.mako.rs
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'servo/components/style/properties/longhands/inherited_ui.mako.rs')
-rw-r--r--servo/components/style/properties/longhands/inherited_ui.mako.rs120
1 files changed, 120 insertions, 0 deletions
diff --git a/servo/components/style/properties/longhands/inherited_ui.mako.rs b/servo/components/style/properties/longhands/inherited_ui.mako.rs
new file mode 100644
index 0000000000..44dfdd74a2
--- /dev/null
+++ b/servo/components/style/properties/longhands/inherited_ui.mako.rs
@@ -0,0 +1,120 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+<%namespace name="helpers" file="/helpers.mako.rs" />
+
+<% data.new_style_struct("InheritedUI", inherited=True, gecko_name="UI") %>
+
+${helpers.predefined_type(
+ "cursor",
+ "Cursor",
+ "computed::Cursor::auto()",
+ engines="gecko servo-2013 servo-2020",
+ initial_specified_value="specified::Cursor::auto()",
+ animation_value_type="discrete",
+ spec="https://drafts.csswg.org/css-ui/#cursor",
+)}
+
+// NB: `pointer-events: auto` (and use of `pointer-events` in anything that isn't SVG, in fact)
+// is nonstandard, slated for CSS4-UI.
+// TODO(pcwalton): SVG-only values.
+${helpers.single_keyword(
+ "pointer-events",
+ "auto none",
+ engines="gecko servo-2013 servo-2020",
+ animation_value_type="discrete",
+ extra_gecko_values="visiblepainted visiblefill visiblestroke visible painted fill stroke all",
+ spec="https://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty",
+ gecko_enum_prefix="StylePointerEvents",
+)}
+
+${helpers.single_keyword(
+ "-moz-inert",
+ "none inert",
+ engines="gecko",
+ gecko_ffi_name="mInert",
+ gecko_enum_prefix="StyleInert",
+ animation_value_type="discrete",
+ enabled_in="ua",
+ spec="Nonstandard (https://html.spec.whatwg.org/multipage/#inert-subtrees)",
+)}
+
+${helpers.single_keyword(
+ "-moz-user-input",
+ "auto none",
+ engines="gecko",
+ gecko_ffi_name="mUserInput",
+ gecko_enum_prefix="StyleUserInput",
+ animation_value_type="discrete",
+ spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-input)",
+)}
+
+${helpers.single_keyword(
+ "-moz-user-modify",
+ "read-only read-write write-only",
+ engines="gecko",
+ gecko_ffi_name="mUserModify",
+ gecko_enum_prefix="StyleUserModify",
+ needs_conversion=True,
+ animation_value_type="discrete",
+ spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-modify)",
+)}
+
+${helpers.single_keyword(
+ "-moz-user-focus",
+ "none ignore normal select-after select-before select-menu select-same select-all",
+ engines="gecko",
+ gecko_ffi_name="mUserFocus",
+ gecko_enum_prefix="StyleUserFocus",
+ animation_value_type="discrete",
+ spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-user-focus)",
+)}
+
+${helpers.predefined_type(
+ "caret-color",
+ "color::CaretColor",
+ "generics::color::CaretColor::auto()",
+ engines="gecko",
+ spec="https://drafts.csswg.org/css-ui/#caret-color",
+ animation_value_type="CaretColor",
+ boxed=True,
+ ignored_when_colors_disabled=True,
+)}
+
+${helpers.predefined_type(
+ "accent-color",
+ "ColorOrAuto",
+ "generics::color::ColorOrAuto::Auto",
+ engines="gecko",
+ spec="https://drafts.csswg.org/css-ui-4/#widget-accent",
+ gecko_pref="layout.css.accent-color.enabled",
+ animation_value_type="ColorOrAuto",
+ boxed=True,
+ ignored_when_colors_disabled=True,
+ has_effect_on_gecko_scrollbars=False,
+)}
+
+${helpers.predefined_type(
+ "color-scheme",
+ "ColorScheme",
+ "specified::color::ColorScheme::normal()",
+ engines="gecko",
+ spec="https://drafts.csswg.org/css-color-adjust/#color-scheme-prop",
+ gecko_pref="layout.css.color-scheme.enabled",
+ animation_value_type="discrete",
+ has_effect_on_gecko_scrollbars=False,
+ ignored_when_colors_disabled=True,
+ enabled_in="chrome",
+)}
+
+${helpers.predefined_type(
+ "scrollbar-color",
+ "ui::ScrollbarColor",
+ "Default::default()",
+ engines="gecko",
+ spec="https://drafts.csswg.org/css-scrollbars-1/#scrollbar-color",
+ animation_value_type="ScrollbarColor",
+ boxed=True,
+ ignored_when_colors_disabled=True,
+)}