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" />
// Section 10 - Text
${helpers.single_keyword(
"dominant-baseline",
"""auto ideographic alphabetic hanging mathematical central middle
text-after-edge text-before-edge""",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix="StyleDominantBaseline",
affects="layout",
)}
${helpers.single_keyword(
"text-anchor",
"start middle end",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix="StyleTextAnchor",
affects="layout",
)}
// Section 11 - Painting: Filling, Stroking and Marker Symbols
${helpers.single_keyword(
"color-interpolation",
"srgb auto linearrgb",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix="StyleColorInterpolation",
affects="paint",
)}
${helpers.single_keyword(
"color-interpolation-filters",
"linearrgb auto srgb",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix="StyleColorInterpolation",
affects="paint",
)}
${helpers.predefined_type(
"fill",
"SVGPaint",
"crate::values::computed::SVGPaint::BLACK",
engines="gecko",
boxed=True,
affects="paint",
)}
${helpers.predefined_type(
"fill-opacity",
"SVGOpacity",
"Default::default()",
engines="gecko",
affects="paint",
)}
${helpers.predefined_type(
"fill-rule",
"FillRule",
"Default::default()",
engines="gecko",
animation_type="discrete",
affects="paint",
)}
${helpers.single_keyword(
"shape-rendering",
"auto optimizespeed crispedges geometricprecision",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix = "StyleShapeRendering",
affects="paint",
)}
${helpers.predefined_type(
"stroke",
"SVGPaint",
"Default::default()",
engines="gecko",
boxed=True,
affects="paint",
)}
${helpers.predefined_type(
"stroke-width",
"SVGWidth",
"computed::SVGWidth::one()",
engines="gecko",
affects="layout",
)}
${helpers.single_keyword(
"stroke-linecap",
"butt round square",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix = "StyleStrokeLinecap",
affects="layout",
)}
${helpers.single_keyword(
"stroke-linejoin",
"miter round bevel",
engines="gecko",
animation_type="discrete",
gecko_enum_prefix = "StyleStrokeLinejoin",
affects="layout",
)}
${helpers.predefined_type(
"stroke-miterlimit",
"NonNegativeNumber",
"From::from(4.0)",
engines="gecko",
affects="layout",
)}
${helpers.predefined_type(
"stroke-opacity",
"SVGOpacity",
"Default::default()",
engines="gecko",
affects="paint",
)}
${helpers.predefined_type(
"stroke-dasharray",
"SVGStrokeDashArray",
"Default::default()",
engines="gecko",
affects="paint",
)}
${helpers.predefined_type(
"stroke-dashoffset",
"SVGLength",
"computed::SVGLength::zero()",
engines="gecko",
affects="paint",
)}
// Section 14 - Clipping, Masking and Compositing
${helpers.predefined_type(
"clip-rule",
"FillRule",
"Default::default()",
engines="gecko",
animation_type="discrete",
affects="paint",
)}
${helpers.predefined_type(
"marker-start",
"url::UrlOrNone",
"computed::url::UrlOrNone::none()",
engines="gecko",
animation_type="discrete",
affects="layout",
)}
${helpers.predefined_type(
"marker-mid",
"url::UrlOrNone",
"computed::url::UrlOrNone::none()",
engines="gecko",
animation_type="discrete",
affects="layout",
)}
${helpers.predefined_type(
"marker-end",
"url::UrlOrNone",
"computed::url::UrlOrNone::none()",
engines="gecko",
animation_type="discrete",
affects="layout",
)}
${helpers.predefined_type(
"paint-order",
"SVGPaintOrder",
"computed::SVGPaintOrder::normal()",
engines="gecko",
animation_type="discrete",
affects="paint",
)}
${helpers.predefined_type(
"-moz-context-properties",
"MozContextProperties",
"computed::MozContextProperties::default()",
engines="gecko",
enabled_in="chrome",
gecko_pref="svg.context-properties.content.enabled",
has_effect_on_gecko_scrollbars=False,
animation_type="none",
affects="paint",
)}