dom/smil/test/db_smilCSSPropertyList.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/smil/test/db_smilCSSPropertyList.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,93 @@
     1.4 +/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set ts=2 sw=2 sts=2 et: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +/* list of CSS properties recognized by SVG 1.1 spec, for use in mochitests */
    1.11 +
    1.12 +// List of CSS Properties from SVG 1.1 Specification, Appendix N
    1.13 +var gPropList =
    1.14 +{
    1.15 +  // NOTE: AnimatedAttribute signature is:
    1.16 +  //  (attrName, attrType, sampleTarget, isAnimatable, isAdditive)
    1.17 +
    1.18 +  // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla
    1.19 +  // SKIP 'baseline-shift' property: animatable but not supported by Mozilla
    1.20 +  clip:              new AdditiveAttribute("clip", "CSS", "marker"),
    1.21 +  clip_path:         new NonAdditiveAttribute("clip-path", "CSS", "rect"),
    1.22 +  clip_rule:         new NonAdditiveAttribute("clip-rule", "CSS", "circle"),
    1.23 +  color:             new AdditiveAttribute("color", "CSS", "rect"),
    1.24 +  color_interpolation:
    1.25 +    new NonAdditiveAttribute("color-interpolation", "CSS", "rect"),
    1.26 +  color_interpolation_filters:
    1.27 +    new NonAdditiveAttribute("color-interpolation-filters", "CSS",
    1.28 +                             "feFlood"),
    1.29 +  // SKIP 'color-profile' property: animatable but not supported by Mozilla
    1.30 +  // SKIP 'color-rendering' property: animatable but not supported by Mozilla
    1.31 +  cursor:            new NonAdditiveAttribute("cursor", "CSS", "rect"),
    1.32 +  direction:         new NonAnimatableAttribute("direction", "CSS", "text"),
    1.33 +  display:           new NonAdditiveAttribute("display", "CSS", "rect"),
    1.34 +  dominant_baseline:
    1.35 +    new NonAdditiveAttribute("dominant-baseline", "CSS", "text"),
    1.36 +  enable_background:
    1.37 +    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    1.38 +    new NonAnimatableAttribute("enable-background", "CSS", "marker"),
    1.39 +  fill:              new AdditiveAttribute("fill", "CSS", "rect"),
    1.40 +  fill_opacity:      new AdditiveAttribute("fill-opacity", "CSS", "rect"),
    1.41 +  fill_rule:         new NonAdditiveAttribute("fill-rule", "CSS", "rect"),
    1.42 +  filter:            new NonAdditiveAttribute("filter", "CSS", "rect"),
    1.43 +  flood_color:       new AdditiveAttribute("flood-color", "CSS", "feFlood"),
    1.44 +  flood_opacity:     new AdditiveAttribute("flood-opacity", "CSS", "feFlood"),
    1.45 +  font:              new NonAdditiveAttribute("font", "CSS", "text"),
    1.46 +  font_family:       new NonAdditiveAttribute("font-family", "CSS", "text"),
    1.47 +  font_size:         new AdditiveAttribute("font-size", "CSS", "text"),
    1.48 +  font_size_adjust:
    1.49 +    new NonAdditiveAttribute("font-size-adjust", "CSS", "text"),
    1.50 +  font_stretch:      new NonAdditiveAttribute("font-stretch", "CSS", "text"),
    1.51 +  font_style:        new NonAdditiveAttribute("font-style", "CSS", "text"),
    1.52 +  font_variant:      new NonAdditiveAttribute("font-variant", "CSS", "text"),
    1.53 +  // XXXdholbert should 'font-weight' be additive?
    1.54 +  font_weight:       new NonAdditiveAttribute("font-weight", "CSS", "text"),
    1.55 +  glyph_orientation_horizontal:
    1.56 +    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    1.57 +    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
    1.58 +  glyph_orientation_vertical:
    1.59 +    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    1.60 +    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
    1.61 +  image_rendering:
    1.62 +    NonAdditiveAttribute("image-rendering", "CSS", "image"),
    1.63 +  // SKIP 'kerning' property: animatable but not supported by Mozilla
    1.64 +  letter_spacing:    new AdditiveAttribute("letter-spacing", "CSS", "text"),
    1.65 +  lighting_color:
    1.66 +    new AdditiveAttribute("lighting-color", "CSS", "feDiffuseLighting"),
    1.67 +  marker:            new NonAdditiveAttribute("marker", "CSS", "line"),
    1.68 +  marker_end:        new NonAdditiveAttribute("marker-end", "CSS", "line"),
    1.69 +  marker_mid:        new NonAdditiveAttribute("marker-mid", "CSS", "line"),
    1.70 +  marker_start:      new NonAdditiveAttribute("marker-start", "CSS", "line"),
    1.71 +  mask:              new NonAdditiveAttribute("mask", "CSS", "line"),
    1.72 +  opacity:           new AdditiveAttribute("opacity", "CSS", "rect"),
    1.73 +  overflow:          new NonAdditiveAttribute("overflow", "CSS", "marker"),
    1.74 +  pointer_events:    new NonAdditiveAttribute("pointer-events", "CSS", "rect"),
    1.75 +  shape_rendering:   new NonAdditiveAttribute("shape-rendering", "CSS", "rect"),
    1.76 +  stop_color:        new AdditiveAttribute("stop-color", "CSS", "stop"),
    1.77 +  stop_opacity:      new AdditiveAttribute("stop-opacity", "CSS", "stop"),
    1.78 +  stroke:            new AdditiveAttribute("stroke", "CSS", "rect"),
    1.79 +  stroke_dasharray:  new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"),
    1.80 +  stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"),
    1.81 +  stroke_linecap:    new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"),
    1.82 +  stroke_linejoin:   new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"),
    1.83 +  stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"),
    1.84 +  stroke_opacity:    new AdditiveAttribute("stroke-opacity", "CSS", "rect"),
    1.85 +  stroke_width:      new AdditiveAttribute("stroke-width", "CSS", "rect"),
    1.86 +  text_anchor:       new NonAdditiveAttribute("text-anchor", "CSS", "text"),
    1.87 +  text_decoration:   new NonAdditiveAttribute("text-decoration", "CSS", "text"),
    1.88 +  text_rendering:    new NonAdditiveAttribute("text-rendering", "CSS", "text"),
    1.89 +  unicode_bidi:      new NonAnimatableAttribute("unicode-bidi", "CSS", "text"),
    1.90 +  vector_effect:     new NonAdditiveAttribute("vector-effect", "CSS", "rect"),
    1.91 +  visibility:        new NonAdditiveAttribute("visibility", "CSS", "rect"),
    1.92 +  word_spacing:      new AdditiveAttribute("word-spacing", "CSS", "text"),
    1.93 +  writing_mode:
    1.94 +    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    1.95 +    new NonAnimatableAttribute("writing-mode", "CSS", "text"),
    1.96 +};

mercurial