/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 sw=2 sts=2 et: */
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla SMIL Test Code.
 *
 * The Initial Developer of the Original Code is the Mozilla Corporation.
 * Portions created by the Initial Developer are Copyright (C) 2009
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Daniel Holbert <dholbert@mozilla.com> (original author)
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* list of CSS properties recognized by SVG 1.1 spec, for use in mochitests */

// List of CSS Properties from SVG 1.1 Specification, Appendix N
var gPropList =
{
  // NOTE: AnimatedAttribute signature is:
  //  (attrName, attrType, sampleTarget, isAnimatable, isAdditive)

  // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla
  // SKIP 'baseline-shift' property: animatable but not supported by Mozilla
  clip:              new AdditiveAttribute("clip", "CSS", "marker"),
  clip_path:         new NonAdditiveAttribute("clip-path", "CSS", "rect"),
  clip_rule:         new NonAdditiveAttribute("clip-rule", "CSS", "circle"),
  color:             new AdditiveAttribute("color", "CSS", "rect"),
  color_interpolation:
    new NonAdditiveAttribute("color-interpolation", "CSS", "rect"),
  color_interpolation_filters:
    new NonAdditiveAttribute("color-interpolation-filters", "CSS",
                             "feFlood"),
  // SKIP 'color-profile' property: animatable but not supported by Mozilla
  // SKIP 'color-rendering' property: animatable but not supported by Mozilla
  cursor:            new NonAdditiveAttribute("cursor", "CSS", "rect"),
  direction:         new NonAnimatableAttribute("direction", "CSS", "text"),
  display:           new NonAdditiveAttribute("display", "CSS", "rect"),
  dominant_baseline:
    new NonAdditiveAttribute("dominant-baseline", "CSS", "text"),
  enable_background:
    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    new NonAnimatableAttribute("enable-background", "CSS", "marker"),
  fill:              new AdditiveAttribute("fill", "CSS", "rect"),
  fill_opacity:      new AdditiveAttribute("fill-opacity", "CSS", "rect"),
  fill_rule:         new NonAdditiveAttribute("fill-rule", "CSS", "rect"),
  filter:            new NonAdditiveAttribute("filter", "CSS", "rect"),
  flood_color:       new AdditiveAttribute("flood-color", "CSS", "feFlood"),
  flood_opacity:     new AdditiveAttribute("flood-opacity", "CSS", "feFlood"),
  font:              new NonAdditiveAttribute("font", "CSS", "text"),
  font_family:       new NonAdditiveAttribute("font-family", "CSS", "text"),
  font_size:         new AdditiveAttribute("font-size", "CSS", "text"),
  font_size_adjust:
    new NonAdditiveAttribute("font-size-adjust", "CSS", "text"),
  font_stretch:      new NonAdditiveAttribute("font-stretch", "CSS", "text"),
  font_style:        new NonAdditiveAttribute("font-style", "CSS", "text"),
  font_variant:      new NonAdditiveAttribute("font-variant", "CSS", "text"),
  // XXXdholbert should 'font-weight' be additive?
  font_weight:       new NonAdditiveAttribute("font-weight", "CSS", "text"),
  glyph_orientation_horizontal:
    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
  glyph_orientation_vertical:
    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"),
  image_rendering:
    NonAdditiveAttribute("image-rendering", "CSS", "image"),
  // SKIP 'kerning' property: animatable but not supported by Mozilla
  letter_spacing:    new AdditiveAttribute("letter-spacing", "CSS", "text"),
  lighting_color:
    new AdditiveAttribute("lighting-color", "CSS", "feDiffuseLighting"),
  marker:            new NonAdditiveAttribute("marker", "CSS", "line"),
  marker_end:        new NonAdditiveAttribute("marker-end", "CSS", "line"),
  marker_mid:        new NonAdditiveAttribute("marker-mid", "CSS", "line"),
  marker_start:      new NonAdditiveAttribute("marker-start", "CSS", "line"),
  mask:              new NonAdditiveAttribute("mask", "CSS", "line"),
  opacity:           new AdditiveAttribute("opacity", "CSS", "rect"),
  overflow:          new NonAdditiveAttribute("overflow", "CSS", "marker"),
  pointer_events:    new NonAdditiveAttribute("pointer-events", "CSS", "rect"),
  shape_rendering:   new NonAdditiveAttribute("shape-rendering", "CSS", "rect"),
  stop_color:        new AdditiveAttribute("stop-color", "CSS", "stop"),
  stop_opacity:      new AdditiveAttribute("stop-opacity", "CSS", "stop"),
  stroke:            new AdditiveAttribute("stroke", "CSS", "rect"),
  stroke_dasharray:  new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"),
  stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"),
  stroke_linecap:    new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"),
  stroke_linejoin:   new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"),
  stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"),
  stroke_opacity:    new AdditiveAttribute("stroke-opacity", "CSS", "rect"),
  stroke_width:      new AdditiveAttribute("stroke-width", "CSS", "rect"),
  text_anchor:       new NonAdditiveAttribute("text-anchor", "CSS", "text"),
  text_decoration:   new NonAdditiveAttribute("text-decoration", "CSS", "text"),
  text_rendering:    new NonAdditiveAttribute("text-rendering", "CSS", "text"),
  unicode_bidi:      new NonAnimatableAttribute("unicode-bidi", "CSS", "text"),
  visibility:        new NonAdditiveAttribute("visibility", "CSS", "rect"),
  word_spacing:      new AdditiveAttribute("word-spacing", "CSS", "text"),
  writing_mode:
    // NOTE: Not supported by Mozilla, but explicitly non-animatable
    new NonAnimatableAttribute("writing-mode", "CSS", "text"),
};
