Source code

Revision control

Copy as Markdown

Other Tools

/* 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" />
${helpers.predefined_type(
"cursor",
"Cursor",
"computed::Cursor::auto()",
engines="gecko servo",
initial_specified_value="specified::Cursor::auto()",
animation_value_type="discrete",
affects="paint",
)}
// 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",
animation_value_type="discrete",
extra_gecko_values="visiblepainted visiblefill visiblestroke visible painted fill stroke all",
gecko_enum_prefix="StylePointerEvents",
affects="paint",
)}
${helpers.single_keyword(
"-moz-inert",
"none inert",
engines="gecko",
gecko_ffi_name="mInert",
gecko_enum_prefix="StyleInert",
animation_value_type="discrete",
enabled_in="ua",
affects="paint",
)}
${helpers.single_keyword(
"-moz-user-input",
"auto none",
engines="gecko",
gecko_ffi_name="mUserInput",
gecko_enum_prefix="StyleUserInput",
animation_value_type="discrete",
affects="",
)}
${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",
affects="",
)}
${helpers.single_keyword(
"-moz-user-focus",
"normal none ignore",
engines="gecko",
gecko_ffi_name="mUserFocus",
gecko_enum_prefix="StyleUserFocus",
animation_value_type="discrete",
enabled_in="chrome",
affects="",
)}
${helpers.predefined_type(
"caret-color",
"color::CaretColor",
"generics::color::CaretColor::auto()",
engines="gecko",
animation_value_type="CaretColor",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"accent-color",
"ColorOrAuto",
"generics::color::ColorOrAuto::Auto",
engines="gecko",
animation_value_type="ColorOrAuto",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"color-scheme",
"ColorScheme",
"specified::color::ColorScheme::normal()",
engines="gecko",
animation_value_type="discrete",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"scrollbar-color",
"ui::ScrollbarColor",
"Default::default()",
engines="gecko",
animation_value_type="ScrollbarColor",
boxed=True,
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"-moz-theme",
"ui::MozTheme",
"specified::ui::MozTheme::Auto",
engines="gecko",
enabled_in="chrome",
animation_value_type="discrete",
spec="Internal",
affects="paint",
)}