tor-browser

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

inherited_box.mako.rs (2908B)


      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 // TODO: collapse. Well, do tables first.
      8 ${helpers.single_keyword(
      9    "visibility",
     10    "visible hidden collapse",
     11    engines="gecko servo",
     12    gecko_ffi_name="mVisible",
     13    spec="https://drafts.csswg.org/css-box/#propdef-visibility",
     14    gecko_enum_prefix="StyleVisibility",
     15    affects="paint",
     16 )}
     17 
     18 // CSS Writing Modes Level 3
     19 // https://drafts.csswg.org/css-writing-modes-3
     20 ${helpers.predefined_type(
     21    "writing-mode",
     22    "WritingModeProperty",
     23    "computed::WritingModeProperty::HorizontalTb",
     24    engines="gecko servo",
     25    spec="https://drafts.csswg.org/css-writing-modes/#propdef-writing-mode",
     26    servo_pref="layout.writing-mode.enabled",
     27    animation_type="none",
     28    servo_restyle_damage="rebuild_box",
     29    affects="layout",
     30 )}
     31 
     32 ${helpers.single_keyword(
     33    "direction",
     34    "ltr rtl",
     35    engines="gecko servo",
     36    animation_type="none",
     37    spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
     38    gecko_enum_prefix="StyleDirection",
     39    servo_restyle_damage="rebuild_box",
     40    affects="layout",
     41 )}
     42 
     43 ${helpers.single_keyword(
     44    "-moz-box-collapse",
     45    "flex legacy",
     46    engines="gecko",
     47    gecko_enum_prefix="StyleMozBoxCollapse",
     48    animation_type="none",
     49    enabled_in="chrome",
     50    spec="None (internal)",
     51    affects="layout",
     52 )}
     53 
     54 ${helpers.single_keyword(
     55    "text-orientation",
     56    "mixed upright sideways",
     57    engines="gecko",
     58    gecko_aliases="sideways-right=sideways",
     59    gecko_enum_prefix="StyleTextOrientation",
     60    animation_type="none",
     61    spec="https://drafts.csswg.org/css-writing-modes/#propdef-text-orientation",
     62    affects="layout",
     63 )}
     64 
     65 ${helpers.predefined_type(
     66    "print-color-adjust",
     67    "PrintColorAdjust",
     68    "computed::PrintColorAdjust::Economy",
     69    engines="gecko",
     70    aliases="color-adjust",
     71    spec="https://drafts.csswg.org/css-color-adjust/#print-color-adjust",
     72    animation_type="discrete",
     73    affects="paint",
     74 )}
     75 
     76 // According to to CSS-IMAGES-3, `optimizespeed` and `optimizequality` are synonyms for `auto`
     77 // And, firefox doesn't support `pixelated` yet (https://bugzilla.mozilla.org/show_bug.cgi?id=856337)
     78 ${helpers.predefined_type(
     79    "image-rendering",
     80    "ImageRendering",
     81    "computed::ImageRendering::Auto",
     82    engines="gecko servo",
     83    spec="https://drafts.csswg.org/css-images/#propdef-image-rendering",
     84    animation_type="discrete",
     85    affects="paint",
     86 )}
     87 
     88 ${helpers.single_keyword(
     89    "image-orientation",
     90    "from-image none",
     91    engines="gecko",
     92    gecko_enum_prefix="StyleImageOrientation",
     93    animation_type="discrete",
     94    spec="https://drafts.csswg.org/css-images/#propdef-image-orientation",
     95    affects="layout",
     96 )}