tor-browser

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

column.mako.rs (2622B)


      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    "column-width",
      9    "length::NonNegativeLengthOrAuto",
     10    "computed::length::NonNegativeLengthOrAuto::auto()",
     11    engines="gecko servo",
     12    initial_specified_value="specified::length::NonNegativeLengthOrAuto::auto()",
     13    servo_pref="layout.columns.enabled",
     14    spec="https://drafts.csswg.org/css-multicol/#propdef-column-width",
     15    servo_restyle_damage="rebuild_box",
     16    affects="layout",
     17 )}
     18 
     19 ${helpers.predefined_type(
     20    "column-count",
     21    "ColumnCount",
     22    "computed::ColumnCount::Auto",
     23    engines="gecko servo",
     24    initial_specified_value="specified::ColumnCount::Auto",
     25    servo_pref="layout.columns.enabled",
     26    spec="https://drafts.csswg.org/css-multicol/#propdef-column-count",
     27    servo_restyle_damage="rebuild_box",
     28    affects="layout",
     29 )}
     30 
     31 ${helpers.single_keyword(
     32    "column-fill",
     33    "balance auto",
     34    engines="gecko",
     35    animation_type="discrete",
     36    gecko_enum_prefix="StyleColumnFill",
     37    spec="https://drafts.csswg.org/css-multicol/#propdef-column-fill",
     38    affects="layout",
     39 )}
     40 
     41 ${helpers.predefined_type(
     42    "column-rule-width",
     43    "BorderSideWidth",
     44    "computed::BorderSideWidth::medium()",
     45    engines="gecko",
     46    initial_specified_value="specified::BorderSideWidth::medium()",
     47    spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-width",
     48    affects="layout",
     49 )}
     50 
     51 // https://drafts.csswg.org/css-multicol-1/#crc
     52 ${helpers.predefined_type(
     53    "column-rule-color",
     54    "Color",
     55    "computed_value::T::currentcolor()",
     56    engines="gecko",
     57    initial_specified_value="specified::Color::currentcolor()",
     58    ignored_when_colors_disabled=True,
     59    spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-color",
     60    affects="paint",
     61 )}
     62 
     63 ${helpers.single_keyword(
     64    "column-span",
     65    "none all",
     66    engines="gecko servo",
     67    servo_pref="layout.columns.enabled",
     68    animation_type="discrete",
     69    gecko_enum_prefix="StyleColumnSpan",
     70    spec="https://drafts.csswg.org/css-multicol/#propdef-column-span",
     71    affects="layout",
     72 )}
     73 
     74 ${helpers.predefined_type(
     75    "column-rule-style",
     76    "BorderStyle",
     77    "computed::BorderStyle::None",
     78    engines="gecko",
     79    initial_specified_value="specified::BorderStyle::None",
     80    animation_type="discrete",
     81    spec="https://drafts.csswg.org/css-multicol/#propdef-column-rule-style",
     82    affects="paint",
     83 )}