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
<%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_type="discrete",
affects="paint",
)}
${helpers.predefined_type(
"pointer-events",
"PointerEvents",
"specified::PointerEvents::Auto",
engines="gecko servo",
animation_type="discrete",
affects="paint",
)}
${helpers.predefined_type(
"-moz-inert",
"Inert",
"specified::Inert::None",
engines="gecko",
gecko_ffi_name="mInert",
animation_type="discrete",
enabled_in="ua",
affects="paint",
)}
${helpers.predefined_type(
"-moz-user-input",
"UserInput",
"specified::UserInput::Auto",
engines="gecko",
gecko_ffi_name="mUserInput",
animation_type="discrete",
affects="",
)}
// This property is marked as enabled_in="chrome" because until we fully remove it, we still need
// the internal uses. It is slightly more convenient to have it as a chrome rather than ua-only
// property (there are tests that parse UA sheets as chrome stylesheets and so).
${helpers.predefined_type(
"-moz-user-modify",
"UserModify",
"specified::UserModify::ReadOnly",
engines="gecko",
gecko_ffi_name="mUserModify",
gecko_pref="layout.css.moz-user-modify.enabled",
enabled_in="chrome",
has_effect_on_gecko_scrollbars=False,
animation_type="discrete",
affects="",
)}
${helpers.predefined_type(
"-moz-user-focus",
"UserFocus",
"specified::UserFocus::Normal",
engines="gecko",
gecko_ffi_name="mUserFocus",
animation_type="discrete",
enabled_in="chrome",
affects="",
)}
${helpers.predefined_type(
"caret-color",
"color::CaretColor",
"generics::color::CaretColor::auto()",
engines="gecko",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"accent-color",
"ColorOrAuto",
"generics::color::ColorOrAuto::Auto",
engines="gecko",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"color-scheme",
"ColorScheme",
"specified::color::ColorScheme::normal()",
engines="gecko servo",
servo_pref="layout.unimplemented",
animation_type="discrete",
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"scrollbar-color",
"ScrollbarColor",
"Default::default()",
engines="gecko",
boxed=True,
ignored_when_colors_disabled=True,
affects="paint",
)}
${helpers.predefined_type(
"-moz-theme",
"MozTheme",
"specified::MozTheme::Auto",
engines="gecko",
enabled_in="chrome",
animation_type="discrete",
spec="Internal",
affects="paint",
)}