gecko/dom/smil/test/db_smilCSSPropertyList.js
Jim Blandy b6b202b6bb Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00

94 lines
5.7 KiB
JavaScript

/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set ts=2 sw=2 sts=2 et: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* 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"),
vector_effect: new NonAdditiveAttribute("vector-effect", "CSS", "rect"),
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"),
};