tor-browser

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

margin.mako.rs (1980B)


      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 <% from data import DEFAULT_RULES_AND_PAGE, POSITION_TRY_RULE, DEFAULT_RULES_AND_POSITION_TRY %>
      7 
      8 ${helpers.four_sides_shorthand(
      9    "margin",
     10    "margin-%s",
     11    "specified::Margin::parse",
     12    engines="gecko servo",
     13    spec="https://drafts.csswg.org/css-box/#propdef-margin",
     14    rule_types_allowed=DEFAULT_RULES_AND_PAGE | POSITION_TRY_RULE,
     15    allow_quirks="Yes",
     16 )}
     17 
     18 ${helpers.two_properties_shorthand(
     19    "margin-block",
     20    "margin-block-start",
     21    "margin-block-end",
     22    "specified::Margin::parse",
     23    engines="gecko servo",
     24    spec="https://drafts.csswg.org/css-logical/#propdef-margin-block",
     25    rule_types_allowed=DEFAULT_RULES_AND_POSITION_TRY
     26 )}
     27 
     28 ${helpers.two_properties_shorthand(
     29    "margin-inline",
     30    "margin-inline-start",
     31    "margin-inline-end",
     32    "specified::Margin::parse",
     33    engines="gecko servo",
     34    spec="https://drafts.csswg.org/css-logical/#propdef-margin-inline",
     35    rule_types_allowed=DEFAULT_RULES_AND_POSITION_TRY
     36 )}
     37 
     38 ${helpers.four_sides_shorthand(
     39    "scroll-margin",
     40    "scroll-margin-%s",
     41    "specified::Length::parse",
     42    engines="gecko",
     43    spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin",
     44 )}
     45 
     46 ${helpers.two_properties_shorthand(
     47    "scroll-margin-block",
     48    "scroll-margin-block-start",
     49    "scroll-margin-block-end",
     50    "specified::Length::parse",
     51    engines="gecko",
     52    spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-block",
     53 )}
     54 
     55 ${helpers.two_properties_shorthand(
     56    "scroll-margin-inline",
     57    "scroll-margin-inline-start",
     58    "scroll-margin-inline-end",
     59    "specified::Length::parse",
     60    engines="gecko",
     61    spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-margin-inline",
     62 )}