tor-browser

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

page.mako.rs (1226B)


      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 PAGE_RULE %>
      7 
      8 ${helpers.predefined_type(
      9    "size",
     10    "PageSize",
     11    "computed::PageSize::auto()",
     12    engines="gecko",
     13    initial_specified_value="specified::PageSize::auto()",
     14    spec="https://drafts.csswg.org/css-page-3/#page-size-prop",
     15    boxed=True,
     16    animation_type="none",
     17    rule_types_allowed=PAGE_RULE,
     18    affects="layout",
     19 )}
     20 
     21 ${helpers.predefined_type(
     22    "page",
     23    "PageName",
     24    "computed::PageName::auto()",
     25    engines="gecko",
     26    spec="https://drafts.csswg.org/css-page-3/#using-named-pages",
     27    animation_type="discrete",
     28    affects="layout",
     29 )}
     30 
     31 ${helpers.predefined_type(
     32    "page-orientation",
     33    "PageOrientation",
     34    "computed::PageOrientation::Upright",
     35    engines="gecko",
     36    initial_specified_value="specified::PageOrientation::Upright",
     37    spec="https://drafts.csswg.org/css-page-3/#page-orientation-prop",
     38    animation_type="none",
     39    rule_types_allowed=PAGE_RULE,
     40    affects="layout",
     41 )}