tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

text.mako.rs (3242B)


      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 ${helpers.predefined_type(
      8    "text-overflow",
      9    "TextOverflow",
     10    "computed::TextOverflow::get_initial_value()",
     11    engines="gecko servo",
     12    servo_pref="layout.unimplemented",
     13    animation_type="discrete",
     14    boxed=True,
     15    spec="https://drafts.csswg.org/css-ui/#propdef-text-overflow",
     16    servo_restyle_damage="rebuild_box",
     17    affects="paint",
     18 )}
     19 
     20 ${helpers.single_keyword(
     21    "unicode-bidi",
     22    "normal embed isolate bidi-override isolate-override plaintext",
     23    engines="gecko servo",
     24    gecko_enum_prefix="StyleUnicodeBidi",
     25    animation_type="none",
     26    spec="https://drafts.csswg.org/css-writing-modes/#propdef-unicode-bidi",
     27    servo_restyle_damage="rebuild_box",
     28    affects="layout",
     29 )}
     30 
     31 ${helpers.predefined_type(
     32    "text-decoration-line",
     33    "TextDecorationLine",
     34    "specified::TextDecorationLine::none()",
     35    engines="gecko servo",
     36    initial_specified_value="specified::TextDecorationLine::none()",
     37    animation_type="discrete",
     38    spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-line",
     39    servo_restyle_damage="rebuild_box",
     40    affects="overflow",
     41 )}
     42 
     43 ${helpers.single_keyword(
     44    "text-decoration-style",
     45    "solid double dotted dashed wavy -moz-none",
     46    engines="gecko servo",
     47    gecko_enum_prefix="StyleTextDecorationStyle",
     48    animation_type="discrete",
     49    spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-style",
     50    affects="overflow",
     51 )}
     52 
     53 ${helpers.predefined_type(
     54    "text-decoration-inset",
     55    "TextDecorationInset",
     56    "computed::text::TextDecorationInset::get_initial_value()",
     57    engines="gecko",
     58    initial_specified_value="specified::text::TextDecorationInset::get_initial_value()",
     59    boxed=True,
     60    gecko_pref="layout.css.text-decoration-inset.enabled",
     61    spec="https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-inset-property",
     62    affects="overflow",
     63 )}
     64 
     65 ${helpers.predefined_type(
     66    "text-decoration-color",
     67    "Color",
     68    "computed_value::T::currentcolor()",
     69    engines="gecko servo",
     70    initial_specified_value="specified::Color::currentcolor()",
     71    ignored_when_colors_disabled=True,
     72    spec="https://drafts.csswg.org/css-text-decor/#propdef-text-decoration-color",
     73    affects="paint",
     74 )}
     75 
     76 ${helpers.predefined_type(
     77    "initial-letter",
     78    "InitialLetter",
     79    "computed::InitialLetter::normal()",
     80    engines="gecko",
     81    initial_specified_value="specified::InitialLetter::normal()",
     82    animation_type="discrete",
     83    gecko_pref="layout.css.initial-letter.enabled",
     84    spec="https://drafts.csswg.org/css-inline/#sizing-drop-initials",
     85    affects="layout",
     86 )}
     87 
     88 ${helpers.predefined_type(
     89    "text-decoration-thickness",
     90    "TextDecorationLength",
     91    "generics::text::GenericTextDecorationLength::Auto",
     92    engines="gecko",
     93    initial_specified_value="generics::text::GenericTextDecorationLength::Auto",
     94    spec="https://drafts.csswg.org/css-text-decor-4/#text-decoration-width-property",
     95    affects="overflow",
     96 )}