tor-browser

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

list.mako.rs (2647B)


      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.single_keyword(
      8    "list-style-position",
      9    "outside inside",
     10    engines="gecko servo",
     11    gecko_enum_prefix="StyleListStylePosition",
     12    animation_type="discrete",
     13    spec="https://drafts.csswg.org/css-lists/#propdef-list-style-position",
     14    servo_restyle_damage="rebuild_box",
     15    affects="layout",
     16 )}
     17 
     18 // TODO(pcwalton): Implement the full set of counter styles per CSS-COUNTER-STYLES [1] 6.1:
     19 //
     20 //     decimal-leading-zero, armenian, upper-armenian, lower-armenian, georgian, lower-roman,
     21 //     upper-roman
     22 //
     23 // [1]: http://dev.w3.org/csswg/css-counter-styles/
     24 % if engine == "servo":
     25    ${helpers.single_keyword(
     26        "list-style-type",
     27        """disc none circle square disclosure-open disclosure-closed
     28            decimal lower-alpha upper-alpha arabic-indic bengali cambodian cjk-decimal devanagari
     29            gujarati gurmukhi kannada khmer lao malayalam mongolian myanmar oriya persian telugu
     30            thai tibetan cjk-earthly-branch cjk-heavenly-stem lower-greek hiragana hiragana-iroha
     31            katakana katakana-iroha
     32        """,
     33        engines="servo",
     34        animation_type="discrete",
     35        spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type",
     36        servo_restyle_damage="rebuild_box",
     37        affects="layout",
     38    )}
     39 % endif
     40 % if engine == "gecko":
     41    ${helpers.predefined_type(
     42        "list-style-type",
     43        "ListStyleType",
     44        "computed::ListStyleType::disc()",
     45        engines="gecko",
     46        initial_specified_value="specified::ListStyleType::disc()",
     47        animation_type="discrete",
     48        spec="https://drafts.csswg.org/css-lists/#propdef-list-style-type",
     49        servo_restyle_damage="rebuild_box",
     50        affects="layout",
     51    )}
     52 % endif
     53 
     54 ${helpers.predefined_type(
     55    "list-style-image",
     56    "Image",
     57    engines="gecko servo",
     58    initial_value="computed::Image::None",
     59    initial_specified_value="specified::Image::None",
     60    animation_type="discrete",
     61    spec="https://drafts.csswg.org/css-lists/#propdef-list-style-image",
     62    servo_restyle_damage="rebuild_box",
     63    affects="layout",
     64 )}
     65 
     66 ${helpers.predefined_type(
     67    "quotes",
     68    "Quotes",
     69    "computed::Quotes::get_initial_value()",
     70    engines="gecko servo",
     71    animation_type="discrete",
     72    spec="https://drafts.csswg.org/css-content/#propdef-quotes",
     73    servo_restyle_damage="rebuild_box",
     74    affects="layout",
     75 )}