tor-browser

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

animation-type-longhand.js (10994B)


      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 http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 // Types of animation types of longhand properties.
      8 exports.ANIMATION_TYPE_FOR_LONGHANDS = [
      9  [
     10    "discrete",
     11    new Set([
     12      "anchor-name",
     13      "anchor-scope",
     14      "align-content",
     15      "align-items",
     16      "align-self",
     17      "aspect-ratio",
     18      "appearance",
     19      "backface-visibility",
     20      "background-attachment",
     21      "background-blend-mode",
     22      "background-clip",
     23      "background-image",
     24      "background-origin",
     25      "background-repeat",
     26      "baseline-source",
     27      "border-bottom-style",
     28      "border-collapse",
     29      "border-image-repeat",
     30      "border-image-source",
     31      "border-left-style",
     32      "border-right-style",
     33      "border-top-style",
     34      "-moz-box-align",
     35      "box-decoration-break",
     36      "-moz-box-direction",
     37      "-moz-box-ordinal-group",
     38      "-moz-box-orient",
     39      "-moz-box-pack",
     40      "box-sizing",
     41      "caption-side",
     42      "clear",
     43      "clip-rule",
     44      "color-interpolation",
     45      "color-interpolation-filters",
     46      "color-scheme",
     47      "column-fill",
     48      "column-rule-style",
     49      "column-span",
     50      "contain",
     51      "content",
     52      "counter-increment",
     53      "counter-reset",
     54      "counter-set",
     55      "cursor",
     56      "direction",
     57      "dominant-baseline",
     58      "empty-cells",
     59      "field-sizing",
     60      "fill-rule",
     61      "flex-direction",
     62      "flex-wrap",
     63      "float",
     64      "-moz-float-edge",
     65      "font-family",
     66      "font-feature-settings",
     67      "font-kerning",
     68      "font-language-override",
     69      "font-palette",
     70      "font-style",
     71      "font-synthesis-weight",
     72      "font-synthesis-style",
     73      "font-synthesis-small-caps",
     74      "font-synthesis-position",
     75      "font-variant-alternates",
     76      "font-variant-caps",
     77      "font-variant-east-asian",
     78      "font-variant-emoji",
     79      "font-variant-ligatures",
     80      "font-variant-numeric",
     81      "font-variant-position",
     82      "-moz-force-broken-image-icon",
     83      "forced-color-adjust",
     84      "grid-auto-columns",
     85      "grid-auto-flow",
     86      "grid-auto-rows",
     87      "grid-column-end",
     88      "grid-column-start",
     89      "grid-row-end",
     90      "grid-row-start",
     91      "grid-template-areas",
     92      "grid-template-columns",
     93      "grid-template-rows",
     94      "hyphenate-character",
     95      "hyphens",
     96      "image-orientation",
     97      "image-rendering",
     98      "ime-mode",
     99      "-moz-inert",
    100      "initial-letter",
    101      "isolation",
    102      "justify-content",
    103      "justify-items",
    104      "justify-self",
    105      "line-break",
    106      "list-style-image",
    107      "list-style-position",
    108      "list-style-type",
    109      "marker-end",
    110      "marker-mid",
    111      "marker-start",
    112      "mask-clip",
    113      "mask-composite",
    114      "mask-image",
    115      "mask-mode",
    116      "mask-origin",
    117      "mask-repeat",
    118      "mask-type",
    119      "masonry-auto-flow",
    120      "math-shift",
    121      "math-style",
    122      "mix-blend-mode",
    123      "object-fit",
    124      "-moz-orient",
    125      "-moz-osx-font-smoothing",
    126      "-moz-subtree-hidden-only-visually",
    127      "outline-style",
    128      "overflow-anchor",
    129      "overflow-block",
    130      "overflow-inline",
    131      "overflow-wrap",
    132      "overflow-x",
    133      "overflow-y",
    134      "overscroll-behavior-inline",
    135      "overscroll-behavior-block",
    136      "overscroll-behavior-x",
    137      "overscroll-behavior-y",
    138      "break-after",
    139      "break-before",
    140      "break-inside",
    141      "page",
    142      "paint-order",
    143      "pointer-events",
    144      "position",
    145      "position-anchor",
    146      "position-area",
    147      "position-try-fallbacks",
    148      "position-try-order",
    149      "position-visibility",
    150      "print-color-adjust",
    151      "quotes",
    152      "resize",
    153      "ruby-align",
    154      "ruby-position",
    155      "scroll-behavior",
    156      "scroll-snap-align",
    157      "scroll-snap-stop",
    158      "scroll-snap-type",
    159      "shape-rendering",
    160      "scrollbar-gutter",
    161      "scrollbar-width",
    162      "stroke-linecap",
    163      "stroke-linejoin",
    164      "table-layout",
    165      "text-align",
    166      "text-align-last",
    167      "text-anchor",
    168      "text-autospace",
    169      "text-combine-upright",
    170      "text-decoration-line",
    171      "text-decoration-skip-ink",
    172      "text-decoration-style",
    173      "text-emphasis-position",
    174      "text-emphasis-style",
    175      "text-justify",
    176      "text-orientation",
    177      "text-overflow",
    178      "text-rendering",
    179      "-moz-text-size-adjust",
    180      "-webkit-text-security",
    181      "-webkit-text-stroke-width",
    182      "text-transform",
    183      "text-underline-position",
    184      "text-wrap-mode",
    185      "text-wrap-style",
    186      "touch-action",
    187      "transform-box",
    188      "transform-style",
    189      "unicode-bidi",
    190      "-moz-user-focus",
    191      "user-select",
    192      "vector-effect",
    193      "view-transition-class",
    194      "view-transition-name",
    195      "visibility",
    196      "white-space-collapse",
    197      "will-change",
    198      "-moz-window-dragging",
    199      "word-break",
    200      "writing-mode",
    201    ]),
    202  ],
    203  [
    204    "none",
    205    new Set([
    206      "animation-composition",
    207      "animation-delay",
    208      "animation-direction",
    209      "animation-duration",
    210      "animation-fill-mode",
    211      "animation-iteration-count",
    212      "animation-name",
    213      "animation-play-state",
    214      "animation-timeline",
    215      "animation-timing-function",
    216      "block-size",
    217      "border-block-end-color",
    218      "border-block-end-style",
    219      "border-block-end-width",
    220      "border-block-start-color",
    221      "border-block-start-style",
    222      "border-block-start-width",
    223      "border-inline-end-color",
    224      "border-inline-end-style",
    225      "border-inline-end-width",
    226      "border-inline-start-color",
    227      "border-inline-start-style",
    228      "border-inline-start-width",
    229      "container-name",
    230      "container-type",
    231      "contain-intrinsic-block-size",
    232      "contain-intrinsic-inline-size",
    233      "contain-intrinsic-height",
    234      "contain-intrinsic-width",
    235      "content-visibility",
    236      "-moz-context-properties",
    237      "-moz-control-character-visibility",
    238      "-moz-default-appearance",
    239      "-moz-theme",
    240      "display",
    241      "font-optical-sizing",
    242      "inline-size",
    243      "inset-block-end",
    244      "inset-block-start",
    245      "inset-inline-end",
    246      "inset-inline-start",
    247      "margin-block-end",
    248      "margin-block-start",
    249      "margin-inline-end",
    250      "margin-inline-start",
    251      "max-block-size",
    252      "max-inline-size",
    253      "min-block-size",
    254      "-moz-min-font-size-ratio",
    255      "min-inline-size",
    256      "padding-block-end",
    257      "padding-block-start",
    258      "padding-inline-end",
    259      "padding-inline-start",
    260      "page-orientation",
    261      "-moz-box-collapse",
    262      "-moz-top-layer",
    263      "scroll-timeline-axis",
    264      "scroll-timeline-name",
    265      "size",
    266      "transition-behavior",
    267      "transition-delay",
    268      "transition-duration",
    269      "transition-property",
    270      "transition-timing-function",
    271      "view-timeline-axis",
    272      "view-timeline-inset",
    273      "view-timeline-name",
    274      "-moz-window-shadow",
    275    ]),
    276  ],
    277  [
    278    "color",
    279    new Set([
    280      "background-color",
    281      "border-bottom-color",
    282      "border-left-color",
    283      "border-right-color",
    284      "border-top-color",
    285      "accent-color",
    286      "caret-color",
    287      "color",
    288      "column-rule-color",
    289      "flood-color",
    290      "lighting-color",
    291      "outline-color",
    292      "scrollbar-color",
    293      "stop-color",
    294      "text-decoration-color",
    295      "text-emphasis-color",
    296      "-webkit-text-fill-color",
    297      "-webkit-text-stroke-color",
    298    ]),
    299  ],
    300  [
    301    "custom",
    302    new Set([
    303      "backdrop-filter",
    304      "background-position-x",
    305      "background-position-y",
    306      "background-size",
    307      "border-bottom-width",
    308      "border-image-slice",
    309      "border-image-outset",
    310      "border-image-width",
    311      "border-left-width",
    312      "border-right-width",
    313      "border-spacing",
    314      "border-top-width",
    315      "clip",
    316      "clip-path",
    317      "column-count",
    318      "column-rule-width",
    319      "d",
    320      "filter",
    321      "font-stretch",
    322      "font-variation-settings",
    323      "font-weight",
    324      "hyphenate-limit-chars",
    325      "mask-position-x",
    326      "mask-position-y",
    327      "mask-size",
    328      "math-depth",
    329      "object-position",
    330      "offset-anchor",
    331      "offset-path",
    332      "offset-position",
    333      "offset-rotate",
    334      "order",
    335      "perspective-origin",
    336      "rotate",
    337      "scale",
    338      "shape-outside",
    339      "stroke-dasharray",
    340      "text-decoration-inset",
    341      "transform",
    342      "transform-origin",
    343      "translate",
    344      "-moz-window-transform",
    345      "-webkit-line-clamp",
    346    ]),
    347  ],
    348  [
    349    "coord",
    350    new Set([
    351      "border-bottom-left-radius",
    352      "border-bottom-right-radius",
    353      "border-top-left-radius",
    354      "border-top-right-radius",
    355      "border-start-start-radius",
    356      "border-start-end-radius",
    357      "border-end-start-radius",
    358      "border-end-end-radius",
    359      "bottom",
    360      "column-gap",
    361      "column-width",
    362      "cx",
    363      "cy",
    364      "flex-basis",
    365      "height",
    366      "left",
    367      "letter-spacing",
    368      "line-height",
    369      "margin-bottom",
    370      "margin-left",
    371      "margin-right",
    372      "margin-top",
    373      "max-height",
    374      "max-width",
    375      "min-height",
    376      "min-width",
    377      "offset-distance",
    378      "padding-bottom",
    379      "padding-left",
    380      "padding-right",
    381      "padding-top",
    382      "perspective",
    383      "r",
    384      "rx",
    385      "ry",
    386      "right",
    387      "row-gap",
    388      "scroll-padding-block-start",
    389      "scroll-padding-block-end",
    390      "scroll-padding-inline-start",
    391      "scroll-padding-inline-end",
    392      "scroll-padding-top",
    393      "scroll-padding-right",
    394      "scroll-padding-bottom",
    395      "scroll-padding-left",
    396      "scroll-margin-block-start",
    397      "scroll-margin-block-end",
    398      "scroll-margin-inline-start",
    399      "scroll-margin-inline-end",
    400      "scroll-margin-top",
    401      "scroll-margin-right",
    402      "scroll-margin-bottom",
    403      "scroll-margin-left",
    404      "shape-margin",
    405      "stroke-dashoffset",
    406      "stroke-width",
    407      "tab-size",
    408      "text-indent",
    409      "text-decoration-thickness",
    410      "text-underline-offset",
    411      "top",
    412      "vertical-align",
    413      "width",
    414      "word-spacing",
    415      "x",
    416      "y",
    417      "z-index",
    418    ]),
    419  ],
    420  [
    421    "float",
    422    new Set([
    423      "-moz-box-flex",
    424      "fill-opacity",
    425      "flex-grow",
    426      "flex-shrink",
    427      "flood-opacity",
    428      "font-size-adjust",
    429      "opacity",
    430      "shape-image-threshold",
    431      "stop-opacity",
    432      "stroke-miterlimit",
    433      "stroke-opacity",
    434      "zoom",
    435      "-moz-window-opacity",
    436    ]),
    437  ],
    438  ["shadow", new Set(["box-shadow", "text-shadow"])],
    439  ["paintServer", new Set(["fill", "stroke"])],
    440  [
    441    "length",
    442    new Set([
    443      "font-size",
    444      "outline-offset",
    445      "outline-width",
    446      "overflow-clip-margin",
    447      "-moz-window-input-region-margin",
    448    ]),
    449  ],
    450 ];