inherited_svg.mako.rs (6158B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ 4 5 <%namespace name="helpers" file="/helpers.mako.rs" /> 6 7 // Section 10 - Text 8 9 ${helpers.single_keyword( 10 "dominant-baseline", 11 """auto ideographic alphabetic hanging mathematical central middle 12 text-after-edge text-before-edge""", 13 engines="gecko", 14 animation_type="discrete", 15 spec="https://www.w3.org/TR/css-inline-3/#propdef-dominant-baseline", 16 gecko_enum_prefix="StyleDominantBaseline", 17 affects="layout", 18 )} 19 20 ${helpers.single_keyword( 21 "text-anchor", 22 "start middle end", 23 engines="gecko", 24 animation_type="discrete", 25 spec="https://svgwg.org/svg2-draft/text.html#TextAnchorProperty", 26 gecko_enum_prefix="StyleTextAnchor", 27 affects="layout", 28 )} 29 30 // Section 11 - Painting: Filling, Stroking and Marker Symbols 31 ${helpers.single_keyword( 32 "color-interpolation", 33 "srgb auto linearrgb", 34 engines="gecko", 35 animation_type="discrete", 36 spec="https://svgwg.org/svg2-draft/painting.html#ColorInterpolationProperty", 37 gecko_enum_prefix="StyleColorInterpolation", 38 affects="paint", 39 )} 40 41 ${helpers.single_keyword( 42 "color-interpolation-filters", 43 "linearrgb auto srgb", 44 engines="gecko", 45 animation_type="discrete", 46 spec="https://svgwg.org/svg2-draft/painting.html#ColorInterpolationFiltersProperty", 47 gecko_enum_prefix="StyleColorInterpolation", 48 affects="paint", 49 )} 50 51 ${helpers.predefined_type( 52 "fill", 53 "SVGPaint", 54 "crate::values::computed::SVGPaint::BLACK", 55 engines="gecko", 56 boxed=True, 57 spec="https://svgwg.org/svg2-draft/painting.html#SpecifyingFillPaint", 58 affects="paint", 59 )} 60 61 ${helpers.predefined_type( 62 "fill-opacity", 63 "SVGOpacity", 64 "Default::default()", 65 engines="gecko", 66 spec="https://svgwg.org/svg2-draft/painting.html#FillOpacity", 67 affects="paint", 68 )} 69 70 ${helpers.predefined_type( 71 "fill-rule", 72 "FillRule", 73 "Default::default()", 74 engines="gecko", 75 animation_type="discrete", 76 spec="https://svgwg.org/svg2-draft/painting.html#FillRuleProperty", 77 affects="paint", 78 )} 79 80 ${helpers.single_keyword( 81 "shape-rendering", 82 "auto optimizespeed crispedges geometricprecision", 83 engines="gecko", 84 animation_type="discrete", 85 spec="https://svgwg.org/svg2-draft/painting.html#ShapeRenderingProperty", 86 gecko_enum_prefix = "StyleShapeRendering", 87 affects="paint", 88 )} 89 90 ${helpers.predefined_type( 91 "stroke", 92 "SVGPaint", 93 "Default::default()", 94 engines="gecko", 95 boxed=True, 96 spec="https://svgwg.org/svg2-draft/painting.html#SpecifyingStrokePaint", 97 affects="paint", 98 )} 99 100 ${helpers.predefined_type( 101 "stroke-width", 102 "SVGWidth", 103 "computed::SVGWidth::one()", 104 engines="gecko", 105 spec="https://svgwg.org/svg2-draft/painting.html#StrokeWidth", 106 affects="layout", 107 )} 108 109 ${helpers.single_keyword( 110 "stroke-linecap", 111 "butt round square", 112 engines="gecko", 113 animation_type="discrete", 114 spec="https://svgwg.org/svg2-draft/painting.html#StrokeLinecapProperty", 115 gecko_enum_prefix = "StyleStrokeLinecap", 116 affects="layout", 117 )} 118 119 ${helpers.single_keyword( 120 "stroke-linejoin", 121 "miter round bevel", 122 engines="gecko", 123 animation_type="discrete", 124 spec="https://svgwg.org/svg2-draft/painting.html#StrokeLinejoinProperty", 125 gecko_enum_prefix = "StyleStrokeLinejoin", 126 affects="layout", 127 )} 128 129 ${helpers.predefined_type( 130 "stroke-miterlimit", 131 "NonNegativeNumber", 132 "From::from(4.0)", 133 engines="gecko", 134 spec="https://svgwg.org/svg2-draft/painting.html#StrokeMiterlimitProperty", 135 affects="layout", 136 )} 137 138 ${helpers.predefined_type( 139 "stroke-opacity", 140 "SVGOpacity", 141 "Default::default()", 142 engines="gecko", 143 spec="https://svgwg.org/svg2-draft/painting.html#StrokeOpacity", 144 affects="paint", 145 )} 146 147 ${helpers.predefined_type( 148 "stroke-dasharray", 149 "SVGStrokeDashArray", 150 "Default::default()", 151 engines="gecko", 152 spec="https://svgwg.org/svg2-draft/painting.html#StrokeDashing", 153 affects="paint", 154 )} 155 156 ${helpers.predefined_type( 157 "stroke-dashoffset", 158 "SVGLength", 159 "computed::SVGLength::zero()", 160 engines="gecko", 161 spec="https://svgwg.org/svg2-draft/painting.html#StrokeDashing", 162 affects="paint", 163 )} 164 165 // Section 14 - Clipping, Masking and Compositing 166 ${helpers.predefined_type( 167 "clip-rule", 168 "FillRule", 169 "Default::default()", 170 engines="gecko", 171 animation_type="discrete", 172 spec="https://svgwg.org/svg2-draft/masking.html#ClipRuleProperty", 173 affects="paint", 174 )} 175 176 ${helpers.predefined_type( 177 "marker-start", 178 "url::UrlOrNone", 179 "computed::url::UrlOrNone::none()", 180 engines="gecko", 181 animation_type="discrete", 182 spec="https://svgwg.org/svg2-draft/painting.html#VertexMarkerProperties", 183 affects="layout", 184 )} 185 186 ${helpers.predefined_type( 187 "marker-mid", 188 "url::UrlOrNone", 189 "computed::url::UrlOrNone::none()", 190 engines="gecko", 191 animation_type="discrete", 192 spec="https://svgwg.org/svg2-draft/painting.html#VertexMarkerProperties", 193 affects="layout", 194 )} 195 196 ${helpers.predefined_type( 197 "marker-end", 198 "url::UrlOrNone", 199 "computed::url::UrlOrNone::none()", 200 engines="gecko", 201 animation_type="discrete", 202 spec="https://svgwg.org/svg2-draft/painting.html#VertexMarkerProperties", 203 affects="layout", 204 )} 205 206 ${helpers.predefined_type( 207 "paint-order", 208 "SVGPaintOrder", 209 "computed::SVGPaintOrder::normal()", 210 engines="gecko", 211 animation_type="discrete", 212 spec="https://svgwg.org/svg2-draft/painting.html#PaintOrder", 213 affects="paint", 214 )} 215 216 ${helpers.predefined_type( 217 "-moz-context-properties", 218 "MozContextProperties", 219 "computed::MozContextProperties::default()", 220 engines="gecko", 221 enabled_in="chrome", 222 gecko_pref="svg.context-properties.content.enabled", 223 has_effect_on_gecko_scrollbars=False, 224 animation_type="none", 225 spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-context-properties)", 226 affects="paint", 227 )}