michael@0: /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set ts=2 sw=2 sts=2 et: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* list of CSS properties recognized by SVG 1.1 spec, for use in mochitests */ michael@0: michael@0: // List of CSS Properties from SVG 1.1 Specification, Appendix N michael@0: var gPropList = michael@0: { michael@0: // NOTE: AnimatedAttribute signature is: michael@0: // (attrName, attrType, sampleTarget, isAnimatable, isAdditive) michael@0: michael@0: // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla michael@0: // SKIP 'baseline-shift' property: animatable but not supported by Mozilla michael@0: clip: new AdditiveAttribute("clip", "CSS", "marker"), michael@0: clip_path: new NonAdditiveAttribute("clip-path", "CSS", "rect"), michael@0: clip_rule: new NonAdditiveAttribute("clip-rule", "CSS", "circle"), michael@0: color: new AdditiveAttribute("color", "CSS", "rect"), michael@0: color_interpolation: michael@0: new NonAdditiveAttribute("color-interpolation", "CSS", "rect"), michael@0: color_interpolation_filters: michael@0: new NonAdditiveAttribute("color-interpolation-filters", "CSS", michael@0: "feFlood"), michael@0: // SKIP 'color-profile' property: animatable but not supported by Mozilla michael@0: // SKIP 'color-rendering' property: animatable but not supported by Mozilla michael@0: cursor: new NonAdditiveAttribute("cursor", "CSS", "rect"), michael@0: direction: new NonAnimatableAttribute("direction", "CSS", "text"), michael@0: display: new NonAdditiveAttribute("display", "CSS", "rect"), michael@0: dominant_baseline: michael@0: new NonAdditiveAttribute("dominant-baseline", "CSS", "text"), michael@0: enable_background: michael@0: // NOTE: Not supported by Mozilla, but explicitly non-animatable michael@0: new NonAnimatableAttribute("enable-background", "CSS", "marker"), michael@0: fill: new AdditiveAttribute("fill", "CSS", "rect"), michael@0: fill_opacity: new AdditiveAttribute("fill-opacity", "CSS", "rect"), michael@0: fill_rule: new NonAdditiveAttribute("fill-rule", "CSS", "rect"), michael@0: filter: new NonAdditiveAttribute("filter", "CSS", "rect"), michael@0: flood_color: new AdditiveAttribute("flood-color", "CSS", "feFlood"), michael@0: flood_opacity: new AdditiveAttribute("flood-opacity", "CSS", "feFlood"), michael@0: font: new NonAdditiveAttribute("font", "CSS", "text"), michael@0: font_family: new NonAdditiveAttribute("font-family", "CSS", "text"), michael@0: font_size: new AdditiveAttribute("font-size", "CSS", "text"), michael@0: font_size_adjust: michael@0: new NonAdditiveAttribute("font-size-adjust", "CSS", "text"), michael@0: font_stretch: new NonAdditiveAttribute("font-stretch", "CSS", "text"), michael@0: font_style: new NonAdditiveAttribute("font-style", "CSS", "text"), michael@0: font_variant: new NonAdditiveAttribute("font-variant", "CSS", "text"), michael@0: // XXXdholbert should 'font-weight' be additive? michael@0: font_weight: new NonAdditiveAttribute("font-weight", "CSS", "text"), michael@0: glyph_orientation_horizontal: michael@0: // NOTE: Not supported by Mozilla, but explicitly non-animatable michael@0: NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"), michael@0: glyph_orientation_vertical: michael@0: // NOTE: Not supported by Mozilla, but explicitly non-animatable michael@0: NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"), michael@0: image_rendering: michael@0: NonAdditiveAttribute("image-rendering", "CSS", "image"), michael@0: // SKIP 'kerning' property: animatable but not supported by Mozilla michael@0: letter_spacing: new AdditiveAttribute("letter-spacing", "CSS", "text"), michael@0: lighting_color: michael@0: new AdditiveAttribute("lighting-color", "CSS", "feDiffuseLighting"), michael@0: marker: new NonAdditiveAttribute("marker", "CSS", "line"), michael@0: marker_end: new NonAdditiveAttribute("marker-end", "CSS", "line"), michael@0: marker_mid: new NonAdditiveAttribute("marker-mid", "CSS", "line"), michael@0: marker_start: new NonAdditiveAttribute("marker-start", "CSS", "line"), michael@0: mask: new NonAdditiveAttribute("mask", "CSS", "line"), michael@0: opacity: new AdditiveAttribute("opacity", "CSS", "rect"), michael@0: overflow: new NonAdditiveAttribute("overflow", "CSS", "marker"), michael@0: pointer_events: new NonAdditiveAttribute("pointer-events", "CSS", "rect"), michael@0: shape_rendering: new NonAdditiveAttribute("shape-rendering", "CSS", "rect"), michael@0: stop_color: new AdditiveAttribute("stop-color", "CSS", "stop"), michael@0: stop_opacity: new AdditiveAttribute("stop-opacity", "CSS", "stop"), michael@0: stroke: new AdditiveAttribute("stroke", "CSS", "rect"), michael@0: stroke_dasharray: new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"), michael@0: stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"), michael@0: stroke_linecap: new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"), michael@0: stroke_linejoin: new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"), michael@0: stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"), michael@0: stroke_opacity: new AdditiveAttribute("stroke-opacity", "CSS", "rect"), michael@0: stroke_width: new AdditiveAttribute("stroke-width", "CSS", "rect"), michael@0: text_anchor: new NonAdditiveAttribute("text-anchor", "CSS", "text"), michael@0: text_decoration: new NonAdditiveAttribute("text-decoration", "CSS", "text"), michael@0: text_rendering: new NonAdditiveAttribute("text-rendering", "CSS", "text"), michael@0: unicode_bidi: new NonAnimatableAttribute("unicode-bidi", "CSS", "text"), michael@0: vector_effect: new NonAdditiveAttribute("vector-effect", "CSS", "rect"), michael@0: visibility: new NonAdditiveAttribute("visibility", "CSS", "rect"), michael@0: word_spacing: new AdditiveAttribute("word-spacing", "CSS", "text"), michael@0: writing_mode: michael@0: // NOTE: Not supported by Mozilla, but explicitly non-animatable michael@0: new NonAnimatableAttribute("writing-mode", "CSS", "text"), michael@0: };