|
1 /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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 { |
|
12 // NOTE: AnimatedAttribute signature is: |
|
13 // (attrName, attrType, sampleTarget, isAnimatable, isAdditive) |
|
14 |
|
15 // SKIP 'alignment-baseline' property: animatable but not supported by Mozilla |
|
16 // SKIP 'baseline-shift' property: animatable but not supported by Mozilla |
|
17 clip: new AdditiveAttribute("clip", "CSS", "marker"), |
|
18 clip_path: new NonAdditiveAttribute("clip-path", "CSS", "rect"), |
|
19 clip_rule: new NonAdditiveAttribute("clip-rule", "CSS", "circle"), |
|
20 color: new AdditiveAttribute("color", "CSS", "rect"), |
|
21 color_interpolation: |
|
22 new NonAdditiveAttribute("color-interpolation", "CSS", "rect"), |
|
23 color_interpolation_filters: |
|
24 new NonAdditiveAttribute("color-interpolation-filters", "CSS", |
|
25 "feFlood"), |
|
26 // SKIP 'color-profile' property: animatable but not supported by Mozilla |
|
27 // SKIP 'color-rendering' property: animatable but not supported by Mozilla |
|
28 cursor: new NonAdditiveAttribute("cursor", "CSS", "rect"), |
|
29 direction: new NonAnimatableAttribute("direction", "CSS", "text"), |
|
30 display: new NonAdditiveAttribute("display", "CSS", "rect"), |
|
31 dominant_baseline: |
|
32 new NonAdditiveAttribute("dominant-baseline", "CSS", "text"), |
|
33 enable_background: |
|
34 // NOTE: Not supported by Mozilla, but explicitly non-animatable |
|
35 new NonAnimatableAttribute("enable-background", "CSS", "marker"), |
|
36 fill: new AdditiveAttribute("fill", "CSS", "rect"), |
|
37 fill_opacity: new AdditiveAttribute("fill-opacity", "CSS", "rect"), |
|
38 fill_rule: new NonAdditiveAttribute("fill-rule", "CSS", "rect"), |
|
39 filter: new NonAdditiveAttribute("filter", "CSS", "rect"), |
|
40 flood_color: new AdditiveAttribute("flood-color", "CSS", "feFlood"), |
|
41 flood_opacity: new AdditiveAttribute("flood-opacity", "CSS", "feFlood"), |
|
42 font: new NonAdditiveAttribute("font", "CSS", "text"), |
|
43 font_family: new NonAdditiveAttribute("font-family", "CSS", "text"), |
|
44 font_size: new AdditiveAttribute("font-size", "CSS", "text"), |
|
45 font_size_adjust: |
|
46 new NonAdditiveAttribute("font-size-adjust", "CSS", "text"), |
|
47 font_stretch: new NonAdditiveAttribute("font-stretch", "CSS", "text"), |
|
48 font_style: new NonAdditiveAttribute("font-style", "CSS", "text"), |
|
49 font_variant: new NonAdditiveAttribute("font-variant", "CSS", "text"), |
|
50 // XXXdholbert should 'font-weight' be additive? |
|
51 font_weight: new NonAdditiveAttribute("font-weight", "CSS", "text"), |
|
52 glyph_orientation_horizontal: |
|
53 // NOTE: Not supported by Mozilla, but explicitly non-animatable |
|
54 NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"), |
|
55 glyph_orientation_vertical: |
|
56 // NOTE: Not supported by Mozilla, but explicitly non-animatable |
|
57 NonAnimatableAttribute("glyph-orientation-horizontal", "CSS", "text"), |
|
58 image_rendering: |
|
59 NonAdditiveAttribute("image-rendering", "CSS", "image"), |
|
60 // SKIP 'kerning' property: animatable but not supported by Mozilla |
|
61 letter_spacing: new AdditiveAttribute("letter-spacing", "CSS", "text"), |
|
62 lighting_color: |
|
63 new AdditiveAttribute("lighting-color", "CSS", "feDiffuseLighting"), |
|
64 marker: new NonAdditiveAttribute("marker", "CSS", "line"), |
|
65 marker_end: new NonAdditiveAttribute("marker-end", "CSS", "line"), |
|
66 marker_mid: new NonAdditiveAttribute("marker-mid", "CSS", "line"), |
|
67 marker_start: new NonAdditiveAttribute("marker-start", "CSS", "line"), |
|
68 mask: new NonAdditiveAttribute("mask", "CSS", "line"), |
|
69 opacity: new AdditiveAttribute("opacity", "CSS", "rect"), |
|
70 overflow: new NonAdditiveAttribute("overflow", "CSS", "marker"), |
|
71 pointer_events: new NonAdditiveAttribute("pointer-events", "CSS", "rect"), |
|
72 shape_rendering: new NonAdditiveAttribute("shape-rendering", "CSS", "rect"), |
|
73 stop_color: new AdditiveAttribute("stop-color", "CSS", "stop"), |
|
74 stop_opacity: new AdditiveAttribute("stop-opacity", "CSS", "stop"), |
|
75 stroke: new AdditiveAttribute("stroke", "CSS", "rect"), |
|
76 stroke_dasharray: new NonAdditiveAttribute("stroke-dasharray", "CSS", "rect"), |
|
77 stroke_dashoffset: new AdditiveAttribute("stroke-dashoffset", "CSS", "rect"), |
|
78 stroke_linecap: new NonAdditiveAttribute("stroke-linecap", "CSS", "rect"), |
|
79 stroke_linejoin: new NonAdditiveAttribute("stroke-linejoin", "CSS", "rect"), |
|
80 stroke_miterlimit: new AdditiveAttribute("stroke-miterlimit", "CSS", "rect"), |
|
81 stroke_opacity: new AdditiveAttribute("stroke-opacity", "CSS", "rect"), |
|
82 stroke_width: new AdditiveAttribute("stroke-width", "CSS", "rect"), |
|
83 text_anchor: new NonAdditiveAttribute("text-anchor", "CSS", "text"), |
|
84 text_decoration: new NonAdditiveAttribute("text-decoration", "CSS", "text"), |
|
85 text_rendering: new NonAdditiveAttribute("text-rendering", "CSS", "text"), |
|
86 unicode_bidi: new NonAnimatableAttribute("unicode-bidi", "CSS", "text"), |
|
87 vector_effect: new NonAdditiveAttribute("vector-effect", "CSS", "rect"), |
|
88 visibility: new NonAdditiveAttribute("visibility", "CSS", "rect"), |
|
89 word_spacing: new AdditiveAttribute("word-spacing", "CSS", "text"), |
|
90 writing_mode: |
|
91 // NOTE: Not supported by Mozilla, but explicitly non-animatable |
|
92 new NonAnimatableAttribute("writing-mode", "CSS", "text"), |
|
93 }; |