tor-browser

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

db_smilCSSPropertyList.js (5451B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      2 /* vim: set ts=2 sw=2 sts=2 et: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 /* list of CSS properties recognized by SVG 1.1 spec, for use in mochitests */
      8 
      9 // List of CSS Properties from SVG 1.1 Specification, Appendix N
     10 var gPropList = {
     11  // NOTE: AnimatedAttribute signature is:
     12  //  (attrName, attrType, sampleTarget, isAnimatable, isAdditive)
     13 
     14  // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla
     15  // SKIP 'baseline-shift' property: animatable but not supported by Mozilla
     16  clip: new AdditiveAttribute("clip", "CSS", "marker"),
     17  clip_path: new NonAdditiveAttribute("clip-path", "CSS", "rect"),
     18  clip_rule: new NonAdditiveAttribute("clip-rule", "CSS", "circle"),
     19  color: new AdditiveAttribute("color", "CSS", "rect"),
     20  color_interpolation: new NonAdditiveAttribute(
     21    "color-interpolation",
     22    "CSS",
     23    "rect"
     24  ),
     25  color_interpolation_filters: new NonAdditiveAttribute(
     26    "color-interpolation-filters",
     27    "CSS",
     28    "feFlood"
     29  ),
     30  // SKIP 'color-profile' property: animatable but not supported by Mozilla
     31  cursor: new NonAdditiveAttribute("cursor", "CSS", "rect"),
     32  direction: new NonAnimatableAttribute("direction", "CSS", "text"),
     33  display: new NonAdditiveAttribute("display", "CSS", "rect"),
     34  dominant_baseline: new NonAdditiveAttribute(
     35    "dominant-baseline",
     36    "CSS",
     37    "text"
     38  ),
     39  enable_background:
     40    // NOTE: Not supported by Mozilla, but explicitly non-animatable
     41    new NonAnimatableAttribute("enable-background", "CSS", "marker"),
     42  fill: new AdditiveAttribute("fill", "CSS", "rect"),
     43  fill_opacity: new AdditiveAttribute("fill-opacity", "CSS", "rect"),
     44  fill_rule: new NonAdditiveAttribute("fill-rule", "CSS", "rect"),
     45  filter: new NonAdditiveAttribute("filter", "CSS", "rect"),
     46  flood_color: new AdditiveAttribute("flood-color", "CSS", "feFlood"),
     47  flood_opacity: new AdditiveAttribute("flood-opacity", "CSS", "feFlood"),
     48  font: new NonAdditiveAttribute("font", "CSS", "text"),
     49  font_family: new NonAdditiveAttribute("font-family", "CSS", "text"),
     50  font_size: new AdditiveAttribute("font-size", "CSS", "text"),
     51  font_size_adjust: new NonAdditiveAttribute("font-size-adjust", "CSS", "text"),
     52  font_stretch: new NonAdditiveAttribute("font-stretch", "CSS", "text"),
     53  font_style: new NonAdditiveAttribute("font-style", "CSS", "text"),
     54  font_variant: new NonAdditiveAttribute("font-variant", "CSS", "text"),
     55  // XXXdholbert should 'font-weight' be additive?
     56  font_weight: new NonAdditiveAttribute("font-weight", "CSS", "text"),
     57  glyph_orientation_horizontal:
     58    // NOTE: Not supported by Mozilla, but explicitly non-animatable
     59    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
     60  glyph_orientation_vertical:
     61    // NOTE: Not supported by Mozilla, but explicitly non-animatable
     62    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
     63  image_rendering: NonAdditiveAttribute("image-rendering", "CSS", "image"),
     64  // SKIP 'kerning' property: animatable but not supported by Mozilla
     65  letter_spacing: new AdditiveAttribute("letter-spacing", "CSS", "text"),
     66  lighting_color: new AdditiveAttribute(
     67    "lighting-color",
     68    "CSS",
     69    "feDiffuseLighting"
     70  ),
     71  marker: new NonAdditiveAttribute("marker", "CSS", "line"),
     72  marker_end: new NonAdditiveAttribute("marker-end", "CSS", "line"),
     73  marker_mid: new NonAdditiveAttribute("marker-mid", "CSS", "line"),
     74  marker_start: new NonAdditiveAttribute("marker-start", "CSS", "line"),
     75  mask: new NonAdditiveAttribute("mask", "CSS", "line"),
     76  opacity: new AdditiveAttribute("opacity", "CSS", "rect"),
     77  overflow: new NonAdditiveAttribute("overflow", "CSS", "marker"),
     78  pointer_events: new NonAdditiveAttribute("pointer-events", "CSS", "rect"),
     79  shape_rendering: new NonAdditiveAttribute("shape-rendering", "CSS", "rect"),
     80  stop_color: new AdditiveAttribute("stop-color", "CSS", "stop"),
     81  stop_opacity: new AdditiveAttribute("stop-opacity", "CSS", "stop"),
     82  stroke: new AdditiveAttribute("stroke", "CSS", "rect"),
     83  stroke_dasharray: new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"),
     84  stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"),
     85  stroke_linecap: new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"),
     86  stroke_linejoin: new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"),
     87  stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"),
     88  stroke_opacity: new AdditiveAttribute("stroke-opacity", "CSS", "rect"),
     89  stroke_width: new AdditiveAttribute("stroke-width", "CSS", "rect"),
     90  text_anchor: new NonAdditiveAttribute("text-anchor", "CSS", "text"),
     91  text_decoration_line: new NonAdditiveAttribute(
     92    "text-decoration-line",
     93    "CSS",
     94    "text"
     95  ),
     96  text_rendering: new NonAdditiveAttribute("text-rendering", "CSS", "text"),
     97  unicode_bidi: new NonAnimatableAttribute("unicode-bidi", "CSS", "text"),
     98  vector_effect: new NonAdditiveAttribute("vector-effect", "CSS", "rect"),
     99  visibility: new NonAdditiveAttribute("visibility", "CSS", "rect"),
    100  word_spacing: new AdditiveAttribute("word-spacing", "CSS", "text"),
    101  writing_mode:
    102    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    103    new NonAnimatableAttribute("writing-mode", "CSS", "text"),
    104 };