layout/style/nsCSSPropList.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 /*
michael@0 7 * a list of all CSS properties with considerable data about them, for
michael@0 8 * preprocessing
michael@0 9 */
michael@0 10
michael@0 11 /******
michael@0 12
michael@0 13 This file contains the list of all parsed CSS properties. It is
michael@0 14 designed to be used as inline input through the magic of C
michael@0 15 preprocessing. All entries must be enclosed in the appropriate
michael@0 16 CSS_PROP_* macro which will have cruel and unusual things done to it.
michael@0 17 It is recommended (but not strictly necessary) to keep all entries in
michael@0 18 alphabetical order.
michael@0 19
michael@0 20 The arguments to CSS_PROP and CSS_PROP_* are:
michael@0 21
michael@0 22 -. 'name' entries represent a CSS property name and *must* use only
michael@0 23 lowercase characters.
michael@0 24
michael@0 25 -. 'id' should be the same as 'name' except that all hyphens ('-')
michael@0 26 in 'name' are converted to underscores ('_') in 'id'. For properties
michael@0 27 on a standards track, any '-moz-' prefix is removed in 'id'. This
michael@0 28 lets us do nice things with the macros without having to copy/convert
michael@0 29 strings at runtime. These are the names used for the enum values of
michael@0 30 the nsCSSProperty enumeration defined in nsCSSProps.h.
michael@0 31
michael@0 32 -. 'method' is designed to be as input for CSS2Properties and similar
michael@0 33 callers. It must always be the same as 'name' except it must use
michael@0 34 InterCaps and all hyphens ('-') must be removed. Callers using this
michael@0 35 parameter must also define the CSS_PROP_PUBLIC_OR_PRIVATE(publicname_,
michael@0 36 privatename_) macro to yield either publicname_ or privatename_.
michael@0 37 The names differ in that publicname_ has Moz prefixes where they are
michael@0 38 used, and also in CssFloat vs. Float. The caller's choice depends on
michael@0 39 whether the use is for internal use such as eCSSProperty_* or
michael@0 40 nsRuleData::ValueFor* or external use such as exposing DOM properties.
michael@0 41
michael@0 42 -. 'flags', a bitfield containing CSS_PROPERTY_* flags.
michael@0 43
michael@0 44 -. 'pref' is the name of a pref that controls whether the property
michael@0 45 is enabled. The property is enabled if 'pref' is an empty string,
michael@0 46 or if the boolean property whose name is 'pref' is set to true.
michael@0 47
michael@0 48 -. 'parsevariant', to be passed to ParseVariant in the parser.
michael@0 49
michael@0 50 -. 'kwtable', which is either nullptr or the name of the appropriate
michael@0 51 keyword table member of class nsCSSProps, for use in
michael@0 52 nsCSSProps::LookupPropertyValue.
michael@0 53
michael@0 54 -. 'stylestruct_' [used only for CSS_PROP, not CSS_PROP_*] gives the
michael@0 55 name of the style struct. Can be used to make nsStyle##stylestruct_
michael@0 56 and eStyleStruct_##stylestruct_
michael@0 57
michael@0 58 -. 'stylestructoffset_' [not used for CSS_PROP_BACKENDONLY] gives the
michael@0 59 result of offsetof(nsStyle*, member). Ignored (and generally
michael@0 60 CSS_PROP_NO_OFFSET, or -1) for properties whose animtype_ is
michael@0 61 eStyleAnimType_None.
michael@0 62
michael@0 63 -. 'animtype_' [not used for CSS_PROP_BACKENDONLY] gives the
michael@0 64 animation type (see nsStyleAnimType) of this property.
michael@0 65
michael@0 66 CSS_PROP_SHORTHAND only takes 1-5.
michael@0 67
michael@0 68 ******/
michael@0 69
michael@0 70
michael@0 71 /*************************************************************************/
michael@0 72
michael@0 73
michael@0 74 // All includers must explicitly define CSS_PROP_SHORTHAND if they
michael@0 75 // want it.
michael@0 76 #ifndef CSS_PROP_SHORTHAND
michael@0 77 #define CSS_PROP_SHORTHAND(name_, id_, method_, flags_, pref_) /* nothing */
michael@0 78 #define DEFINED_CSS_PROP_SHORTHAND
michael@0 79 #endif
michael@0 80
michael@0 81 #define CSS_PROP_DOMPROP_PREFIXED(name_) \
michael@0 82 CSS_PROP_PUBLIC_OR_PRIVATE(Moz ## name_, name_)
michael@0 83
michael@0 84 #define CSS_PROP_NO_OFFSET (-1)
michael@0 85
michael@0 86 // Callers may define CSS_PROP_LIST_EXCLUDE_INTERNAL if they want to
michael@0 87 // exclude internal properties that are not represented in the DOM (only
michael@0 88 // the DOM style code defines this).
michael@0 89
michael@0 90 // Callers may also define CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
michael@0 91 // to exclude properties that are not considered to be components of the 'all'
michael@0 92 // shorthand property. Currently this excludes 'direction' and 'unicode-bidi',
michael@0 93 // as required by the CSS Cascading and Inheritance specification, and any
michael@0 94 // internal properties that cannot be changed by using CSS syntax. For example,
michael@0 95 // the internal '-moz-system-font' property is not excluded, as it is set by the
michael@0 96 // 'font' shorthand, while '-x-lang' is excluded as there is no way to set this
michael@0 97 // internal property from a style sheet.
michael@0 98
michael@0 99 // A caller who wants all the properties can define the |CSS_PROP|
michael@0 100 // macro.
michael@0 101 #ifdef CSS_PROP
michael@0 102
michael@0 103 #define USED_CSS_PROP
michael@0 104 #define CSS_PROP_FONT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Font, stylestructoffset_, animtype_)
michael@0 105 #define CSS_PROP_COLOR(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Color, stylestructoffset_, animtype_)
michael@0 106 #define CSS_PROP_BACKGROUND(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Background, stylestructoffset_, animtype_)
michael@0 107 #define CSS_PROP_LIST(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, List, stylestructoffset_, animtype_)
michael@0 108 #define CSS_PROP_POSITION(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Position, stylestructoffset_, animtype_)
michael@0 109 #define CSS_PROP_TEXT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Text, stylestructoffset_, animtype_)
michael@0 110 #define CSS_PROP_TEXTRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, TextReset, stylestructoffset_, animtype_)
michael@0 111 #define CSS_PROP_DISPLAY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Display, stylestructoffset_, animtype_)
michael@0 112 #define CSS_PROP_VISIBILITY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Visibility, stylestructoffset_, animtype_)
michael@0 113 #define CSS_PROP_CONTENT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Content, stylestructoffset_, animtype_)
michael@0 114 #define CSS_PROP_QUOTES(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Quotes, stylestructoffset_, animtype_)
michael@0 115 #define CSS_PROP_USERINTERFACE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, UserInterface, stylestructoffset_, animtype_)
michael@0 116 #define CSS_PROP_UIRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, UIReset, stylestructoffset_, animtype_)
michael@0 117 #define CSS_PROP_TABLE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Table, stylestructoffset_, animtype_)
michael@0 118 #define CSS_PROP_TABLEBORDER(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, TableBorder, stylestructoffset_, animtype_)
michael@0 119 #define CSS_PROP_MARGIN(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Margin, stylestructoffset_, animtype_)
michael@0 120 #define CSS_PROP_PADDING(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Padding, stylestructoffset_, animtype_)
michael@0 121 #define CSS_PROP_BORDER(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Border, stylestructoffset_, animtype_)
michael@0 122 #define CSS_PROP_OUTLINE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Outline, stylestructoffset_, animtype_)
michael@0 123 #define CSS_PROP_XUL(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, XUL, stylestructoffset_, animtype_)
michael@0 124 #define CSS_PROP_COLUMN(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Column, stylestructoffset_, animtype_)
michael@0 125 #define CSS_PROP_SVG(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, SVG, stylestructoffset_, animtype_)
michael@0 126 #define CSS_PROP_SVGRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, SVGReset, stylestructoffset_, animtype_)
michael@0 127 #define CSS_PROP_VARIABLES(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, Variables, stylestructoffset_, animtype_)
michael@0 128
michael@0 129 // For properties that are stored in the CSS backend but are not
michael@0 130 // computed. An includer may define this in addition to CSS_PROP, but
michael@0 131 // otherwise we treat it as the same.
michael@0 132 #ifndef CSS_PROP_BACKENDONLY
michael@0 133 #define CSS_PROP_BACKENDONLY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_) CSS_PROP(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, BackendOnly, CSS_PROP_NO_OFFSET, eStyleAnimType_None)
michael@0 134 #define DEFINED_CSS_PROP_BACKENDONLY
michael@0 135 #endif
michael@0 136
michael@0 137 #else /* !defined(CSS_PROP) */
michael@0 138
michael@0 139 // An includer who does not define CSS_PROP can define any or all of the
michael@0 140 // per-struct macros that are equivalent to it, and the rest will be
michael@0 141 // ignored.
michael@0 142
michael@0 143 #ifndef CSS_PROP_FONT
michael@0 144 #define CSS_PROP_FONT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 145 #define DEFINED_CSS_PROP_FONT
michael@0 146 #endif
michael@0 147 #ifndef CSS_PROP_COLOR
michael@0 148 #define CSS_PROP_COLOR(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 149 #define DEFINED_CSS_PROP_COLOR
michael@0 150 #endif
michael@0 151 #ifndef CSS_PROP_BACKGROUND
michael@0 152 #define CSS_PROP_BACKGROUND(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 153 #define DEFINED_CSS_PROP_BACKGROUND
michael@0 154 #endif
michael@0 155 #ifndef CSS_PROP_LIST
michael@0 156 #define CSS_PROP_LIST(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 157 #define DEFINED_CSS_PROP_LIST
michael@0 158 #endif
michael@0 159 #ifndef CSS_PROP_POSITION
michael@0 160 #define CSS_PROP_POSITION(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 161 #define DEFINED_CSS_PROP_POSITION
michael@0 162 #endif
michael@0 163 #ifndef CSS_PROP_TEXT
michael@0 164 #define CSS_PROP_TEXT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 165 #define DEFINED_CSS_PROP_TEXT
michael@0 166 #endif
michael@0 167 #ifndef CSS_PROP_TEXTRESET
michael@0 168 #define CSS_PROP_TEXTRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 169 #define DEFINED_CSS_PROP_TEXTRESET
michael@0 170 #endif
michael@0 171 #ifndef CSS_PROP_DISPLAY
michael@0 172 #define CSS_PROP_DISPLAY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 173 #define DEFINED_CSS_PROP_DISPLAY
michael@0 174 #endif
michael@0 175 #ifndef CSS_PROP_VISIBILITY
michael@0 176 #define CSS_PROP_VISIBILITY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 177 #define DEFINED_CSS_PROP_VISIBILITY
michael@0 178 #endif
michael@0 179 #ifndef CSS_PROP_CONTENT
michael@0 180 #define CSS_PROP_CONTENT(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 181 #define DEFINED_CSS_PROP_CONTENT
michael@0 182 #endif
michael@0 183 #ifndef CSS_PROP_QUOTES
michael@0 184 #define CSS_PROP_QUOTES(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 185 #define DEFINED_CSS_PROP_QUOTES
michael@0 186 #endif
michael@0 187 #ifndef CSS_PROP_USERINTERFACE
michael@0 188 #define CSS_PROP_USERINTERFACE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 189 #define DEFINED_CSS_PROP_USERINTERFACE
michael@0 190 #endif
michael@0 191 #ifndef CSS_PROP_UIRESET
michael@0 192 #define CSS_PROP_UIRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 193 #define DEFINED_CSS_PROP_UIRESET
michael@0 194 #endif
michael@0 195 #ifndef CSS_PROP_TABLE
michael@0 196 #define CSS_PROP_TABLE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 197 #define DEFINED_CSS_PROP_TABLE
michael@0 198 #endif
michael@0 199 #ifndef CSS_PROP_TABLEBORDER
michael@0 200 #define CSS_PROP_TABLEBORDER(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 201 #define DEFINED_CSS_PROP_TABLEBORDER
michael@0 202 #endif
michael@0 203 #ifndef CSS_PROP_MARGIN
michael@0 204 #define CSS_PROP_MARGIN(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 205 #define DEFINED_CSS_PROP_MARGIN
michael@0 206 #endif
michael@0 207 #ifndef CSS_PROP_PADDING
michael@0 208 #define CSS_PROP_PADDING(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 209 #define DEFINED_CSS_PROP_PADDING
michael@0 210 #endif
michael@0 211 #ifndef CSS_PROP_BORDER
michael@0 212 #define CSS_PROP_BORDER(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 213 #define DEFINED_CSS_PROP_BORDER
michael@0 214 #endif
michael@0 215 #ifndef CSS_PROP_OUTLINE
michael@0 216 #define CSS_PROP_OUTLINE(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 217 #define DEFINED_CSS_PROP_OUTLINE
michael@0 218 #endif
michael@0 219 #ifndef CSS_PROP_XUL
michael@0 220 #define CSS_PROP_XUL(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 221 #define DEFINED_CSS_PROP_XUL
michael@0 222 #endif
michael@0 223 #ifndef CSS_PROP_COLUMN
michael@0 224 #define CSS_PROP_COLUMN(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 225 #define DEFINED_CSS_PROP_COLUMN
michael@0 226 #endif
michael@0 227 #ifndef CSS_PROP_SVG
michael@0 228 #define CSS_PROP_SVG(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 229 #define DEFINED_CSS_PROP_SVG
michael@0 230 #endif
michael@0 231 #ifndef CSS_PROP_SVGRESET
michael@0 232 #define CSS_PROP_SVGRESET(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 233 #define DEFINED_CSS_PROP_SVGRESET
michael@0 234 #endif
michael@0 235 #ifndef CSS_PROP_VARIABLES
michael@0 236 #define CSS_PROP_VARIABLES(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_, stylestructoffset_, animtype_) /* nothing */
michael@0 237 #define DEFINED_CSS_PROP_VARIABLES
michael@0 238 #endif
michael@0 239
michael@0 240 #ifndef CSS_PROP_BACKENDONLY
michael@0 241 #define CSS_PROP_BACKENDONLY(name_, id_, method_, flags_, pref_, parsevariant_, kwtable_) /* nothing */
michael@0 242 #define DEFINED_CSS_PROP_BACKENDONLY
michael@0 243 #endif
michael@0 244
michael@0 245 #endif /* !defined(CSS_PROP) */
michael@0 246
michael@0 247 /*************************************************************************/
michael@0 248
michael@0 249 // For notes XXX bug 3935 below, the names being parsed do not correspond
michael@0 250 // to the constants used internally. It would be nice to bring the
michael@0 251 // constants into line sometime.
michael@0 252
michael@0 253 // The parser will refuse to parse properties marked with -x-.
michael@0 254
michael@0 255 // Those marked XXX bug 48973 are CSS2 properties that we support
michael@0 256 // differently from the spec for UI requirements. If we ever
michael@0 257 // support them correctly the old constants need to be renamed and
michael@0 258 // new ones should be entered.
michael@0 259
michael@0 260 // CSS2.1 section 5.12.1 says that the properties that apply to
michael@0 261 // :first-line are: font properties, color properties, background
michael@0 262 // properties, 'word-spacing', 'letter-spacing', 'text-decoration',
michael@0 263 // 'vertical-align', 'text-transform', and 'line-height'.
michael@0 264 //
michael@0 265 // We also allow 'text-shadow', which was listed in CSS2 (where the
michael@0 266 // property existed).
michael@0 267
michael@0 268 // CSS2.1 section 5.12.2 says that the properties that apply to
michael@0 269 // :first-letter are: font properties, 'text-decoration',
michael@0 270 // 'text-transform', 'letter-spacing', 'word-spacing' (when
michael@0 271 // appropriate), 'line-height', 'float', 'vertical-align' (only if
michael@0 272 // 'float' is 'none'), margin properties, padding properties, border
michael@0 273 // properties, 'color', and background properties. We also allow
michael@0 274 // 'text-shadow' (see above) and 'box-shadow' (which is like the
michael@0 275 // border properties).
michael@0 276
michael@0 277 // We include '-moz-background-inline-policy' (css3-background's
michael@0 278 // 'background-break') in both as a background property, although this
michael@0 279 // is somewhat questionable.
michael@0 280
michael@0 281 CSS_PROP_DISPLAY(
michael@0 282 -moz-appearance,
michael@0 283 appearance,
michael@0 284 CSS_PROP_DOMPROP_PREFIXED(Appearance),
michael@0 285 CSS_PROPERTY_PARSE_VALUE,
michael@0 286 "",
michael@0 287 VARIANT_HK,
michael@0 288 kAppearanceKTable,
michael@0 289 CSS_PROP_NO_OFFSET,
michael@0 290 eStyleAnimType_None)
michael@0 291 CSS_PROP_SHORTHAND(
michael@0 292 -moz-outline-radius,
michael@0 293 _moz_outline_radius,
michael@0 294 CSS_PROP_DOMPROP_PREFIXED(OutlineRadius),
michael@0 295 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 296 "")
michael@0 297 CSS_PROP_OUTLINE(
michael@0 298 -moz-outline-radius-topleft,
michael@0 299 _moz_outline_radius_topLeft,
michael@0 300 CSS_PROP_DOMPROP_PREFIXED(OutlineRadiusTopleft),
michael@0 301 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 302 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 303 CSS_PROPERTY_STORES_CALC |
michael@0 304 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 305 "",
michael@0 306 0,
michael@0 307 nullptr,
michael@0 308 offsetof(nsStyleOutline, mOutlineRadius),
michael@0 309 eStyleAnimType_Corner_TopLeft)
michael@0 310 CSS_PROP_OUTLINE(
michael@0 311 -moz-outline-radius-topright,
michael@0 312 _moz_outline_radius_topRight,
michael@0 313 CSS_PROP_DOMPROP_PREFIXED(OutlineRadiusTopright),
michael@0 314 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 315 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 316 CSS_PROPERTY_STORES_CALC |
michael@0 317 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 318 "",
michael@0 319 0,
michael@0 320 nullptr,
michael@0 321 offsetof(nsStyleOutline, mOutlineRadius),
michael@0 322 eStyleAnimType_Corner_TopRight)
michael@0 323 CSS_PROP_OUTLINE(
michael@0 324 -moz-outline-radius-bottomright,
michael@0 325 _moz_outline_radius_bottomRight,
michael@0 326 CSS_PROP_DOMPROP_PREFIXED(OutlineRadiusBottomright),
michael@0 327 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 328 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 329 CSS_PROPERTY_STORES_CALC |
michael@0 330 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 331 "",
michael@0 332 0,
michael@0 333 nullptr,
michael@0 334 offsetof(nsStyleOutline, mOutlineRadius),
michael@0 335 eStyleAnimType_Corner_BottomRight)
michael@0 336 CSS_PROP_OUTLINE(
michael@0 337 -moz-outline-radius-bottomleft,
michael@0 338 _moz_outline_radius_bottomLeft,
michael@0 339 CSS_PROP_DOMPROP_PREFIXED(OutlineRadiusBottomleft),
michael@0 340 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 341 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 342 CSS_PROPERTY_STORES_CALC |
michael@0 343 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 344 "",
michael@0 345 0,
michael@0 346 nullptr,
michael@0 347 offsetof(nsStyleOutline, mOutlineRadius),
michael@0 348 eStyleAnimType_Corner_BottomLeft)
michael@0 349 CSS_PROP_TEXT(
michael@0 350 -moz-tab-size,
michael@0 351 _moz_tab_size,
michael@0 352 CSS_PROP_DOMPROP_PREFIXED(TabSize),
michael@0 353 CSS_PROPERTY_PARSE_VALUE |
michael@0 354 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 355 "",
michael@0 356 VARIANT_HI,
michael@0 357 nullptr,
michael@0 358 offsetof(nsStyleText, mTabSize),
michael@0 359 eStyleAnimType_None)
michael@0 360 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 361 CSS_PROP_FONT(
michael@0 362 -x-system-font,
michael@0 363 _x_system_font,
michael@0 364 CSS_PROP_DOMPROP_PREFIXED(SystemFont),
michael@0 365 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 366 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 367 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 368 "",
michael@0 369 0,
michael@0 370 kFontKTable,
michael@0 371 CSS_PROP_NO_OFFSET,
michael@0 372 eStyleAnimType_None)
michael@0 373 #endif // !defined(CSS_PROP_LIST_EXCLUDE_INTERNAL)
michael@0 374 CSS_PROP_SHORTHAND(
michael@0 375 all,
michael@0 376 all,
michael@0 377 All,
michael@0 378 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 379 "layout.css.all-shorthand.enabled")
michael@0 380 CSS_PROP_SHORTHAND(
michael@0 381 animation,
michael@0 382 animation,
michael@0 383 Animation,
michael@0 384 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 385 "")
michael@0 386 CSS_PROP_DISPLAY(
michael@0 387 animation-delay,
michael@0 388 animation_delay,
michael@0 389 AnimationDelay,
michael@0 390 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 391 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 392 "",
michael@0 393 VARIANT_TIME, // used by list parsing
michael@0 394 nullptr,
michael@0 395 CSS_PROP_NO_OFFSET,
michael@0 396 eStyleAnimType_None)
michael@0 397 CSS_PROP_DISPLAY(
michael@0 398 animation-direction,
michael@0 399 animation_direction,
michael@0 400 AnimationDirection,
michael@0 401 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 402 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 403 "",
michael@0 404 VARIANT_KEYWORD, // used by list parsing
michael@0 405 kAnimationDirectionKTable,
michael@0 406 CSS_PROP_NO_OFFSET,
michael@0 407 eStyleAnimType_None)
michael@0 408 CSS_PROP_DISPLAY(
michael@0 409 animation-duration,
michael@0 410 animation_duration,
michael@0 411 AnimationDuration,
michael@0 412 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 413 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 414 "",
michael@0 415 VARIANT_TIME | VARIANT_NONNEGATIVE_DIMENSION, // used by list parsing
michael@0 416 nullptr,
michael@0 417 CSS_PROP_NO_OFFSET,
michael@0 418 eStyleAnimType_None)
michael@0 419 CSS_PROP_DISPLAY(
michael@0 420 animation-fill-mode,
michael@0 421 animation_fill_mode,
michael@0 422 AnimationFillMode,
michael@0 423 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 424 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 425 "",
michael@0 426 VARIANT_KEYWORD, // used by list parsing
michael@0 427 kAnimationFillModeKTable,
michael@0 428 CSS_PROP_NO_OFFSET,
michael@0 429 eStyleAnimType_None)
michael@0 430 CSS_PROP_DISPLAY(
michael@0 431 animation-iteration-count,
michael@0 432 animation_iteration_count,
michael@0 433 AnimationIterationCount,
michael@0 434 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 435 // nonnegative per
michael@0 436 // http://lists.w3.org/Archives/Public/www-style/2011Mar/0355.html
michael@0 437 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 438 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 439 "",
michael@0 440 VARIANT_KEYWORD | VARIANT_NUMBER, // used by list parsing
michael@0 441 kAnimationIterationCountKTable,
michael@0 442 CSS_PROP_NO_OFFSET,
michael@0 443 eStyleAnimType_None)
michael@0 444 CSS_PROP_DISPLAY(
michael@0 445 animation-name,
michael@0 446 animation_name,
michael@0 447 AnimationName,
michael@0 448 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 449 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 450 "",
michael@0 451 // FIXME: The spec should say something about 'inherit' and 'initial'
michael@0 452 // not being allowed.
michael@0 453 VARIANT_NONE | VARIANT_IDENTIFIER_NO_INHERIT, // used by list parsing
michael@0 454 nullptr,
michael@0 455 CSS_PROP_NO_OFFSET,
michael@0 456 eStyleAnimType_None)
michael@0 457 CSS_PROP_DISPLAY(
michael@0 458 animation-play-state,
michael@0 459 animation_play_state,
michael@0 460 AnimationPlayState,
michael@0 461 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 462 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 463 "",
michael@0 464 VARIANT_KEYWORD, // used by list parsing
michael@0 465 kAnimationPlayStateKTable,
michael@0 466 CSS_PROP_NO_OFFSET,
michael@0 467 eStyleAnimType_None)
michael@0 468 CSS_PROP_DISPLAY(
michael@0 469 animation-timing-function,
michael@0 470 animation_timing_function,
michael@0 471 AnimationTimingFunction,
michael@0 472 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 473 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 474 "",
michael@0 475 VARIANT_KEYWORD | VARIANT_TIMING_FUNCTION, // used by list parsing
michael@0 476 kTransitionTimingFunctionKTable,
michael@0 477 CSS_PROP_NO_OFFSET,
michael@0 478 eStyleAnimType_None)
michael@0 479 CSS_PROP_SHORTHAND(
michael@0 480 background,
michael@0 481 background,
michael@0 482 Background,
michael@0 483 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 484 "")
michael@0 485 CSS_PROP_BACKGROUND(
michael@0 486 background-attachment,
michael@0 487 background_attachment,
michael@0 488 BackgroundAttachment,
michael@0 489 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 490 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 491 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 492 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 493 "",
michael@0 494 VARIANT_KEYWORD, // used by list parsing
michael@0 495 kBackgroundAttachmentKTable,
michael@0 496 CSS_PROP_NO_OFFSET,
michael@0 497 eStyleAnimType_None)
michael@0 498 CSS_PROP_BACKGROUND(
michael@0 499 background-clip,
michael@0 500 background_clip,
michael@0 501 BackgroundClip,
michael@0 502 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 503 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 504 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 505 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 506 "",
michael@0 507 VARIANT_KEYWORD, // used by list parsing
michael@0 508 kBackgroundOriginKTable,
michael@0 509 CSS_PROP_NO_OFFSET,
michael@0 510 eStyleAnimType_None)
michael@0 511 CSS_PROP_BACKGROUND(
michael@0 512 background-color,
michael@0 513 background_color,
michael@0 514 BackgroundColor,
michael@0 515 CSS_PROPERTY_PARSE_VALUE |
michael@0 516 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 517 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 518 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 519 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 520 "",
michael@0 521 VARIANT_HC,
michael@0 522 nullptr,
michael@0 523 offsetof(nsStyleBackground, mBackgroundColor),
michael@0 524 eStyleAnimType_Color)
michael@0 525 CSS_PROP_BACKGROUND(
michael@0 526 background-image,
michael@0 527 background_image,
michael@0 528 BackgroundImage,
michael@0 529 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 530 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 531 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 532 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 533 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 534 CSS_PROPERTY_START_IMAGE_LOADS,
michael@0 535 "",
michael@0 536 VARIANT_IMAGE, // used by list parsing
michael@0 537 nullptr,
michael@0 538 CSS_PROP_NO_OFFSET,
michael@0 539 eStyleAnimType_None)
michael@0 540 CSS_PROP_BACKGROUND(
michael@0 541 -moz-background-inline-policy,
michael@0 542 _moz_background_inline_policy,
michael@0 543 CSS_PROP_DOMPROP_PREFIXED(BackgroundInlinePolicy),
michael@0 544 CSS_PROPERTY_PARSE_VALUE |
michael@0 545 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 546 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 547 "",
michael@0 548 VARIANT_HK,
michael@0 549 kBackgroundInlinePolicyKTable,
michael@0 550 CSS_PROP_NO_OFFSET,
michael@0 551 eStyleAnimType_None)
michael@0 552 CSS_PROP_BACKGROUND(
michael@0 553 background-blend-mode,
michael@0 554 background_blend_mode,
michael@0 555 BackgroundBlendMode,
michael@0 556 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 557 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 558 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 559 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 560 "layout.css.background-blend-mode.enabled",
michael@0 561 VARIANT_KEYWORD, // used by list parsing
michael@0 562 kBlendModeKTable,
michael@0 563 CSS_PROP_NO_OFFSET,
michael@0 564 eStyleAnimType_None)
michael@0 565 CSS_PROP_BACKGROUND(
michael@0 566 background-origin,
michael@0 567 background_origin,
michael@0 568 BackgroundOrigin,
michael@0 569 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 570 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 571 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 572 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 573 "",
michael@0 574 VARIANT_KEYWORD, // used by list parsing
michael@0 575 kBackgroundOriginKTable,
michael@0 576 CSS_PROP_NO_OFFSET,
michael@0 577 eStyleAnimType_None)
michael@0 578 CSS_PROP_BACKGROUND(
michael@0 579 background-position,
michael@0 580 background_position,
michael@0 581 BackgroundPosition,
michael@0 582 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 583 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 584 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 585 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 586 CSS_PROPERTY_STORES_CALC,
michael@0 587 "",
michael@0 588 0,
michael@0 589 kBackgroundPositionKTable,
michael@0 590 CSS_PROP_NO_OFFSET,
michael@0 591 eStyleAnimType_Custom)
michael@0 592 CSS_PROP_BACKGROUND(
michael@0 593 background-repeat,
michael@0 594 background_repeat,
michael@0 595 BackgroundRepeat,
michael@0 596 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 597 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 598 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 599 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 600 "",
michael@0 601 VARIANT_KEYWORD, // used by list parsing
michael@0 602 kBackgroundRepeatKTable,
michael@0 603 CSS_PROP_NO_OFFSET,
michael@0 604 eStyleAnimType_None)
michael@0 605 CSS_PROP_BACKGROUND(
michael@0 606 background-size,
michael@0 607 background_size,
michael@0 608 BackgroundSize,
michael@0 609 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 610 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 611 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 612 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 613 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 614 CSS_PROPERTY_STORES_CALC,
michael@0 615 "",
michael@0 616 0,
michael@0 617 kBackgroundSizeKTable,
michael@0 618 CSS_PROP_NO_OFFSET,
michael@0 619 eStyleAnimType_Custom)
michael@0 620 CSS_PROP_DISPLAY(
michael@0 621 -moz-binding,
michael@0 622 binding,
michael@0 623 CSS_PROP_DOMPROP_PREFIXED(Binding),
michael@0 624 CSS_PROPERTY_PARSE_VALUE,
michael@0 625 "",
michael@0 626 VARIANT_HUO,
michael@0 627 nullptr,
michael@0 628 CSS_PROP_NO_OFFSET,
michael@0 629 eStyleAnimType_None) // XXX bug 3935
michael@0 630 CSS_PROP_SHORTHAND(
michael@0 631 border,
michael@0 632 border,
michael@0 633 Border,
michael@0 634 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 635 "")
michael@0 636 CSS_PROP_SHORTHAND(
michael@0 637 border-bottom,
michael@0 638 border_bottom,
michael@0 639 BorderBottom,
michael@0 640 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 641 "")
michael@0 642 CSS_PROP_BORDER(
michael@0 643 border-bottom-color,
michael@0 644 border_bottom_color,
michael@0 645 BorderBottomColor,
michael@0 646 CSS_PROPERTY_PARSE_VALUE |
michael@0 647 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 648 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 649 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 650 "",
michael@0 651 VARIANT_HCK,
michael@0 652 kBorderColorKTable,
michael@0 653 CSS_PROP_NO_OFFSET,
michael@0 654 eStyleAnimType_Custom)
michael@0 655 CSS_PROP_BORDER(
michael@0 656 -moz-border-bottom-colors,
michael@0 657 border_bottom_colors,
michael@0 658 CSS_PROP_DOMPROP_PREFIXED(BorderBottomColors),
michael@0 659 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 660 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 661 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 662 "",
michael@0 663 0,
michael@0 664 nullptr,
michael@0 665 CSS_PROP_NO_OFFSET,
michael@0 666 eStyleAnimType_None)
michael@0 667 CSS_PROP_BORDER(
michael@0 668 border-bottom-style,
michael@0 669 border_bottom_style,
michael@0 670 BorderBottomStyle,
michael@0 671 CSS_PROPERTY_PARSE_VALUE |
michael@0 672 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 673 "",
michael@0 674 VARIANT_HK,
michael@0 675 kBorderStyleKTable,
michael@0 676 CSS_PROP_NO_OFFSET,
michael@0 677 eStyleAnimType_None) // on/off will need reflow
michael@0 678 CSS_PROP_BORDER(
michael@0 679 border-bottom-width,
michael@0 680 border_bottom_width,
michael@0 681 BorderBottomWidth,
michael@0 682 CSS_PROPERTY_PARSE_VALUE |
michael@0 683 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 684 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 685 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 686 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 687 "",
michael@0 688 VARIANT_HKL | VARIANT_CALC,
michael@0 689 kBorderWidthKTable,
michael@0 690 CSS_PROP_NO_OFFSET,
michael@0 691 eStyleAnimType_Custom)
michael@0 692 CSS_PROP_TABLEBORDER(
michael@0 693 border-collapse,
michael@0 694 border_collapse,
michael@0 695 BorderCollapse,
michael@0 696 CSS_PROPERTY_PARSE_VALUE,
michael@0 697 "",
michael@0 698 VARIANT_HK,
michael@0 699 kBorderCollapseKTable,
michael@0 700 CSS_PROP_NO_OFFSET,
michael@0 701 eStyleAnimType_None)
michael@0 702 CSS_PROP_SHORTHAND(
michael@0 703 border-color,
michael@0 704 border_color,
michael@0 705 BorderColor,
michael@0 706 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 707 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 708 "")
michael@0 709 CSS_PROP_SHORTHAND(
michael@0 710 -moz-border-end,
michael@0 711 border_end,
michael@0 712 CSS_PROP_DOMPROP_PREFIXED(BorderEnd),
michael@0 713 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 714 "")
michael@0 715 CSS_PROP_SHORTHAND(
michael@0 716 -moz-border-end-color,
michael@0 717 border_end_color,
michael@0 718 CSS_PROP_DOMPROP_PREFIXED(BorderEndColor),
michael@0 719 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 720 "")
michael@0 721 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 722 CSS_PROP_BORDER(
michael@0 723 border-end-color-value,
michael@0 724 border_end_color_value,
michael@0 725 BorderEndColorValue,
michael@0 726 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 727 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 728 "",
michael@0 729 VARIANT_HCK, // used only internally
michael@0 730 kBorderColorKTable,
michael@0 731 CSS_PROP_NO_OFFSET,
michael@0 732 eStyleAnimType_None)
michael@0 733 #endif
michael@0 734 CSS_PROP_SHORTHAND(
michael@0 735 -moz-border-end-style,
michael@0 736 border_end_style,
michael@0 737 CSS_PROP_DOMPROP_PREFIXED(BorderEndStyle),
michael@0 738 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 739 "")
michael@0 740 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 741 CSS_PROP_BORDER(
michael@0 742 border-end-style-value,
michael@0 743 border_end_style_value,
michael@0 744 BorderEndStyleValue,
michael@0 745 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 746 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 747 "",
michael@0 748 VARIANT_HK, // used only internally
michael@0 749 kBorderStyleKTable,
michael@0 750 CSS_PROP_NO_OFFSET,
michael@0 751 eStyleAnimType_None)
michael@0 752 #endif
michael@0 753 CSS_PROP_SHORTHAND(
michael@0 754 -moz-border-end-width,
michael@0 755 border_end_width,
michael@0 756 CSS_PROP_DOMPROP_PREFIXED(BorderEndWidth),
michael@0 757 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 758 "")
michael@0 759 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 760 CSS_PROP_BORDER(
michael@0 761 border-end-width-value,
michael@0 762 border_end_width_value,
michael@0 763 BorderEndWidthValue,
michael@0 764 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 765 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 766 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 767 "",
michael@0 768 VARIANT_HKL | VARIANT_CALC,
michael@0 769 kBorderWidthKTable,
michael@0 770 CSS_PROP_NO_OFFSET,
michael@0 771 eStyleAnimType_None)
michael@0 772 #endif
michael@0 773 CSS_PROP_SHORTHAND(
michael@0 774 border-image,
michael@0 775 border_image,
michael@0 776 BorderImage,
michael@0 777 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 778 "")
michael@0 779 CSS_PROP_BORDER(
michael@0 780 border-image-source,
michael@0 781 border_image_source,
michael@0 782 BorderImageSource,
michael@0 783 CSS_PROPERTY_PARSE_VALUE |
michael@0 784 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 785 CSS_PROPERTY_START_IMAGE_LOADS,
michael@0 786 "",
michael@0 787 VARIANT_IMAGE | VARIANT_INHERIT,
michael@0 788 nullptr,
michael@0 789 CSS_PROP_NO_OFFSET,
michael@0 790 eStyleAnimType_None)
michael@0 791 CSS_PROP_BORDER(
michael@0 792 border-image-slice,
michael@0 793 border_image_slice,
michael@0 794 BorderImageSlice,
michael@0 795 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 796 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 797 "",
michael@0 798 0,
michael@0 799 kBorderImageSliceKTable,
michael@0 800 CSS_PROP_NO_OFFSET,
michael@0 801 eStyleAnimType_None)
michael@0 802 CSS_PROP_BORDER(
michael@0 803 border-image-width,
michael@0 804 border_image_width,
michael@0 805 BorderImageWidth,
michael@0 806 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 807 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 808 "",
michael@0 809 0,
michael@0 810 nullptr,
michael@0 811 CSS_PROP_NO_OFFSET,
michael@0 812 eStyleAnimType_None)
michael@0 813 CSS_PROP_BORDER(
michael@0 814 border-image-outset,
michael@0 815 border_image_outset,
michael@0 816 BorderImageOutset,
michael@0 817 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 818 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 819 "",
michael@0 820 0,
michael@0 821 nullptr,
michael@0 822 CSS_PROP_NO_OFFSET,
michael@0 823 eStyleAnimType_None)
michael@0 824 CSS_PROP_BORDER(
michael@0 825 border-image-repeat,
michael@0 826 border_image_repeat,
michael@0 827 BorderImageRepeat,
michael@0 828 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 829 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 830 "",
michael@0 831 0,
michael@0 832 kBorderImageRepeatKTable,
michael@0 833 CSS_PROP_NO_OFFSET,
michael@0 834 eStyleAnimType_None)
michael@0 835 CSS_PROP_SHORTHAND(
michael@0 836 border-left,
michael@0 837 border_left,
michael@0 838 BorderLeft,
michael@0 839 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 840 "")
michael@0 841 CSS_PROP_SHORTHAND(
michael@0 842 border-left-color,
michael@0 843 border_left_color,
michael@0 844 BorderLeftColor,
michael@0 845 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 846 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 847 "")
michael@0 848 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 849 CSS_PROP_BORDER(
michael@0 850 border-left-color-value,
michael@0 851 border_left_color_value,
michael@0 852 BorderLeftColorValue,
michael@0 853 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 854 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 855 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 856 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 857 "",
michael@0 858 VARIANT_HCK, // used only internally
michael@0 859 kBorderColorKTable,
michael@0 860 CSS_PROP_NO_OFFSET,
michael@0 861 eStyleAnimType_Custom)
michael@0 862 CSS_PROP_BORDER(
michael@0 863 border-left-color-ltr-source,
michael@0 864 border_left_color_ltr_source,
michael@0 865 BorderLeftColorLTRSource,
michael@0 866 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 867 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 868 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 869 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 870 "",
michael@0 871 0,
michael@0 872 kBoxPropSourceKTable,
michael@0 873 CSS_PROP_NO_OFFSET,
michael@0 874 eStyleAnimType_None)
michael@0 875 CSS_PROP_BORDER(
michael@0 876 border-left-color-rtl-source,
michael@0 877 border_left_color_rtl_source,
michael@0 878 BorderLeftColorRTLSource,
michael@0 879 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 880 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 881 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 882 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 883 "",
michael@0 884 0,
michael@0 885 kBoxPropSourceKTable,
michael@0 886 CSS_PROP_NO_OFFSET,
michael@0 887 eStyleAnimType_None)
michael@0 888 #endif
michael@0 889 CSS_PROP_BORDER(
michael@0 890 -moz-border-left-colors,
michael@0 891 border_left_colors,
michael@0 892 CSS_PROP_DOMPROP_PREFIXED(BorderLeftColors),
michael@0 893 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 894 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 895 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 896 "",
michael@0 897 0,
michael@0 898 nullptr,
michael@0 899 CSS_PROP_NO_OFFSET,
michael@0 900 eStyleAnimType_None)
michael@0 901 CSS_PROP_SHORTHAND(
michael@0 902 border-left-style,
michael@0 903 border_left_style,
michael@0 904 BorderLeftStyle,
michael@0 905 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 906 "") // on/off will need reflow
michael@0 907 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 908 CSS_PROP_BORDER(
michael@0 909 border-left-style-value,
michael@0 910 border_left_style_value,
michael@0 911 BorderLeftStyleValue,
michael@0 912 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 913 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 914 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 915 "",
michael@0 916 VARIANT_HK, // used only internally
michael@0 917 kBorderStyleKTable,
michael@0 918 CSS_PROP_NO_OFFSET,
michael@0 919 eStyleAnimType_None)
michael@0 920 CSS_PROP_BORDER(
michael@0 921 border-left-style-ltr-source,
michael@0 922 border_left_style_ltr_source,
michael@0 923 BorderLeftStyleLTRSource,
michael@0 924 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 925 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 926 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 927 "",
michael@0 928 0,
michael@0 929 kBoxPropSourceKTable,
michael@0 930 CSS_PROP_NO_OFFSET,
michael@0 931 eStyleAnimType_None)
michael@0 932 CSS_PROP_BORDER(
michael@0 933 border-left-style-rtl-source,
michael@0 934 border_left_style_rtl_source,
michael@0 935 BorderLeftStyleRTLSource,
michael@0 936 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 937 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 938 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 939 "",
michael@0 940 0,
michael@0 941 kBoxPropSourceKTable,
michael@0 942 CSS_PROP_NO_OFFSET,
michael@0 943 eStyleAnimType_None)
michael@0 944 #endif
michael@0 945 CSS_PROP_SHORTHAND(
michael@0 946 border-left-width,
michael@0 947 border_left_width,
michael@0 948 BorderLeftWidth,
michael@0 949 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 950 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 951 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 952 "")
michael@0 953 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 954 CSS_PROP_BORDER(
michael@0 955 border-left-width-value,
michael@0 956 border_left_width_value,
michael@0 957 BorderLeftWidthValue,
michael@0 958 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 959 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 960 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 961 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 962 "",
michael@0 963 VARIANT_HKL | VARIANT_CALC,
michael@0 964 kBorderWidthKTable,
michael@0 965 CSS_PROP_NO_OFFSET,
michael@0 966 eStyleAnimType_Custom)
michael@0 967 CSS_PROP_BORDER(
michael@0 968 border-left-width-ltr-source,
michael@0 969 border_left_width_ltr_source,
michael@0 970 BorderLeftWidthLTRSource,
michael@0 971 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 972 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 973 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 974 "",
michael@0 975 0,
michael@0 976 kBoxPropSourceKTable,
michael@0 977 CSS_PROP_NO_OFFSET,
michael@0 978 eStyleAnimType_None)
michael@0 979 CSS_PROP_BORDER(
michael@0 980 border-left-width-rtl-source,
michael@0 981 border_left_width_rtl_source,
michael@0 982 BorderLeftWidthRTLSource,
michael@0 983 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 984 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 985 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 986 "",
michael@0 987 0,
michael@0 988 kBoxPropSourceKTable,
michael@0 989 CSS_PROP_NO_OFFSET,
michael@0 990 eStyleAnimType_None)
michael@0 991 #endif
michael@0 992 CSS_PROP_SHORTHAND(
michael@0 993 border-right,
michael@0 994 border_right,
michael@0 995 BorderRight,
michael@0 996 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 997 "")
michael@0 998 CSS_PROP_SHORTHAND(
michael@0 999 border-right-color,
michael@0 1000 border_right_color,
michael@0 1001 BorderRightColor,
michael@0 1002 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1003 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 1004 "")
michael@0 1005 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1006 CSS_PROP_BORDER(
michael@0 1007 border-right-color-value,
michael@0 1008 border_right_color_value,
michael@0 1009 BorderRightColorValue,
michael@0 1010 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1011 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1012 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 1013 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 1014 "",
michael@0 1015 VARIANT_HCK, // used only internally
michael@0 1016 kBorderColorKTable,
michael@0 1017 CSS_PROP_NO_OFFSET,
michael@0 1018 eStyleAnimType_Custom)
michael@0 1019 CSS_PROP_BORDER(
michael@0 1020 border-right-color-ltr-source,
michael@0 1021 border_right_color_ltr_source,
michael@0 1022 BorderRightColorLTRSource,
michael@0 1023 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1024 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1025 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 1026 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1027 "",
michael@0 1028 0,
michael@0 1029 kBoxPropSourceKTable,
michael@0 1030 CSS_PROP_NO_OFFSET,
michael@0 1031 eStyleAnimType_None)
michael@0 1032 CSS_PROP_BORDER(
michael@0 1033 border-right-color-rtl-source,
michael@0 1034 border_right_color_rtl_source,
michael@0 1035 BorderRightColorRTLSource,
michael@0 1036 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1037 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1038 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 1039 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1040 "",
michael@0 1041 0,
michael@0 1042 kBoxPropSourceKTable,
michael@0 1043 CSS_PROP_NO_OFFSET,
michael@0 1044 eStyleAnimType_None)
michael@0 1045 #endif
michael@0 1046 CSS_PROP_BORDER(
michael@0 1047 -moz-border-right-colors,
michael@0 1048 border_right_colors,
michael@0 1049 CSS_PROP_DOMPROP_PREFIXED(BorderRightColors),
michael@0 1050 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1051 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1052 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1053 "",
michael@0 1054 0,
michael@0 1055 nullptr,
michael@0 1056 CSS_PROP_NO_OFFSET,
michael@0 1057 eStyleAnimType_None)
michael@0 1058 CSS_PROP_SHORTHAND(
michael@0 1059 border-right-style,
michael@0 1060 border_right_style,
michael@0 1061 BorderRightStyle,
michael@0 1062 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1063 "") // on/off will need reflow
michael@0 1064 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1065 CSS_PROP_BORDER(
michael@0 1066 border-right-style-value,
michael@0 1067 border_right_style_value,
michael@0 1068 BorderRightStyleValue,
michael@0 1069 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1070 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1071 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 1072 "",
michael@0 1073 VARIANT_HK, // used only internally
michael@0 1074 kBorderStyleKTable,
michael@0 1075 CSS_PROP_NO_OFFSET,
michael@0 1076 eStyleAnimType_None)
michael@0 1077 CSS_PROP_BORDER(
michael@0 1078 border-right-style-ltr-source,
michael@0 1079 border_right_style_ltr_source,
michael@0 1080 BorderRightStyleLTRSource,
michael@0 1081 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1082 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1083 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 1084 "",
michael@0 1085 0,
michael@0 1086 kBoxPropSourceKTable,
michael@0 1087 CSS_PROP_NO_OFFSET,
michael@0 1088 eStyleAnimType_None)
michael@0 1089 CSS_PROP_BORDER(
michael@0 1090 border-right-style-rtl-source,
michael@0 1091 border_right_style_rtl_source,
michael@0 1092 BorderRightStyleRTLSource,
michael@0 1093 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1094 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1095 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 1096 "",
michael@0 1097 0,
michael@0 1098 kBoxPropSourceKTable,
michael@0 1099 CSS_PROP_NO_OFFSET,
michael@0 1100 eStyleAnimType_None)
michael@0 1101 #endif
michael@0 1102 CSS_PROP_SHORTHAND(
michael@0 1103 border-right-width,
michael@0 1104 border_right_width,
michael@0 1105 BorderRightWidth,
michael@0 1106 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1107 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 1108 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1109 "")
michael@0 1110 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1111 CSS_PROP_BORDER(
michael@0 1112 border-right-width-value,
michael@0 1113 border_right_width_value,
michael@0 1114 BorderRightWidthValue,
michael@0 1115 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1116 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1117 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1118 CSS_PROPERTY_REPORT_OTHER_NAME,
michael@0 1119 "",
michael@0 1120 VARIANT_HKL | VARIANT_CALC,
michael@0 1121 kBorderWidthKTable,
michael@0 1122 CSS_PROP_NO_OFFSET,
michael@0 1123 eStyleAnimType_Custom)
michael@0 1124 CSS_PROP_BORDER(
michael@0 1125 border-right-width-ltr-source,
michael@0 1126 border_right_width_ltr_source,
michael@0 1127 BorderRightWidthLTRSource,
michael@0 1128 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1129 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1130 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 1131 "",
michael@0 1132 0,
michael@0 1133 kBoxPropSourceKTable,
michael@0 1134 CSS_PROP_NO_OFFSET,
michael@0 1135 eStyleAnimType_None)
michael@0 1136 CSS_PROP_BORDER(
michael@0 1137 border-right-width-rtl-source,
michael@0 1138 border_right_width_rtl_source,
michael@0 1139 BorderRightWidthRTLSource,
michael@0 1140 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1141 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1142 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 1143 "",
michael@0 1144 0,
michael@0 1145 kBoxPropSourceKTable,
michael@0 1146 CSS_PROP_NO_OFFSET,
michael@0 1147 eStyleAnimType_None)
michael@0 1148 #endif
michael@0 1149 CSS_PROP_TABLEBORDER(
michael@0 1150 border-spacing,
michael@0 1151 border_spacing,
michael@0 1152 BorderSpacing,
michael@0 1153 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1154 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1155 "",
michael@0 1156 0,
michael@0 1157 nullptr,
michael@0 1158 CSS_PROP_NO_OFFSET,
michael@0 1159 eStyleAnimType_Custom)
michael@0 1160 CSS_PROP_SHORTHAND(
michael@0 1161 -moz-border-start,
michael@0 1162 border_start,
michael@0 1163 CSS_PROP_DOMPROP_PREFIXED(BorderStart),
michael@0 1164 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1165 "")
michael@0 1166 CSS_PROP_SHORTHAND(
michael@0 1167 -moz-border-start-color,
michael@0 1168 border_start_color,
michael@0 1169 CSS_PROP_DOMPROP_PREFIXED(BorderStartColor),
michael@0 1170 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1171 "")
michael@0 1172 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1173 CSS_PROP_BORDER(
michael@0 1174 border-start-color-value,
michael@0 1175 border_start_color_value,
michael@0 1176 BorderStartColorValue,
michael@0 1177 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1178 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 1179 "",
michael@0 1180 VARIANT_HCK, // used only internally
michael@0 1181 kBorderColorKTable,
michael@0 1182 CSS_PROP_NO_OFFSET,
michael@0 1183 eStyleAnimType_None)
michael@0 1184 #endif
michael@0 1185 CSS_PROP_SHORTHAND(
michael@0 1186 -moz-border-start-style,
michael@0 1187 border_start_style,
michael@0 1188 CSS_PROP_DOMPROP_PREFIXED(BorderStartStyle),
michael@0 1189 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1190 "")
michael@0 1191 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1192 CSS_PROP_BORDER(
michael@0 1193 border-start-style-value,
michael@0 1194 border_start_style_value,
michael@0 1195 BorderStartStyleValue,
michael@0 1196 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1197 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 1198 "",
michael@0 1199 VARIANT_HK, // used only internally
michael@0 1200 kBorderStyleKTable,
michael@0 1201 CSS_PROP_NO_OFFSET,
michael@0 1202 eStyleAnimType_None)
michael@0 1203 #endif
michael@0 1204 CSS_PROP_SHORTHAND(
michael@0 1205 -moz-border-start-width,
michael@0 1206 border_start_width,
michael@0 1207 CSS_PROP_DOMPROP_PREFIXED(BorderStartWidth),
michael@0 1208 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1209 "")
michael@0 1210 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1211 CSS_PROP_BORDER(
michael@0 1212 border-start-width-value,
michael@0 1213 border_start_width_value,
michael@0 1214 BorderStartWidthValue,
michael@0 1215 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 1216 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1217 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 1218 "",
michael@0 1219 VARIANT_HKL | VARIANT_CALC,
michael@0 1220 kBorderWidthKTable,
michael@0 1221 CSS_PROP_NO_OFFSET,
michael@0 1222 eStyleAnimType_None)
michael@0 1223 #endif
michael@0 1224 CSS_PROP_SHORTHAND(
michael@0 1225 border-style,
michael@0 1226 border_style,
michael@0 1227 BorderStyle,
michael@0 1228 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1229 "") // on/off will need reflow
michael@0 1230 CSS_PROP_SHORTHAND(
michael@0 1231 border-top,
michael@0 1232 border_top,
michael@0 1233 BorderTop,
michael@0 1234 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1235 "")
michael@0 1236 CSS_PROP_BORDER(
michael@0 1237 border-top-color,
michael@0 1238 border_top_color,
michael@0 1239 BorderTopColor,
michael@0 1240 CSS_PROPERTY_PARSE_VALUE |
michael@0 1241 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1242 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 1243 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 1244 "",
michael@0 1245 VARIANT_HCK,
michael@0 1246 kBorderColorKTable,
michael@0 1247 CSS_PROP_NO_OFFSET,
michael@0 1248 eStyleAnimType_Custom)
michael@0 1249 CSS_PROP_BORDER(
michael@0 1250 -moz-border-top-colors,
michael@0 1251 border_top_colors,
michael@0 1252 CSS_PROP_DOMPROP_PREFIXED(BorderTopColors),
michael@0 1253 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1254 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1255 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1256 "",
michael@0 1257 0,
michael@0 1258 nullptr,
michael@0 1259 CSS_PROP_NO_OFFSET,
michael@0 1260 eStyleAnimType_None)
michael@0 1261 CSS_PROP_BORDER(
michael@0 1262 border-top-style,
michael@0 1263 border_top_style,
michael@0 1264 BorderTopStyle,
michael@0 1265 CSS_PROPERTY_PARSE_VALUE |
michael@0 1266 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 1267 "",
michael@0 1268 VARIANT_HK,
michael@0 1269 kBorderStyleKTable,
michael@0 1270 CSS_PROP_NO_OFFSET,
michael@0 1271 eStyleAnimType_None) // on/off will need reflow
michael@0 1272 CSS_PROP_BORDER(
michael@0 1273 border-top-width,
michael@0 1274 border_top_width,
michael@0 1275 BorderTopWidth,
michael@0 1276 CSS_PROPERTY_PARSE_VALUE |
michael@0 1277 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1278 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1279 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 1280 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1281 "",
michael@0 1282 VARIANT_HKL | VARIANT_CALC,
michael@0 1283 kBorderWidthKTable,
michael@0 1284 CSS_PROP_NO_OFFSET,
michael@0 1285 eStyleAnimType_Custom)
michael@0 1286 CSS_PROP_SHORTHAND(
michael@0 1287 border-width,
michael@0 1288 border_width,
michael@0 1289 BorderWidth,
michael@0 1290 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1291 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 1292 "")
michael@0 1293 CSS_PROP_SHORTHAND(
michael@0 1294 border-radius,
michael@0 1295 border_radius,
michael@0 1296 BorderRadius,
michael@0 1297 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1298 "")
michael@0 1299 CSS_PROP_BORDER(
michael@0 1300 border-top-left-radius,
michael@0 1301 border_top_left_radius,
michael@0 1302 BorderTopLeftRadius,
michael@0 1303 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1304 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1305 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1306 CSS_PROPERTY_STORES_CALC |
michael@0 1307 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1308 "",
michael@0 1309 0,
michael@0 1310 nullptr,
michael@0 1311 offsetof(nsStyleBorder, mBorderRadius),
michael@0 1312 eStyleAnimType_Corner_TopLeft)
michael@0 1313 CSS_PROP_BORDER(
michael@0 1314 border-top-right-radius,
michael@0 1315 border_top_right_radius,
michael@0 1316 BorderTopRightRadius,
michael@0 1317 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1318 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1319 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1320 CSS_PROPERTY_STORES_CALC |
michael@0 1321 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1322 "",
michael@0 1323 0,
michael@0 1324 nullptr,
michael@0 1325 offsetof(nsStyleBorder, mBorderRadius),
michael@0 1326 eStyleAnimType_Corner_TopRight)
michael@0 1327 CSS_PROP_BORDER(
michael@0 1328 border-bottom-right-radius,
michael@0 1329 border_bottom_right_radius,
michael@0 1330 BorderBottomRightRadius,
michael@0 1331 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1332 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1333 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1334 CSS_PROPERTY_STORES_CALC |
michael@0 1335 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1336 "",
michael@0 1337 0,
michael@0 1338 nullptr,
michael@0 1339 offsetof(nsStyleBorder, mBorderRadius),
michael@0 1340 eStyleAnimType_Corner_BottomRight)
michael@0 1341 CSS_PROP_BORDER(
michael@0 1342 border-bottom-left-radius,
michael@0 1343 border_bottom_left_radius,
michael@0 1344 BorderBottomLeftRadius,
michael@0 1345 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1346 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1347 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1348 CSS_PROPERTY_STORES_CALC |
michael@0 1349 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1350 "",
michael@0 1351 0,
michael@0 1352 nullptr,
michael@0 1353 offsetof(nsStyleBorder, mBorderRadius),
michael@0 1354 eStyleAnimType_Corner_BottomLeft)
michael@0 1355 CSS_PROP_POSITION(
michael@0 1356 bottom,
michael@0 1357 bottom,
michael@0 1358 Bottom,
michael@0 1359 CSS_PROPERTY_PARSE_VALUE |
michael@0 1360 CSS_PROPERTY_STORES_CALC |
michael@0 1361 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 1362 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 1363 "",
michael@0 1364 VARIANT_AHLP | VARIANT_CALC,
michael@0 1365 nullptr,
michael@0 1366 offsetof(nsStylePosition, mOffset),
michael@0 1367 eStyleAnimType_Sides_Bottom)
michael@0 1368 CSS_PROP_BORDER(
michael@0 1369 box-shadow,
michael@0 1370 box_shadow,
michael@0 1371 BoxShadow,
michael@0 1372 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1373 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 1374 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 1375 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1376 // NOTE: some components must be nonnegative
michael@0 1377 "",
michael@0 1378 0,
michael@0 1379 kBoxShadowTypeKTable,
michael@0 1380 offsetof(nsStyleBorder, mBoxShadow),
michael@0 1381 eStyleAnimType_Shadow)
michael@0 1382 CSS_PROP_POSITION(
michael@0 1383 box-sizing,
michael@0 1384 box_sizing,
michael@0 1385 BoxSizing,
michael@0 1386 CSS_PROPERTY_PARSE_VALUE,
michael@0 1387 "",
michael@0 1388 VARIANT_HK,
michael@0 1389 kBoxSizingKTable,
michael@0 1390 CSS_PROP_NO_OFFSET,
michael@0 1391 eStyleAnimType_None)
michael@0 1392 CSS_PROP_TABLEBORDER(
michael@0 1393 caption-side,
michael@0 1394 caption_side,
michael@0 1395 CaptionSide,
michael@0 1396 CSS_PROPERTY_PARSE_VALUE,
michael@0 1397 "",
michael@0 1398 VARIANT_HK,
michael@0 1399 kCaptionSideKTable,
michael@0 1400 CSS_PROP_NO_OFFSET,
michael@0 1401 eStyleAnimType_None)
michael@0 1402 CSS_PROP_DISPLAY(
michael@0 1403 clear,
michael@0 1404 clear,
michael@0 1405 Clear,
michael@0 1406 CSS_PROPERTY_PARSE_VALUE,
michael@0 1407 "",
michael@0 1408 VARIANT_HK,
michael@0 1409 kClearKTable,
michael@0 1410 CSS_PROP_NO_OFFSET,
michael@0 1411 eStyleAnimType_None)
michael@0 1412 CSS_PROP_DISPLAY(
michael@0 1413 clip,
michael@0 1414 clip,
michael@0 1415 Clip,
michael@0 1416 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1417 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 1418 "",
michael@0 1419 0,
michael@0 1420 nullptr,
michael@0 1421 offsetof(nsStyleDisplay, mClip),
michael@0 1422 eStyleAnimType_Custom)
michael@0 1423 CSS_PROP_COLOR(
michael@0 1424 color,
michael@0 1425 color,
michael@0 1426 Color,
michael@0 1427 CSS_PROPERTY_PARSE_VALUE |
michael@0 1428 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1429 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 1430 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED |
michael@0 1431 CSS_PROPERTY_HASHLESS_COLOR_QUIRK,
michael@0 1432 "",
michael@0 1433 VARIANT_HC,
michael@0 1434 nullptr,
michael@0 1435 offsetof(nsStyleColor, mColor),
michael@0 1436 eStyleAnimType_Color)
michael@0 1437 CSS_PROP_SHORTHAND(
michael@0 1438 -moz-columns,
michael@0 1439 _moz_columns,
michael@0 1440 CSS_PROP_DOMPROP_PREFIXED(Columns),
michael@0 1441 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1442 "")
michael@0 1443 CSS_PROP_COLUMN(
michael@0 1444 -moz-column-count,
michael@0 1445 _moz_column_count,
michael@0 1446 CSS_PROP_DOMPROP_PREFIXED(ColumnCount),
michael@0 1447 CSS_PROPERTY_PARSE_VALUE |
michael@0 1448 // Need to reject 0 in addition to negatives. If we accept 0, we
michael@0 1449 // need to change NS_STYLE_COLUMN_COUNT_AUTO to something else.
michael@0 1450 CSS_PROPERTY_VALUE_AT_LEAST_ONE,
michael@0 1451 "",
michael@0 1452 VARIANT_AHI,
michael@0 1453 nullptr,
michael@0 1454 offsetof(nsStyleColumn, mColumnCount),
michael@0 1455 eStyleAnimType_Custom)
michael@0 1456 CSS_PROP_COLUMN(
michael@0 1457 -moz-column-fill,
michael@0 1458 _moz_column_fill,
michael@0 1459 CSS_PROP_DOMPROP_PREFIXED(ColumnFill),
michael@0 1460 CSS_PROPERTY_PARSE_VALUE,
michael@0 1461 "",
michael@0 1462 VARIANT_HK,
michael@0 1463 kColumnFillKTable,
michael@0 1464 CSS_PROP_NO_OFFSET,
michael@0 1465 eStyleAnimType_None)
michael@0 1466 CSS_PROP_COLUMN(
michael@0 1467 -moz-column-width,
michael@0 1468 _moz_column_width,
michael@0 1469 CSS_PROP_DOMPROP_PREFIXED(ColumnWidth),
michael@0 1470 CSS_PROPERTY_PARSE_VALUE |
michael@0 1471 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1472 "",
michael@0 1473 VARIANT_AHL | VARIANT_CALC,
michael@0 1474 nullptr,
michael@0 1475 offsetof(nsStyleColumn, mColumnWidth),
michael@0 1476 eStyleAnimType_Coord)
michael@0 1477 CSS_PROP_COLUMN(
michael@0 1478 -moz-column-gap,
michael@0 1479 _moz_column_gap,
michael@0 1480 CSS_PROP_DOMPROP_PREFIXED(ColumnGap),
michael@0 1481 CSS_PROPERTY_PARSE_VALUE |
michael@0 1482 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1483 "",
michael@0 1484 VARIANT_HL | VARIANT_NORMAL | VARIANT_CALC,
michael@0 1485 nullptr,
michael@0 1486 offsetof(nsStyleColumn, mColumnGap),
michael@0 1487 eStyleAnimType_Coord)
michael@0 1488 CSS_PROP_SHORTHAND(
michael@0 1489 -moz-column-rule,
michael@0 1490 _moz_column_rule,
michael@0 1491 CSS_PROP_DOMPROP_PREFIXED(ColumnRule),
michael@0 1492 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1493 "")
michael@0 1494 CSS_PROP_COLUMN(
michael@0 1495 -moz-column-rule-color,
michael@0 1496 _moz_column_rule_color,
michael@0 1497 CSS_PROP_DOMPROP_PREFIXED(ColumnRuleColor),
michael@0 1498 CSS_PROPERTY_PARSE_VALUE |
michael@0 1499 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 1500 "",
michael@0 1501 VARIANT_HCK,
michael@0 1502 kBorderColorKTable,
michael@0 1503 CSS_PROP_NO_OFFSET,
michael@0 1504 eStyleAnimType_Custom)
michael@0 1505 CSS_PROP_COLUMN(
michael@0 1506 -moz-column-rule-style,
michael@0 1507 _moz_column_rule_style,
michael@0 1508 CSS_PROP_DOMPROP_PREFIXED(ColumnRuleStyle),
michael@0 1509 CSS_PROPERTY_PARSE_VALUE,
michael@0 1510 "",
michael@0 1511 VARIANT_HK,
michael@0 1512 kBorderStyleKTable,
michael@0 1513 CSS_PROP_NO_OFFSET,
michael@0 1514 eStyleAnimType_None)
michael@0 1515 CSS_PROP_COLUMN(
michael@0 1516 -moz-column-rule-width,
michael@0 1517 _moz_column_rule_width,
michael@0 1518 CSS_PROP_DOMPROP_PREFIXED(ColumnRuleWidth),
michael@0 1519 CSS_PROPERTY_PARSE_VALUE |
michael@0 1520 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1521 "",
michael@0 1522 VARIANT_HKL | VARIANT_CALC,
michael@0 1523 kBorderWidthKTable,
michael@0 1524 CSS_PROP_NO_OFFSET,
michael@0 1525 eStyleAnimType_Custom)
michael@0 1526 CSS_PROP_CONTENT(
michael@0 1527 content,
michael@0 1528 content,
michael@0 1529 Content,
michael@0 1530 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1531 CSS_PROPERTY_START_IMAGE_LOADS,
michael@0 1532 "",
michael@0 1533 0,
michael@0 1534 kContentKTable,
michael@0 1535 CSS_PROP_NO_OFFSET,
michael@0 1536 eStyleAnimType_None)
michael@0 1537 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 1538 CSS_PROP_TEXT(
michael@0 1539 -moz-control-character-visibility,
michael@0 1540 _moz_control_character_visibility,
michael@0 1541 CSS_PROP_DOMPROP_PREFIXED(ControlCharacterVisibility),
michael@0 1542 CSS_PROPERTY_PARSE_VALUE,
michael@0 1543 "",
michael@0 1544 VARIANT_HK,
michael@0 1545 kControlCharacterVisibilityKTable,
michael@0 1546 CSS_PROP_NO_OFFSET,
michael@0 1547 eStyleAnimType_None)
michael@0 1548 #endif
michael@0 1549 CSS_PROP_CONTENT(
michael@0 1550 counter-increment,
michael@0 1551 counter_increment,
michael@0 1552 CounterIncrement,
michael@0 1553 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1554 "",
michael@0 1555 0,
michael@0 1556 nullptr,
michael@0 1557 CSS_PROP_NO_OFFSET,
michael@0 1558 eStyleAnimType_None) // XXX bug 137285
michael@0 1559 CSS_PROP_CONTENT(
michael@0 1560 counter-reset,
michael@0 1561 counter_reset,
michael@0 1562 CounterReset,
michael@0 1563 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1564 "",
michael@0 1565 0,
michael@0 1566 nullptr,
michael@0 1567 CSS_PROP_NO_OFFSET,
michael@0 1568 eStyleAnimType_None) // XXX bug 137285
michael@0 1569 CSS_PROP_USERINTERFACE(
michael@0 1570 cursor,
michael@0 1571 cursor,
michael@0 1572 Cursor,
michael@0 1573 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 1574 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 1575 CSS_PROPERTY_START_IMAGE_LOADS |
michael@0 1576 CSS_PROPERTY_IMAGE_IS_IN_ARRAY_0,
michael@0 1577 "",
michael@0 1578 0,
michael@0 1579 kCursorKTable,
michael@0 1580 CSS_PROP_NO_OFFSET,
michael@0 1581 eStyleAnimType_None)
michael@0 1582 #ifndef CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
michael@0 1583 CSS_PROP_VISIBILITY(
michael@0 1584 direction,
michael@0 1585 direction,
michael@0 1586 Direction,
michael@0 1587 CSS_PROPERTY_PARSE_VALUE,
michael@0 1588 "",
michael@0 1589 VARIANT_HK,
michael@0 1590 kDirectionKTable,
michael@0 1591 CSS_PROP_NO_OFFSET,
michael@0 1592 eStyleAnimType_None)
michael@0 1593 #endif // !defined(CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND)
michael@0 1594 CSS_PROP_DISPLAY(
michael@0 1595 display,
michael@0 1596 display,
michael@0 1597 Display,
michael@0 1598 CSS_PROPERTY_PARSE_VALUE |
michael@0 1599 // This is allowed because we need to make the placeholder
michael@0 1600 // pseudo-element an inline-block in the UA stylesheet. It is a block
michael@0 1601 // by default.
michael@0 1602 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1603 "",
michael@0 1604 VARIANT_HK,
michael@0 1605 kDisplayKTable,
michael@0 1606 offsetof(nsStyleDisplay, mDisplay),
michael@0 1607 eStyleAnimType_EnumU8)
michael@0 1608 CSS_PROP_TABLEBORDER(
michael@0 1609 empty-cells,
michael@0 1610 empty_cells,
michael@0 1611 EmptyCells,
michael@0 1612 CSS_PROPERTY_PARSE_VALUE,
michael@0 1613 "",
michael@0 1614 VARIANT_HK,
michael@0 1615 kEmptyCellsKTable,
michael@0 1616 CSS_PROP_NO_OFFSET,
michael@0 1617 eStyleAnimType_None)
michael@0 1618 CSS_PROP_POSITION(
michael@0 1619 align-content,
michael@0 1620 align_content,
michael@0 1621 AlignContent,
michael@0 1622 CSS_PROPERTY_PARSE_VALUE,
michael@0 1623 "",
michael@0 1624 VARIANT_HK,
michael@0 1625 kAlignContentKTable,
michael@0 1626 offsetof(nsStylePosition, mAlignContent),
michael@0 1627 eStyleAnimType_EnumU8)
michael@0 1628 CSS_PROP_POSITION(
michael@0 1629 align-items,
michael@0 1630 align_items,
michael@0 1631 AlignItems,
michael@0 1632 CSS_PROPERTY_PARSE_VALUE,
michael@0 1633 "",
michael@0 1634 VARIANT_HK,
michael@0 1635 kAlignItemsKTable,
michael@0 1636 offsetof(nsStylePosition, mAlignItems),
michael@0 1637 eStyleAnimType_EnumU8)
michael@0 1638 CSS_PROP_POSITION(
michael@0 1639 align-self,
michael@0 1640 align_self,
michael@0 1641 AlignSelf,
michael@0 1642 CSS_PROPERTY_PARSE_VALUE,
michael@0 1643 "",
michael@0 1644 VARIANT_HK,
michael@0 1645 kAlignSelfKTable,
michael@0 1646 offsetof(nsStylePosition, mAlignSelf),
michael@0 1647 eStyleAnimType_EnumU8)
michael@0 1648 CSS_PROP_SHORTHAND(
michael@0 1649 flex,
michael@0 1650 flex,
michael@0 1651 Flex,
michael@0 1652 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1653 "")
michael@0 1654 CSS_PROP_POSITION(
michael@0 1655 flex-basis,
michael@0 1656 flex_basis,
michael@0 1657 FlexBasis,
michael@0 1658 CSS_PROPERTY_PARSE_VALUE |
michael@0 1659 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1660 CSS_PROPERTY_STORES_CALC,
michael@0 1661 "",
michael@0 1662 // NOTE: The parsing implementation for the 'flex' shorthand property has
michael@0 1663 // its own code to parse each subproperty. It does not depend on the
michael@0 1664 // longhand parsing defined here.
michael@0 1665 VARIANT_AHKLP | VARIANT_CALC,
michael@0 1666 kWidthKTable,
michael@0 1667 offsetof(nsStylePosition, mFlexBasis),
michael@0 1668 eStyleAnimType_Coord)
michael@0 1669 CSS_PROP_POSITION(
michael@0 1670 flex-direction,
michael@0 1671 flex_direction,
michael@0 1672 FlexDirection,
michael@0 1673 CSS_PROPERTY_PARSE_VALUE,
michael@0 1674 "",
michael@0 1675 VARIANT_HK,
michael@0 1676 kFlexDirectionKTable,
michael@0 1677 offsetof(nsStylePosition, mFlexDirection),
michael@0 1678 eStyleAnimType_EnumU8)
michael@0 1679 CSS_PROP_SHORTHAND(
michael@0 1680 flex-flow,
michael@0 1681 flex_flow,
michael@0 1682 FlexFlow,
michael@0 1683 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1684 "")
michael@0 1685 CSS_PROP_POSITION(
michael@0 1686 flex-grow,
michael@0 1687 flex_grow,
michael@0 1688 FlexGrow,
michael@0 1689 CSS_PROPERTY_PARSE_VALUE |
michael@0 1690 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1691 "",
michael@0 1692 // NOTE: The parsing implementation for the 'flex' shorthand property has
michael@0 1693 // its own code to parse each subproperty. It does not depend on the
michael@0 1694 // longhand parsing defined here.
michael@0 1695 VARIANT_HN,
michael@0 1696 nullptr,
michael@0 1697 offsetof(nsStylePosition, mFlexGrow),
michael@0 1698 eStyleAnimType_float) // float, except animations to/from 0 shouldn't work
michael@0 1699 CSS_PROP_POSITION(
michael@0 1700 flex-shrink,
michael@0 1701 flex_shrink,
michael@0 1702 FlexShrink,
michael@0 1703 CSS_PROPERTY_PARSE_VALUE |
michael@0 1704 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 1705 "",
michael@0 1706 // NOTE: The parsing implementation for the 'flex' shorthand property has
michael@0 1707 // its own code to parse each subproperty. It does not depend on the
michael@0 1708 // longhand parsing defined here.
michael@0 1709 VARIANT_HN,
michael@0 1710 nullptr,
michael@0 1711 offsetof(nsStylePosition, mFlexShrink),
michael@0 1712 eStyleAnimType_float) // float, except animations to/from 0 shouldn't work
michael@0 1713 CSS_PROP_POSITION(
michael@0 1714 flex-wrap,
michael@0 1715 flex_wrap,
michael@0 1716 FlexWrap,
michael@0 1717 CSS_PROPERTY_PARSE_VALUE,
michael@0 1718 "",
michael@0 1719 VARIANT_HK,
michael@0 1720 kFlexWrapKTable,
michael@0 1721 offsetof(nsStylePosition, mFlexWrap),
michael@0 1722 eStyleAnimType_EnumU8)
michael@0 1723 CSS_PROP_POSITION(
michael@0 1724 order,
michael@0 1725 order,
michael@0 1726 Order,
michael@0 1727 CSS_PROPERTY_PARSE_VALUE,
michael@0 1728 "",
michael@0 1729 VARIANT_HI,
michael@0 1730 nullptr,
michael@0 1731 offsetof(nsStylePosition, mOrder),
michael@0 1732 eStyleAnimType_Custom) // <integer>
michael@0 1733 CSS_PROP_POSITION(
michael@0 1734 justify-content,
michael@0 1735 justify_content,
michael@0 1736 JustifyContent,
michael@0 1737 CSS_PROPERTY_PARSE_VALUE,
michael@0 1738 "",
michael@0 1739 VARIANT_HK,
michael@0 1740 kJustifyContentKTable,
michael@0 1741 offsetof(nsStylePosition, mJustifyContent),
michael@0 1742 eStyleAnimType_EnumU8)
michael@0 1743 CSS_PROP_DISPLAY(
michael@0 1744 float,
michael@0 1745 float,
michael@0 1746 CSS_PROP_PUBLIC_OR_PRIVATE(CssFloat, Float),
michael@0 1747 CSS_PROPERTY_PARSE_VALUE |
michael@0 1748 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER,
michael@0 1749 "",
michael@0 1750 VARIANT_HK,
michael@0 1751 kFloatKTable,
michael@0 1752 CSS_PROP_NO_OFFSET,
michael@0 1753 eStyleAnimType_None)
michael@0 1754 CSS_PROP_BORDER(
michael@0 1755 -moz-float-edge,
michael@0 1756 float_edge,
michael@0 1757 CSS_PROP_DOMPROP_PREFIXED(FloatEdge),
michael@0 1758 CSS_PROPERTY_PARSE_VALUE,
michael@0 1759 "",
michael@0 1760 VARIANT_HK,
michael@0 1761 kFloatEdgeKTable,
michael@0 1762 CSS_PROP_NO_OFFSET,
michael@0 1763 eStyleAnimType_None) // XXX bug 3935
michael@0 1764 CSS_PROP_SHORTHAND(
michael@0 1765 font,
michael@0 1766 font,
michael@0 1767 Font,
michael@0 1768 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 1769 "")
michael@0 1770 CSS_PROP_FONT(
michael@0 1771 font-family,
michael@0 1772 font_family,
michael@0 1773 FontFamily,
michael@0 1774 CSS_PROPERTY_PARSE_VALUE |
michael@0 1775 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1776 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1777 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1778 "",
michael@0 1779 0,
michael@0 1780 nullptr,
michael@0 1781 CSS_PROP_NO_OFFSET,
michael@0 1782 eStyleAnimType_None)
michael@0 1783 CSS_PROP_FONT(
michael@0 1784 -moz-font-feature-settings,
michael@0 1785 font_feature_settings,
michael@0 1786 CSS_PROP_DOMPROP_PREFIXED(FontFeatureSettings),
michael@0 1787 CSS_PROPERTY_PARSE_VALUE |
michael@0 1788 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1789 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1790 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1791 "",
michael@0 1792 0,
michael@0 1793 nullptr,
michael@0 1794 CSS_PROP_NO_OFFSET,
michael@0 1795 eStyleAnimType_None)
michael@0 1796 CSS_PROP_FONT(
michael@0 1797 font-kerning,
michael@0 1798 font_kerning,
michael@0 1799 FontKerning,
michael@0 1800 CSS_PROPERTY_PARSE_VALUE |
michael@0 1801 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1802 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1803 "layout.css.font-features.enabled",
michael@0 1804 VARIANT_HK,
michael@0 1805 kFontKerningKTable,
michael@0 1806 CSS_PROP_NO_OFFSET,
michael@0 1807 eStyleAnimType_None)
michael@0 1808 CSS_PROP_FONT(
michael@0 1809 -moz-font-language-override,
michael@0 1810 font_language_override,
michael@0 1811 CSS_PROP_DOMPROP_PREFIXED(FontLanguageOverride),
michael@0 1812 CSS_PROPERTY_PARSE_VALUE |
michael@0 1813 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1814 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1815 "",
michael@0 1816 VARIANT_NORMAL | VARIANT_INHERIT | VARIANT_STRING,
michael@0 1817 nullptr,
michael@0 1818 CSS_PROP_NO_OFFSET,
michael@0 1819 eStyleAnimType_None)
michael@0 1820 CSS_PROP_FONT(
michael@0 1821 font-size,
michael@0 1822 font_size,
michael@0 1823 FontSize,
michael@0 1824 CSS_PROPERTY_PARSE_VALUE |
michael@0 1825 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1826 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1827 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 1828 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 1829 "",
michael@0 1830 VARIANT_HKLP | VARIANT_SYSFONT | VARIANT_CALC,
michael@0 1831 kFontSizeKTable,
michael@0 1832 // Note that mSize is the correct place for *reading* the computed value,
michael@0 1833 // but setting it requires setting mFont.size as well.
michael@0 1834 offsetof(nsStyleFont, mSize),
michael@0 1835 eStyleAnimType_nscoord)
michael@0 1836 CSS_PROP_FONT(
michael@0 1837 font-size-adjust,
michael@0 1838 font_size_adjust,
michael@0 1839 FontSizeAdjust,
michael@0 1840 CSS_PROPERTY_PARSE_VALUE |
michael@0 1841 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 1842 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1843 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1844 "",
michael@0 1845 VARIANT_HON | VARIANT_SYSFONT,
michael@0 1846 nullptr,
michael@0 1847 offsetof(nsStyleFont, mFont.sizeAdjust),
michael@0 1848 eStyleAnimType_float)
michael@0 1849 CSS_PROP_FONT(
michael@0 1850 -moz-osx-font-smoothing,
michael@0 1851 osx_font_smoothing,
michael@0 1852 CSS_PROP_DOMPROP_PREFIXED(OSXFontSmoothing),
michael@0 1853 CSS_PROPERTY_PARSE_VALUE |
michael@0 1854 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1855 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1856 "layout.css.osx-font-smoothing.enabled",
michael@0 1857 VARIANT_HK,
michael@0 1858 kFontSmoothingKTable,
michael@0 1859 CSS_PROP_NO_OFFSET,
michael@0 1860 eStyleAnimType_None)
michael@0 1861 CSS_PROP_FONT(
michael@0 1862 font-stretch,
michael@0 1863 font_stretch,
michael@0 1864 FontStretch,
michael@0 1865 CSS_PROPERTY_PARSE_VALUE |
michael@0 1866 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1867 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1868 "",
michael@0 1869 VARIANT_HK | VARIANT_SYSFONT,
michael@0 1870 kFontStretchKTable,
michael@0 1871 offsetof(nsStyleFont, mFont.stretch),
michael@0 1872 eStyleAnimType_Custom)
michael@0 1873 CSS_PROP_FONT(
michael@0 1874 font-style,
michael@0 1875 font_style,
michael@0 1876 FontStyle,
michael@0 1877 CSS_PROPERTY_PARSE_VALUE |
michael@0 1878 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1879 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1880 "",
michael@0 1881 VARIANT_HK | VARIANT_SYSFONT,
michael@0 1882 kFontStyleKTable,
michael@0 1883 offsetof(nsStyleFont, mFont.style),
michael@0 1884 eStyleAnimType_EnumU8)
michael@0 1885 CSS_PROP_FONT(
michael@0 1886 font-synthesis,
michael@0 1887 font_synthesis,
michael@0 1888 FontSynthesis,
michael@0 1889 CSS_PROPERTY_PARSE_VALUE |
michael@0 1890 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1891 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1892 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1893 "layout.css.font-features.enabled",
michael@0 1894 0,
michael@0 1895 kFontSynthesisKTable,
michael@0 1896 CSS_PROP_NO_OFFSET,
michael@0 1897 eStyleAnimType_None)
michael@0 1898 CSS_PROP_FONT(
michael@0 1899 font-variant,
michael@0 1900 font_variant,
michael@0 1901 FontVariant,
michael@0 1902 CSS_PROPERTY_PARSE_VALUE |
michael@0 1903 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1904 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1905 "",
michael@0 1906 VARIANT_HK | VARIANT_SYSFONT,
michael@0 1907 kFontVariantKTable,
michael@0 1908 offsetof(nsStyleFont, mFont.variant),
michael@0 1909 eStyleAnimType_EnumU8)
michael@0 1910 CSS_PROP_FONT(
michael@0 1911 font-variant-alternates,
michael@0 1912 font_variant_alternates,
michael@0 1913 FontVariantAlternates,
michael@0 1914 CSS_PROPERTY_PARSE_VALUE |
michael@0 1915 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1916 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1917 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1918 "layout.css.font-features.enabled",
michael@0 1919 VARIANT_HK,
michael@0 1920 kFontVariantAlternatesKTable,
michael@0 1921 CSS_PROP_NO_OFFSET,
michael@0 1922 eStyleAnimType_None)
michael@0 1923 CSS_PROP_FONT(
michael@0 1924 font-variant-caps,
michael@0 1925 font_variant_caps,
michael@0 1926 FontVariantCaps,
michael@0 1927 CSS_PROPERTY_PARSE_VALUE |
michael@0 1928 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1929 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1930 "layout.css.font-features.enabled",
michael@0 1931 VARIANT_HMK,
michael@0 1932 kFontVariantCapsKTable,
michael@0 1933 CSS_PROP_NO_OFFSET,
michael@0 1934 eStyleAnimType_None)
michael@0 1935 CSS_PROP_FONT(
michael@0 1936 font-variant-east-asian,
michael@0 1937 font_variant_east_asian,
michael@0 1938 FontVariantEastAsian,
michael@0 1939 CSS_PROPERTY_PARSE_VALUE |
michael@0 1940 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1941 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1942 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1943 "layout.css.font-features.enabled",
michael@0 1944 0,
michael@0 1945 kFontVariantEastAsianKTable,
michael@0 1946 CSS_PROP_NO_OFFSET,
michael@0 1947 eStyleAnimType_None)
michael@0 1948 CSS_PROP_FONT(
michael@0 1949 font-variant-ligatures,
michael@0 1950 font_variant_ligatures,
michael@0 1951 FontVariantLigatures,
michael@0 1952 CSS_PROPERTY_PARSE_VALUE |
michael@0 1953 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1954 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1955 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1956 "layout.css.font-features.enabled",
michael@0 1957 0,
michael@0 1958 kFontVariantLigaturesKTable,
michael@0 1959 CSS_PROP_NO_OFFSET,
michael@0 1960 eStyleAnimType_None)
michael@0 1961 CSS_PROP_FONT(
michael@0 1962 font-variant-numeric,
michael@0 1963 font_variant_numeric,
michael@0 1964 FontVariantNumeric,
michael@0 1965 CSS_PROPERTY_PARSE_VALUE |
michael@0 1966 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1967 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1968 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1969 "layout.css.font-features.enabled",
michael@0 1970 0,
michael@0 1971 kFontVariantNumericKTable,
michael@0 1972 CSS_PROP_NO_OFFSET,
michael@0 1973 eStyleAnimType_None)
michael@0 1974 CSS_PROP_FONT(
michael@0 1975 font-variant-position,
michael@0 1976 font_variant_position,
michael@0 1977 FontVariantPosition,
michael@0 1978 CSS_PROPERTY_PARSE_VALUE |
michael@0 1979 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1980 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1981 "layout.css.font-features.enabled",
michael@0 1982 VARIANT_HMK,
michael@0 1983 kFontVariantPositionKTable,
michael@0 1984 CSS_PROP_NO_OFFSET,
michael@0 1985 eStyleAnimType_None)
michael@0 1986 CSS_PROP_FONT(
michael@0 1987 font-weight,
michael@0 1988 font_weight,
michael@0 1989 FontWeight,
michael@0 1990 CSS_PROPERTY_PARSE_VALUE |
michael@0 1991 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 1992 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 1993 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 1994 // NOTE: This property has range restrictions on interpolation!
michael@0 1995 "",
michael@0 1996 0,
michael@0 1997 kFontWeightKTable,
michael@0 1998 offsetof(nsStyleFont, mFont.weight),
michael@0 1999 eStyleAnimType_Custom)
michael@0 2000 CSS_PROP_UIRESET(
michael@0 2001 -moz-force-broken-image-icon,
michael@0 2002 force_broken_image_icon,
michael@0 2003 CSS_PROP_DOMPROP_PREFIXED(ForceBrokenImageIcon),
michael@0 2004 CSS_PROPERTY_PARSE_VALUE |
michael@0 2005 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 2006 "",
michael@0 2007 VARIANT_HI,
michael@0 2008 nullptr,
michael@0 2009 CSS_PROP_NO_OFFSET,
michael@0 2010 eStyleAnimType_None) // bug 58646
michael@0 2011 CSS_PROP_POSITION(
michael@0 2012 grid-auto-flow,
michael@0 2013 grid_auto_flow,
michael@0 2014 GridAutoFlow,
michael@0 2015 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2016 "layout.css.grid.enabled",
michael@0 2017 0,
michael@0 2018 kGridAutoFlowKTable,
michael@0 2019 CSS_PROP_NO_OFFSET,
michael@0 2020 eStyleAnimType_None)
michael@0 2021 CSS_PROP_POSITION(
michael@0 2022 grid-auto-columns,
michael@0 2023 grid_auto_columns,
michael@0 2024 GridAutoColumns,
michael@0 2025 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2026 CSS_PROPERTY_STORES_CALC,
michael@0 2027 "layout.css.grid.enabled",
michael@0 2028 0,
michael@0 2029 kGridTrackBreadthKTable,
michael@0 2030 CSS_PROP_NO_OFFSET,
michael@0 2031 eStyleAnimType_None)
michael@0 2032 CSS_PROP_POSITION(
michael@0 2033 grid-auto-rows,
michael@0 2034 grid_auto_rows,
michael@0 2035 GridAutoRows,
michael@0 2036 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2037 CSS_PROPERTY_STORES_CALC,
michael@0 2038 "layout.css.grid.enabled",
michael@0 2039 0,
michael@0 2040 kGridTrackBreadthKTable,
michael@0 2041 CSS_PROP_NO_OFFSET,
michael@0 2042 eStyleAnimType_None)
michael@0 2043 CSS_PROP_POSITION(
michael@0 2044 grid-auto-position,
michael@0 2045 grid_auto_position,
michael@0 2046 GridAutoPosition,
michael@0 2047 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2048 "layout.css.grid.enabled",
michael@0 2049 0,
michael@0 2050 nullptr,
michael@0 2051 CSS_PROP_NO_OFFSET,
michael@0 2052 eStyleAnimType_None)
michael@0 2053 CSS_PROP_POSITION(
michael@0 2054 grid-template-areas,
michael@0 2055 grid_template_areas,
michael@0 2056 GridTemplateAreas,
michael@0 2057 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2058 "layout.css.grid.enabled",
michael@0 2059 0,
michael@0 2060 nullptr,
michael@0 2061 CSS_PROP_NO_OFFSET,
michael@0 2062 eStyleAnimType_None)
michael@0 2063 CSS_PROP_POSITION(
michael@0 2064 grid-template-columns,
michael@0 2065 grid_template_columns,
michael@0 2066 GridTemplateColumns,
michael@0 2067 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2068 CSS_PROPERTY_STORES_CALC |
michael@0 2069 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2070 "layout.css.grid.enabled",
michael@0 2071 0,
michael@0 2072 kGridTrackBreadthKTable,
michael@0 2073 CSS_PROP_NO_OFFSET,
michael@0 2074 eStyleAnimType_None)
michael@0 2075 CSS_PROP_POSITION(
michael@0 2076 grid-template-rows,
michael@0 2077 grid_template_rows,
michael@0 2078 GridTemplateRows,
michael@0 2079 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2080 CSS_PROPERTY_STORES_CALC |
michael@0 2081 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2082 "layout.css.grid.enabled",
michael@0 2083 0,
michael@0 2084 kGridTrackBreadthKTable,
michael@0 2085 CSS_PROP_NO_OFFSET,
michael@0 2086 eStyleAnimType_None)
michael@0 2087 CSS_PROP_SHORTHAND(
michael@0 2088 grid-template,
michael@0 2089 grid_template,
michael@0 2090 GridTemplate,
michael@0 2091 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2092 "layout.css.grid.enabled")
michael@0 2093 CSS_PROP_SHORTHAND(
michael@0 2094 grid,
michael@0 2095 grid,
michael@0 2096 Grid,
michael@0 2097 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2098 "layout.css.grid.enabled")
michael@0 2099 CSS_PROP_POSITION(
michael@0 2100 grid-column-start,
michael@0 2101 grid_column_start,
michael@0 2102 GridColumnStart,
michael@0 2103 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2104 "layout.css.grid.enabled",
michael@0 2105 0,
michael@0 2106 nullptr,
michael@0 2107 CSS_PROP_NO_OFFSET,
michael@0 2108 eStyleAnimType_None)
michael@0 2109 CSS_PROP_POSITION(
michael@0 2110 grid-column-end,
michael@0 2111 grid_column_end,
michael@0 2112 GridColumnEnd,
michael@0 2113 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2114 "layout.css.grid.enabled",
michael@0 2115 0,
michael@0 2116 nullptr,
michael@0 2117 CSS_PROP_NO_OFFSET,
michael@0 2118 eStyleAnimType_None)
michael@0 2119 CSS_PROP_POSITION(
michael@0 2120 grid-row-start,
michael@0 2121 grid_row_start,
michael@0 2122 GridRowStart,
michael@0 2123 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2124 "layout.css.grid.enabled",
michael@0 2125 0,
michael@0 2126 nullptr,
michael@0 2127 CSS_PROP_NO_OFFSET,
michael@0 2128 eStyleAnimType_None)
michael@0 2129 CSS_PROP_POSITION(
michael@0 2130 grid-row-end,
michael@0 2131 grid_row_end,
michael@0 2132 GridRowEnd,
michael@0 2133 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2134 "layout.css.grid.enabled",
michael@0 2135 0,
michael@0 2136 nullptr,
michael@0 2137 CSS_PROP_NO_OFFSET,
michael@0 2138 eStyleAnimType_None)
michael@0 2139 CSS_PROP_SHORTHAND(
michael@0 2140 grid-column,
michael@0 2141 grid_column,
michael@0 2142 GridColumn,
michael@0 2143 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2144 "layout.css.grid.enabled")
michael@0 2145 CSS_PROP_SHORTHAND(
michael@0 2146 grid-row,
michael@0 2147 grid_row,
michael@0 2148 GridRow,
michael@0 2149 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2150 "layout.css.grid.enabled")
michael@0 2151 CSS_PROP_SHORTHAND(
michael@0 2152 grid-area,
michael@0 2153 grid_area,
michael@0 2154 GridArea,
michael@0 2155 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2156 "layout.css.grid.enabled")
michael@0 2157 CSS_PROP_POSITION(
michael@0 2158 height,
michael@0 2159 height,
michael@0 2160 Height,
michael@0 2161 CSS_PROPERTY_PARSE_VALUE |
michael@0 2162 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2163 CSS_PROPERTY_STORES_CALC |
michael@0 2164 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2165 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2166 "",
michael@0 2167 VARIANT_AHLP | VARIANT_CALC,
michael@0 2168 nullptr,
michael@0 2169 offsetof(nsStylePosition, mHeight),
michael@0 2170 eStyleAnimType_Coord)
michael@0 2171 CSS_PROP_VISIBILITY(
michael@0 2172 image-orientation,
michael@0 2173 image_orientation,
michael@0 2174 ImageOrientation,
michael@0 2175 CSS_PROPERTY_PARSE_VALUE |
michael@0 2176 CSS_PROPERTY_VALUE_PARSER_FUNCTION,
michael@0 2177 "layout.css.image-orientation.enabled",
michael@0 2178 0,
michael@0 2179 kImageOrientationKTable,
michael@0 2180 offsetof(nsStyleVisibility, mImageOrientation),
michael@0 2181 eStyleAnimType_None)
michael@0 2182 CSS_PROP_LIST(
michael@0 2183 -moz-image-region,
michael@0 2184 image_region,
michael@0 2185 CSS_PROP_DOMPROP_PREFIXED(ImageRegion),
michael@0 2186 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2187 "",
michael@0 2188 0,
michael@0 2189 nullptr,
michael@0 2190 offsetof(nsStyleList, mImageRegion),
michael@0 2191 eStyleAnimType_Custom)
michael@0 2192 CSS_PROP_UIRESET(
michael@0 2193 ime-mode,
michael@0 2194 ime_mode,
michael@0 2195 ImeMode,
michael@0 2196 CSS_PROPERTY_PARSE_VALUE,
michael@0 2197 "",
michael@0 2198 VARIANT_HK,
michael@0 2199 kIMEModeKTable,
michael@0 2200 CSS_PROP_NO_OFFSET,
michael@0 2201 eStyleAnimType_None)
michael@0 2202 CSS_PROP_POSITION(
michael@0 2203 left,
michael@0 2204 left,
michael@0 2205 Left,
michael@0 2206 CSS_PROPERTY_PARSE_VALUE |
michael@0 2207 CSS_PROPERTY_STORES_CALC |
michael@0 2208 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2209 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2210 "",
michael@0 2211 VARIANT_AHLP | VARIANT_CALC,
michael@0 2212 nullptr,
michael@0 2213 offsetof(nsStylePosition, mOffset),
michael@0 2214 eStyleAnimType_Sides_Left)
michael@0 2215 CSS_PROP_TEXT(
michael@0 2216 letter-spacing,
michael@0 2217 letter_spacing,
michael@0 2218 LetterSpacing,
michael@0 2219 CSS_PROPERTY_PARSE_VALUE |
michael@0 2220 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 2221 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2222 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 2223 "",
michael@0 2224 VARIANT_HL | VARIANT_NORMAL | VARIANT_CALC,
michael@0 2225 nullptr,
michael@0 2226 offsetof(nsStyleText, mLetterSpacing),
michael@0 2227 eStyleAnimType_Coord)
michael@0 2228 CSS_PROP_TEXT(
michael@0 2229 line-height,
michael@0 2230 line_height,
michael@0 2231 LineHeight,
michael@0 2232 CSS_PROPERTY_PARSE_VALUE |
michael@0 2233 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2234 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 2235 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2236 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2237 "",
michael@0 2238 VARIANT_HLPN | VARIANT_KEYWORD | VARIANT_NORMAL | VARIANT_SYSFONT,
michael@0 2239 kLineHeightKTable,
michael@0 2240 offsetof(nsStyleText, mLineHeight),
michael@0 2241 eStyleAnimType_Coord)
michael@0 2242 CSS_PROP_SHORTHAND(
michael@0 2243 list-style,
michael@0 2244 list_style,
michael@0 2245 ListStyle,
michael@0 2246 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2247 "")
michael@0 2248 CSS_PROP_LIST(
michael@0 2249 list-style-image,
michael@0 2250 list_style_image,
michael@0 2251 ListStyleImage,
michael@0 2252 CSS_PROPERTY_PARSE_VALUE |
michael@0 2253 CSS_PROPERTY_START_IMAGE_LOADS,
michael@0 2254 "",
michael@0 2255 VARIANT_HUO,
michael@0 2256 nullptr,
michael@0 2257 CSS_PROP_NO_OFFSET,
michael@0 2258 eStyleAnimType_None)
michael@0 2259 CSS_PROP_LIST(
michael@0 2260 list-style-position,
michael@0 2261 list_style_position,
michael@0 2262 ListStylePosition,
michael@0 2263 CSS_PROPERTY_PARSE_VALUE,
michael@0 2264 "",
michael@0 2265 VARIANT_HK,
michael@0 2266 kListStylePositionKTable,
michael@0 2267 CSS_PROP_NO_OFFSET,
michael@0 2268 eStyleAnimType_None)
michael@0 2269 CSS_PROP_LIST(
michael@0 2270 list-style-type,
michael@0 2271 list_style_type,
michael@0 2272 ListStyleType,
michael@0 2273 CSS_PROPERTY_PARSE_VALUE,
michael@0 2274 "",
michael@0 2275 VARIANT_HK,
michael@0 2276 kListStyleKTable,
michael@0 2277 CSS_PROP_NO_OFFSET,
michael@0 2278 eStyleAnimType_None)
michael@0 2279 CSS_PROP_SHORTHAND(
michael@0 2280 margin,
michael@0 2281 margin,
michael@0 2282 Margin,
michael@0 2283 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2284 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2285 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2286 "")
michael@0 2287 CSS_PROP_MARGIN(
michael@0 2288 margin-bottom,
michael@0 2289 margin_bottom,
michael@0 2290 MarginBottom,
michael@0 2291 CSS_PROPERTY_PARSE_VALUE |
michael@0 2292 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2293 CSS_PROPERTY_STORES_CALC |
michael@0 2294 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2295 CSS_PROPERTY_APPLIES_TO_PAGE_RULE |
michael@0 2296 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2297 "",
michael@0 2298 VARIANT_AHLP | VARIANT_CALC,
michael@0 2299 nullptr,
michael@0 2300 offsetof(nsStyleMargin, mMargin),
michael@0 2301 eStyleAnimType_Sides_Bottom)
michael@0 2302 CSS_PROP_SHORTHAND(
michael@0 2303 -moz-margin-end,
michael@0 2304 margin_end,
michael@0 2305 CSS_PROP_DOMPROP_PREFIXED(MarginEnd),
michael@0 2306 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2307 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2308 "")
michael@0 2309 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2310 CSS_PROP_MARGIN(
michael@0 2311 margin-end-value,
michael@0 2312 margin_end_value,
michael@0 2313 MarginEndValue,
michael@0 2314 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2315 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2316 CSS_PROPERTY_STORES_CALC |
michael@0 2317 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2318 "",
michael@0 2319 VARIANT_AHLP | VARIANT_CALC, // for internal use
michael@0 2320 nullptr,
michael@0 2321 CSS_PROP_NO_OFFSET,
michael@0 2322 eStyleAnimType_None)
michael@0 2323 #endif
michael@0 2324 CSS_PROP_SHORTHAND(
michael@0 2325 margin-left,
michael@0 2326 margin_left,
michael@0 2327 MarginLeft,
michael@0 2328 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2329 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2330 CSS_PROPERTY_APPLIES_TO_PAGE_RULE |
michael@0 2331 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2332 "")
michael@0 2333 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2334 CSS_PROP_MARGIN(
michael@0 2335 margin-left-value,
michael@0 2336 margin_left_value,
michael@0 2337 MarginLeftValue,
michael@0 2338 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2339 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2340 CSS_PROPERTY_REPORT_OTHER_NAME |
michael@0 2341 CSS_PROPERTY_STORES_CALC |
michael@0 2342 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2343 "",
michael@0 2344 VARIANT_AHLP | VARIANT_CALC, // for internal use
michael@0 2345 nullptr,
michael@0 2346 offsetof(nsStyleMargin, mMargin),
michael@0 2347 eStyleAnimType_Sides_Left)
michael@0 2348 CSS_PROP_MARGIN(
michael@0 2349 margin-left-ltr-source,
michael@0 2350 margin_left_ltr_source,
michael@0 2351 MarginLeftLTRSource,
michael@0 2352 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2353 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2354 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 2355 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2356 "",
michael@0 2357 0,
michael@0 2358 kBoxPropSourceKTable,
michael@0 2359 CSS_PROP_NO_OFFSET,
michael@0 2360 eStyleAnimType_None)
michael@0 2361 CSS_PROP_MARGIN(
michael@0 2362 margin-left-rtl-source,
michael@0 2363 margin_left_rtl_source,
michael@0 2364 MarginLeftRTLSource,
michael@0 2365 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2366 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2367 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 2368 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2369 "",
michael@0 2370 0,
michael@0 2371 kBoxPropSourceKTable,
michael@0 2372 CSS_PROP_NO_OFFSET,
michael@0 2373 eStyleAnimType_None)
michael@0 2374 #endif
michael@0 2375 CSS_PROP_SHORTHAND(
michael@0 2376 margin-right,
michael@0 2377 margin_right,
michael@0 2378 MarginRight,
michael@0 2379 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2380 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2381 CSS_PROPERTY_APPLIES_TO_PAGE_RULE |
michael@0 2382 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2383 "")
michael@0 2384 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2385 CSS_PROP_MARGIN(
michael@0 2386 margin-right-value,
michael@0 2387 margin_right_value,
michael@0 2388 MarginRightValue,
michael@0 2389 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2390 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2391 CSS_PROPERTY_REPORT_OTHER_NAME |
michael@0 2392 CSS_PROPERTY_STORES_CALC |
michael@0 2393 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2394 "",
michael@0 2395 VARIANT_AHLP | VARIANT_CALC, // for internal use
michael@0 2396 nullptr,
michael@0 2397 offsetof(nsStyleMargin, mMargin),
michael@0 2398 eStyleAnimType_Sides_Right)
michael@0 2399 CSS_PROP_MARGIN(
michael@0 2400 margin-right-ltr-source,
michael@0 2401 margin_right_ltr_source,
michael@0 2402 MarginRightLTRSource,
michael@0 2403 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2404 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2405 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 2406 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2407 "",
michael@0 2408 0,
michael@0 2409 kBoxPropSourceKTable,
michael@0 2410 CSS_PROP_NO_OFFSET,
michael@0 2411 eStyleAnimType_None)
michael@0 2412 CSS_PROP_MARGIN(
michael@0 2413 margin-right-rtl-source,
michael@0 2414 margin_right_rtl_source,
michael@0 2415 MarginRightRTLSource,
michael@0 2416 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2417 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2418 CSS_PROPERTY_DIRECTIONAL_SOURCE |
michael@0 2419 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2420 "",
michael@0 2421 0,
michael@0 2422 kBoxPropSourceKTable,
michael@0 2423 CSS_PROP_NO_OFFSET,
michael@0 2424 eStyleAnimType_None)
michael@0 2425 #endif
michael@0 2426 CSS_PROP_SHORTHAND(
michael@0 2427 -moz-margin-start,
michael@0 2428 margin_start,
michael@0 2429 CSS_PROP_DOMPROP_PREFIXED(MarginStart),
michael@0 2430 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2431 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2432 "")
michael@0 2433 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2434 CSS_PROP_MARGIN(
michael@0 2435 margin-start-value,
michael@0 2436 margin_start_value,
michael@0 2437 MarginStartValue,
michael@0 2438 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2439 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2440 CSS_PROPERTY_STORES_CALC |
michael@0 2441 CSS_PROPERTY_APPLIES_TO_PAGE_RULE,
michael@0 2442 "",
michael@0 2443 VARIANT_AHLP | VARIANT_CALC, // for internal use
michael@0 2444 nullptr,
michael@0 2445 CSS_PROP_NO_OFFSET,
michael@0 2446 eStyleAnimType_None)
michael@0 2447 #endif
michael@0 2448 CSS_PROP_MARGIN(
michael@0 2449 margin-top,
michael@0 2450 margin_top,
michael@0 2451 MarginTop,
michael@0 2452 CSS_PROPERTY_PARSE_VALUE |
michael@0 2453 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2454 CSS_PROPERTY_STORES_CALC |
michael@0 2455 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2456 CSS_PROPERTY_APPLIES_TO_PAGE_RULE |
michael@0 2457 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2458 "",
michael@0 2459 VARIANT_AHLP | VARIANT_CALC,
michael@0 2460 nullptr,
michael@0 2461 offsetof(nsStyleMargin, mMargin),
michael@0 2462 eStyleAnimType_Sides_Top)
michael@0 2463 CSS_PROP_CONTENT(
michael@0 2464 marker-offset,
michael@0 2465 marker_offset,
michael@0 2466 MarkerOffset,
michael@0 2467 CSS_PROPERTY_PARSE_VALUE,
michael@0 2468 "",
michael@0 2469 VARIANT_AHL | VARIANT_CALC,
michael@0 2470 nullptr,
michael@0 2471 offsetof(nsStyleContent, mMarkerOffset),
michael@0 2472 eStyleAnimType_Coord)
michael@0 2473 CSS_PROP_BACKENDONLY(
michael@0 2474 marks,
michael@0 2475 marks,
michael@0 2476 Marks,
michael@0 2477 CSS_PROPERTY_PARSE_VALUE |
michael@0 2478 CSS_PROPERTY_VALUE_PARSER_FUNCTION,
michael@0 2479 "",
michael@0 2480 0,
michael@0 2481 kPageMarksKTable)
michael@0 2482 CSS_PROP_POSITION(
michael@0 2483 max-height,
michael@0 2484 max_height,
michael@0 2485 MaxHeight,
michael@0 2486 CSS_PROPERTY_PARSE_VALUE |
michael@0 2487 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2488 CSS_PROPERTY_STORES_CALC |
michael@0 2489 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2490 "",
michael@0 2491 VARIANT_HLPO | VARIANT_CALC,
michael@0 2492 nullptr,
michael@0 2493 offsetof(nsStylePosition, mMaxHeight),
michael@0 2494 eStyleAnimType_Coord)
michael@0 2495 CSS_PROP_POSITION(
michael@0 2496 max-width,
michael@0 2497 max_width,
michael@0 2498 MaxWidth,
michael@0 2499 CSS_PROPERTY_PARSE_VALUE |
michael@0 2500 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2501 CSS_PROPERTY_STORES_CALC |
michael@0 2502 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2503 "",
michael@0 2504 VARIANT_HKLPO | VARIANT_CALC,
michael@0 2505 kWidthKTable,
michael@0 2506 offsetof(nsStylePosition, mMaxWidth),
michael@0 2507 eStyleAnimType_Coord)
michael@0 2508 CSS_PROP_POSITION(
michael@0 2509 min-height,
michael@0 2510 min_height,
michael@0 2511 MinHeight,
michael@0 2512 CSS_PROPERTY_PARSE_VALUE |
michael@0 2513 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2514 CSS_PROPERTY_STORES_CALC |
michael@0 2515 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2516 "",
michael@0 2517 VARIANT_HLP | VARIANT_CALC,
michael@0 2518 nullptr,
michael@0 2519 offsetof(nsStylePosition, mMinHeight),
michael@0 2520 eStyleAnimType_Coord)
michael@0 2521 CSS_PROP_POSITION(
michael@0 2522 min-width,
michael@0 2523 min_width,
michael@0 2524 MinWidth,
michael@0 2525 CSS_PROPERTY_PARSE_VALUE |
michael@0 2526 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2527 CSS_PROPERTY_STORES_CALC |
michael@0 2528 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2529 "",
michael@0 2530 VARIANT_HKLP | VARIANT_CALC,
michael@0 2531 kWidthKTable,
michael@0 2532 offsetof(nsStylePosition, mMinWidth),
michael@0 2533 eStyleAnimType_Coord)
michael@0 2534 CSS_PROP_DISPLAY(
michael@0 2535 mix-blend-mode,
michael@0 2536 mix_blend_mode,
michael@0 2537 MixBlendMode,
michael@0 2538 CSS_PROPERTY_PARSE_VALUE |
michael@0 2539 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 2540 "layout.css.mix-blend-mode.enabled",
michael@0 2541 VARIANT_HK,
michael@0 2542 kBlendModeKTable,
michael@0 2543 CSS_PROP_NO_OFFSET,
michael@0 2544 eStyleAnimType_None)
michael@0 2545 CSS_PROP_DISPLAY(
michael@0 2546 opacity,
michael@0 2547 opacity,
michael@0 2548 Opacity,
michael@0 2549 CSS_PROPERTY_PARSE_VALUE |
michael@0 2550 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2551 "",
michael@0 2552 VARIANT_HN,
michael@0 2553 nullptr,
michael@0 2554 offsetof(nsStyleDisplay, mOpacity),
michael@0 2555 eStyleAnimType_float)
michael@0 2556 CSS_PROP_DISPLAY(
michael@0 2557 -moz-orient,
michael@0 2558 orient,
michael@0 2559 CSS_PROP_DOMPROP_PREFIXED(Orient),
michael@0 2560 CSS_PROPERTY_PARSE_VALUE,
michael@0 2561 "",
michael@0 2562 VARIANT_HK,
michael@0 2563 kOrientKTable,
michael@0 2564 CSS_PROP_NO_OFFSET,
michael@0 2565 eStyleAnimType_None)
michael@0 2566 CSS_PROP_BACKENDONLY(
michael@0 2567 orphans,
michael@0 2568 orphans,
michael@0 2569 Orphans,
michael@0 2570 CSS_PROPERTY_PARSE_VALUE |
michael@0 2571 CSS_PROPERTY_VALUE_AT_LEAST_ONE,
michael@0 2572 "",
michael@0 2573 VARIANT_HI,
michael@0 2574 nullptr)
michael@0 2575 CSS_PROP_SHORTHAND(
michael@0 2576 outline,
michael@0 2577 outline,
michael@0 2578 Outline,
michael@0 2579 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2580 "")
michael@0 2581 CSS_PROP_OUTLINE(
michael@0 2582 outline-color,
michael@0 2583 outline_color,
michael@0 2584 OutlineColor,
michael@0 2585 CSS_PROPERTY_PARSE_VALUE |
michael@0 2586 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 2587 "",
michael@0 2588 VARIANT_HCK,
michael@0 2589 kOutlineColorKTable,
michael@0 2590 CSS_PROP_NO_OFFSET,
michael@0 2591 eStyleAnimType_Custom)
michael@0 2592 CSS_PROP_OUTLINE(
michael@0 2593 outline-style,
michael@0 2594 outline_style,
michael@0 2595 OutlineStyle,
michael@0 2596 CSS_PROPERTY_PARSE_VALUE,
michael@0 2597 "",
michael@0 2598 VARIANT_HK,
michael@0 2599 kOutlineStyleKTable,
michael@0 2600 CSS_PROP_NO_OFFSET,
michael@0 2601 eStyleAnimType_None)
michael@0 2602 CSS_PROP_OUTLINE(
michael@0 2603 outline-width,
michael@0 2604 outline_width,
michael@0 2605 OutlineWidth,
michael@0 2606 CSS_PROPERTY_PARSE_VALUE |
michael@0 2607 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 2608 "",
michael@0 2609 VARIANT_HKL | VARIANT_CALC,
michael@0 2610 kBorderWidthKTable,
michael@0 2611 offsetof(nsStyleOutline, mOutlineWidth),
michael@0 2612 eStyleAnimType_Coord)
michael@0 2613 CSS_PROP_OUTLINE(
michael@0 2614 outline-offset,
michael@0 2615 outline_offset,
michael@0 2616 OutlineOffset,
michael@0 2617 CSS_PROPERTY_PARSE_VALUE,
michael@0 2618 "",
michael@0 2619 VARIANT_HL | VARIANT_CALC,
michael@0 2620 nullptr,
michael@0 2621 offsetof(nsStyleOutline, mOutlineOffset),
michael@0 2622 eStyleAnimType_nscoord)
michael@0 2623 CSS_PROP_SHORTHAND(
michael@0 2624 overflow,
michael@0 2625 overflow,
michael@0 2626 Overflow,
michael@0 2627 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2628 "")
michael@0 2629 CSS_PROP_DISPLAY(
michael@0 2630 overflow-clip-box,
michael@0 2631 overflow_clip_box,
michael@0 2632 OverflowClipBox,
michael@0 2633 CSS_PROPERTY_PARSE_VALUE |
michael@0 2634 CSS_PROPERTY_ALWAYS_ENABLED_IN_UA_SHEETS |
michael@0 2635 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2636 "layout.css.overflow-clip-box.enabled",
michael@0 2637 VARIANT_HK,
michael@0 2638 kOverflowClipBoxKTable,
michael@0 2639 CSS_PROP_NO_OFFSET,
michael@0 2640 eStyleAnimType_None)
michael@0 2641 CSS_PROP_DISPLAY(
michael@0 2642 overflow-x,
michael@0 2643 overflow_x,
michael@0 2644 OverflowX,
michael@0 2645 CSS_PROPERTY_PARSE_VALUE |
michael@0 2646 // This is required by the UA stylesheet and can't be overridden.
michael@0 2647 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2648 "",
michael@0 2649 VARIANT_HK,
michael@0 2650 kOverflowSubKTable,
michael@0 2651 CSS_PROP_NO_OFFSET,
michael@0 2652 eStyleAnimType_None)
michael@0 2653 CSS_PROP_DISPLAY(
michael@0 2654 overflow-y,
michael@0 2655 overflow_y,
michael@0 2656 OverflowY,
michael@0 2657 CSS_PROPERTY_PARSE_VALUE |
michael@0 2658 // This is required by the UA stylesheet and can't be overridden.
michael@0 2659 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2660 "",
michael@0 2661 VARIANT_HK,
michael@0 2662 kOverflowSubKTable,
michael@0 2663 CSS_PROP_NO_OFFSET,
michael@0 2664 eStyleAnimType_None)
michael@0 2665 CSS_PROP_SHORTHAND(
michael@0 2666 padding,
michael@0 2667 padding,
michael@0 2668 Padding,
michael@0 2669 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2670 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 2671 "")
michael@0 2672 CSS_PROP_PADDING(
michael@0 2673 padding-bottom,
michael@0 2674 padding_bottom,
michael@0 2675 PaddingBottom,
michael@0 2676 CSS_PROPERTY_PARSE_VALUE |
michael@0 2677 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2678 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2679 // This is required by the UA stylesheet and can't be overridden.
michael@0 2680 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2681 CSS_PROPERTY_STORES_CALC |
michael@0 2682 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2683 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2684 "",
michael@0 2685 VARIANT_HLP | VARIANT_CALC,
michael@0 2686 nullptr,
michael@0 2687 offsetof(nsStylePadding, mPadding),
michael@0 2688 eStyleAnimType_Sides_Bottom)
michael@0 2689 CSS_PROP_SHORTHAND(
michael@0 2690 -moz-padding-end,
michael@0 2691 padding_end,
michael@0 2692 CSS_PROP_DOMPROP_PREFIXED(PaddingEnd),
michael@0 2693 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2694 "")
michael@0 2695 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2696 CSS_PROP_PADDING(
michael@0 2697 padding-end-value,
michael@0 2698 padding_end_value,
michael@0 2699 PaddingEndValue,
michael@0 2700 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2701 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2702 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2703 // This is required by the UA stylesheet and can't be overridden.
michael@0 2704 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2705 CSS_PROPERTY_STORES_CALC,
michael@0 2706 "",
michael@0 2707 VARIANT_HLP | VARIANT_CALC, // for internal use
michael@0 2708 nullptr,
michael@0 2709 CSS_PROP_NO_OFFSET,
michael@0 2710 eStyleAnimType_None)
michael@0 2711 #endif
michael@0 2712 CSS_PROP_SHORTHAND(
michael@0 2713 padding-left,
michael@0 2714 padding_left,
michael@0 2715 PaddingLeft,
michael@0 2716 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2717 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2718 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2719 "")
michael@0 2720 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2721 CSS_PROP_PADDING(
michael@0 2722 padding-left-value,
michael@0 2723 padding_left_value,
michael@0 2724 PaddingLeftValue,
michael@0 2725 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2726 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2727 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2728 // This is required by the UA stylesheet and can't be overridden.
michael@0 2729 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2730 CSS_PROPERTY_REPORT_OTHER_NAME |
michael@0 2731 CSS_PROPERTY_STORES_CALC,
michael@0 2732 "",
michael@0 2733 VARIANT_HLP | VARIANT_CALC, // for internal use
michael@0 2734 nullptr,
michael@0 2735 offsetof(nsStylePadding, mPadding),
michael@0 2736 eStyleAnimType_Sides_Left)
michael@0 2737 CSS_PROP_PADDING(
michael@0 2738 padding-left-ltr-source,
michael@0 2739 padding_left_ltr_source,
michael@0 2740 PaddingLeftLTRSource,
michael@0 2741 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2742 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2743 // This is required by the UA stylesheet and can't be overridden.
michael@0 2744 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2745 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 2746 "",
michael@0 2747 0,
michael@0 2748 kBoxPropSourceKTable,
michael@0 2749 CSS_PROP_NO_OFFSET,
michael@0 2750 eStyleAnimType_None)
michael@0 2751 CSS_PROP_PADDING(
michael@0 2752 padding-left-rtl-source,
michael@0 2753 padding_left_rtl_source,
michael@0 2754 PaddingLeftRTLSource,
michael@0 2755 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2756 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2757 // This is required by the UA stylesheet and can't be overridden.
michael@0 2758 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2759 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 2760 "",
michael@0 2761 0,
michael@0 2762 kBoxPropSourceKTable,
michael@0 2763 CSS_PROP_NO_OFFSET,
michael@0 2764 eStyleAnimType_None)
michael@0 2765 #endif
michael@0 2766 CSS_PROP_SHORTHAND(
michael@0 2767 padding-right,
michael@0 2768 padding_right,
michael@0 2769 PaddingRight,
michael@0 2770 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 2771 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2772 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2773 "")
michael@0 2774 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2775 CSS_PROP_PADDING(
michael@0 2776 padding-right-value,
michael@0 2777 padding_right_value,
michael@0 2778 PaddingRightValue,
michael@0 2779 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2780 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2781 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2782 // This is required by the UA stylesheet and can't be overridden.
michael@0 2783 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2784 CSS_PROPERTY_REPORT_OTHER_NAME |
michael@0 2785 CSS_PROPERTY_STORES_CALC,
michael@0 2786 "",
michael@0 2787 VARIANT_HLP | VARIANT_CALC, // for internal use
michael@0 2788 nullptr,
michael@0 2789 offsetof(nsStylePadding, mPadding),
michael@0 2790 eStyleAnimType_Sides_Right)
michael@0 2791 CSS_PROP_PADDING(
michael@0 2792 padding-right-ltr-source,
michael@0 2793 padding_right_ltr_source,
michael@0 2794 PaddingRightLTRSource,
michael@0 2795 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2796 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2797 // This is required by the UA stylesheet and can't be overridden.
michael@0 2798 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2799 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 2800 "",
michael@0 2801 0,
michael@0 2802 kBoxPropSourceKTable,
michael@0 2803 CSS_PROP_NO_OFFSET,
michael@0 2804 eStyleAnimType_None)
michael@0 2805 CSS_PROP_PADDING(
michael@0 2806 padding-right-rtl-source,
michael@0 2807 padding_right_rtl_source,
michael@0 2808 PaddingRightRTLSource,
michael@0 2809 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2810 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2811 CSS_PROPERTY_DIRECTIONAL_SOURCE,
michael@0 2812 "",
michael@0 2813 0,
michael@0 2814 kBoxPropSourceKTable,
michael@0 2815 CSS_PROP_NO_OFFSET,
michael@0 2816 eStyleAnimType_None)
michael@0 2817 #endif
michael@0 2818 CSS_PROP_SHORTHAND(
michael@0 2819 -moz-padding-start,
michael@0 2820 padding_start,
michael@0 2821 CSS_PROP_DOMPROP_PREFIXED(PaddingStart),
michael@0 2822 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2823 "")
michael@0 2824 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 2825 CSS_PROP_PADDING(
michael@0 2826 padding-start-value,
michael@0 2827 padding_start_value,
michael@0 2828 PaddingStartValue,
michael@0 2829 CSS_PROPERTY_PARSE_INACCESSIBLE |
michael@0 2830 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2831 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2832 // This is required by the UA stylesheet and can't be overridden.
michael@0 2833 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2834 CSS_PROPERTY_STORES_CALC,
michael@0 2835 "",
michael@0 2836 VARIANT_HLP | VARIANT_CALC, // for internal use
michael@0 2837 nullptr,
michael@0 2838 CSS_PROP_NO_OFFSET,
michael@0 2839 eStyleAnimType_None)
michael@0 2840 #endif
michael@0 2841 CSS_PROP_PADDING(
michael@0 2842 padding-top,
michael@0 2843 padding_top,
michael@0 2844 PaddingTop,
michael@0 2845 CSS_PROPERTY_PARSE_VALUE |
michael@0 2846 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 2847 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER |
michael@0 2848 // This is required by the UA stylesheet and can't be overridden.
michael@0 2849 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 2850 CSS_PROPERTY_STORES_CALC |
michael@0 2851 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2852 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2853 "",
michael@0 2854 VARIANT_HLP | VARIANT_CALC,
michael@0 2855 nullptr,
michael@0 2856 offsetof(nsStylePadding, mPadding),
michael@0 2857 eStyleAnimType_Sides_Top)
michael@0 2858 CSS_PROP_BACKENDONLY(
michael@0 2859 page,
michael@0 2860 page,
michael@0 2861 Page,
michael@0 2862 CSS_PROPERTY_PARSE_VALUE,
michael@0 2863 "",
michael@0 2864 VARIANT_AUTO | VARIANT_IDENTIFIER,
michael@0 2865 nullptr)
michael@0 2866 CSS_PROP_DISPLAY(
michael@0 2867 page-break-after,
michael@0 2868 page_break_after,
michael@0 2869 PageBreakAfter,
michael@0 2870 CSS_PROPERTY_PARSE_VALUE,
michael@0 2871 "",
michael@0 2872 VARIANT_HK,
michael@0 2873 kPageBreakKTable,
michael@0 2874 CSS_PROP_NO_OFFSET,
michael@0 2875 eStyleAnimType_None) // temp fix for bug 24000
michael@0 2876 CSS_PROP_DISPLAY(
michael@0 2877 page-break-before,
michael@0 2878 page_break_before,
michael@0 2879 PageBreakBefore,
michael@0 2880 CSS_PROPERTY_PARSE_VALUE,
michael@0 2881 "",
michael@0 2882 VARIANT_HK,
michael@0 2883 kPageBreakKTable,
michael@0 2884 CSS_PROP_NO_OFFSET,
michael@0 2885 eStyleAnimType_None) // temp fix for bug 24000
michael@0 2886 CSS_PROP_DISPLAY(
michael@0 2887 page-break-inside,
michael@0 2888 page_break_inside,
michael@0 2889 PageBreakInside,
michael@0 2890 CSS_PROPERTY_PARSE_VALUE,
michael@0 2891 "",
michael@0 2892 VARIANT_HK,
michael@0 2893 kPageBreakInsideKTable,
michael@0 2894 CSS_PROP_NO_OFFSET,
michael@0 2895 eStyleAnimType_None)
michael@0 2896 CSS_PROP_SVG(
michael@0 2897 paint-order,
michael@0 2898 paint_order,
michael@0 2899 PaintOrder,
michael@0 2900 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2901 "svg.paint-order.enabled",
michael@0 2902 0,
michael@0 2903 nullptr,
michael@0 2904 CSS_PROP_NO_OFFSET,
michael@0 2905 eStyleAnimType_None)
michael@0 2906 CSS_PROP_VISIBILITY(
michael@0 2907 pointer-events,
michael@0 2908 pointer_events,
michael@0 2909 PointerEvents,
michael@0 2910 CSS_PROPERTY_PARSE_VALUE |
michael@0 2911 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2912 "",
michael@0 2913 VARIANT_HK,
michael@0 2914 kPointerEventsKTable,
michael@0 2915 offsetof(nsStyleVisibility, mPointerEvents),
michael@0 2916 eStyleAnimType_EnumU8)
michael@0 2917 CSS_PROP_DISPLAY(
michael@0 2918 position,
michael@0 2919 position,
michael@0 2920 Position,
michael@0 2921 CSS_PROPERTY_PARSE_VALUE |
michael@0 2922 // For position: sticky
michael@0 2923 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 2924 "",
michael@0 2925 VARIANT_HK,
michael@0 2926 kPositionKTable,
michael@0 2927 CSS_PROP_NO_OFFSET,
michael@0 2928 eStyleAnimType_None)
michael@0 2929 CSS_PROP_QUOTES(
michael@0 2930 quotes,
michael@0 2931 quotes,
michael@0 2932 Quotes,
michael@0 2933 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2934 "",
michael@0 2935 0,
michael@0 2936 nullptr,
michael@0 2937 CSS_PROP_NO_OFFSET,
michael@0 2938 eStyleAnimType_None)
michael@0 2939 CSS_PROP_DISPLAY(
michael@0 2940 resize,
michael@0 2941 resize,
michael@0 2942 Resize,
michael@0 2943 CSS_PROPERTY_PARSE_VALUE |
michael@0 2944 // This is allowed because the UA stylesheet sets 'resize: both;' on
michael@0 2945 // textarea and we need to disable this for the placeholder
michael@0 2946 // pseudo-element.
michael@0 2947 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2948 "",
michael@0 2949 VARIANT_HK,
michael@0 2950 kResizeKTable,
michael@0 2951 CSS_PROP_NO_OFFSET,
michael@0 2952 eStyleAnimType_None)
michael@0 2953 CSS_PROP_POSITION(
michael@0 2954 right,
michael@0 2955 right,
michael@0 2956 Right,
michael@0 2957 CSS_PROPERTY_PARSE_VALUE |
michael@0 2958 CSS_PROPERTY_STORES_CALC |
michael@0 2959 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 2960 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 2961 "",
michael@0 2962 VARIANT_AHLP | VARIANT_CALC,
michael@0 2963 nullptr,
michael@0 2964 offsetof(nsStylePosition, mOffset),
michael@0 2965 eStyleAnimType_Sides_Right)
michael@0 2966 CSS_PROP_BACKENDONLY(
michael@0 2967 size,
michael@0 2968 size,
michael@0 2969 Size,
michael@0 2970 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 2971 "",
michael@0 2972 0,
michael@0 2973 kPageSizeKTable)
michael@0 2974 CSS_PROP_TABLE(
michael@0 2975 table-layout,
michael@0 2976 table_layout,
michael@0 2977 TableLayout,
michael@0 2978 CSS_PROPERTY_PARSE_VALUE,
michael@0 2979 "",
michael@0 2980 VARIANT_HK,
michael@0 2981 kTableLayoutKTable,
michael@0 2982 CSS_PROP_NO_OFFSET,
michael@0 2983 eStyleAnimType_None)
michael@0 2984 CSS_PROP_TEXT(
michael@0 2985 text-align,
michael@0 2986 text_align,
michael@0 2987 TextAlign,
michael@0 2988 CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 2989 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 2990 "",
michael@0 2991 // When we support aligning on a string, we can parse text-align
michael@0 2992 // as a string....
michael@0 2993 VARIANT_HK /* | VARIANT_STRING */,
michael@0 2994 kTextAlignKTable,
michael@0 2995 CSS_PROP_NO_OFFSET,
michael@0 2996 eStyleAnimType_None)
michael@0 2997 CSS_PROP_TEXT(
michael@0 2998 -moz-text-align-last,
michael@0 2999 text_align_last,
michael@0 3000 CSS_PROP_DOMPROP_PREFIXED(TextAlignLast),
michael@0 3001 CSS_PROPERTY_PARSE_VALUE | CSS_PROPERTY_VALUE_PARSER_FUNCTION,
michael@0 3002 "",
michael@0 3003 VARIANT_HK,
michael@0 3004 kTextAlignLastKTable,
michael@0 3005 offsetof(nsStyleText, mTextAlignLast),
michael@0 3006 eStyleAnimType_None)
michael@0 3007 CSS_PROP_SHORTHAND(
michael@0 3008 text-decoration,
michael@0 3009 text_decoration,
michael@0 3010 TextDecoration,
michael@0 3011 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 3012 "")
michael@0 3013 CSS_PROP_TEXT(
michael@0 3014 text-combine-upright,
michael@0 3015 text_combine_upright,
michael@0 3016 TextCombineUpright,
michael@0 3017 CSS_PROPERTY_PARSE_VALUE |
michael@0 3018 CSS_PROPERTY_VALUE_PARSER_FUNCTION,
michael@0 3019 "layout.css.vertical-text.enabled",
michael@0 3020 0,
michael@0 3021 kTextCombineUprightKTable,
michael@0 3022 offsetof(nsStyleText, mTextCombineUpright),
michael@0 3023 eStyleAnimType_EnumU8)
michael@0 3024 CSS_PROP_TEXTRESET(
michael@0 3025 -moz-text-decoration-color,
michael@0 3026 text_decoration_color,
michael@0 3027 CSS_PROP_DOMPROP_PREFIXED(TextDecorationColor),
michael@0 3028 CSS_PROPERTY_PARSE_VALUE |
michael@0 3029 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3030 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 3031 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 3032 "",
michael@0 3033 VARIANT_HCK,
michael@0 3034 kBorderColorKTable,
michael@0 3035 CSS_PROP_NO_OFFSET,
michael@0 3036 eStyleAnimType_Custom)
michael@0 3037 CSS_PROP_TEXTRESET(
michael@0 3038 -moz-text-decoration-line,
michael@0 3039 text_decoration_line,
michael@0 3040 CSS_PROP_DOMPROP_PREFIXED(TextDecorationLine),
michael@0 3041 CSS_PROPERTY_PARSE_VALUE |
michael@0 3042 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 3043 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3044 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 3045 "",
michael@0 3046 0,
michael@0 3047 kTextDecorationLineKTable,
michael@0 3048 offsetof(nsStyleTextReset, mTextDecorationLine),
michael@0 3049 eStyleAnimType_EnumU8)
michael@0 3050 CSS_PROP_TEXTRESET(
michael@0 3051 -moz-text-decoration-style,
michael@0 3052 text_decoration_style,
michael@0 3053 CSS_PROP_DOMPROP_PREFIXED(TextDecorationStyle),
michael@0 3054 CSS_PROPERTY_PARSE_VALUE |
michael@0 3055 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3056 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 3057 "",
michael@0 3058 VARIANT_HK,
michael@0 3059 kTextDecorationStyleKTable,
michael@0 3060 CSS_PROP_NO_OFFSET,
michael@0 3061 eStyleAnimType_Custom)
michael@0 3062 CSS_PROP_TEXT(
michael@0 3063 text-indent,
michael@0 3064 text_indent,
michael@0 3065 TextIndent,
michael@0 3066 CSS_PROPERTY_PARSE_VALUE |
michael@0 3067 CSS_PROPERTY_STORES_CALC |
michael@0 3068 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3069 "",
michael@0 3070 VARIANT_HLP | VARIANT_CALC,
michael@0 3071 nullptr,
michael@0 3072 offsetof(nsStyleText, mTextIndent),
michael@0 3073 eStyleAnimType_Coord)
michael@0 3074 CSS_PROP_TEXT(
michael@0 3075 text-orientation,
michael@0 3076 text_orientation,
michael@0 3077 TextOrientation,
michael@0 3078 CSS_PROPERTY_PARSE_VALUE,
michael@0 3079 "layout.css.vertical-text.enabled",
michael@0 3080 VARIANT_HK,
michael@0 3081 kTextOrientationKTable,
michael@0 3082 offsetof(nsStyleText, mTextOrientation),
michael@0 3083 eStyleAnimType_EnumU8)
michael@0 3084 CSS_PROP_TEXTRESET(
michael@0 3085 text-overflow,
michael@0 3086 text_overflow,
michael@0 3087 TextOverflow,
michael@0 3088 CSS_PROPERTY_PARSE_VALUE |
michael@0 3089 CSS_PROPERTY_VALUE_PARSER_FUNCTION |
michael@0 3090 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 3091 "",
michael@0 3092 0,
michael@0 3093 kTextOverflowKTable,
michael@0 3094 offsetof(nsStyleTextReset, mTextOverflow),
michael@0 3095 eStyleAnimType_None)
michael@0 3096 CSS_PROP_TEXT(
michael@0 3097 text-shadow,
michael@0 3098 text_shadow,
michael@0 3099 TextShadow,
michael@0 3100 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3101 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3102 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 3103 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 3104 CSS_PROPERTY_IGNORED_WHEN_COLORS_DISABLED,
michael@0 3105 // NOTE: some components must be nonnegative
michael@0 3106 "",
michael@0 3107 0,
michael@0 3108 nullptr,
michael@0 3109 offsetof(nsStyleText, mTextShadow),
michael@0 3110 eStyleAnimType_Shadow)
michael@0 3111 CSS_PROP_TEXT(
michael@0 3112 -moz-text-size-adjust,
michael@0 3113 text_size_adjust,
michael@0 3114 CSS_PROP_DOMPROP_PREFIXED(TextSizeAdjust),
michael@0 3115 CSS_PROPERTY_PARSE_VALUE,
michael@0 3116 "",
michael@0 3117 VARIANT_AUTO | VARIANT_NONE | VARIANT_INHERIT,
michael@0 3118 nullptr,
michael@0 3119 CSS_PROP_NO_OFFSET,
michael@0 3120 eStyleAnimType_None)
michael@0 3121 CSS_PROP_TEXT(
michael@0 3122 text-transform,
michael@0 3123 text_transform,
michael@0 3124 TextTransform,
michael@0 3125 CSS_PROPERTY_PARSE_VALUE |
michael@0 3126 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3127 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 3128 "",
michael@0 3129 VARIANT_HK,
michael@0 3130 kTextTransformKTable,
michael@0 3131 CSS_PROP_NO_OFFSET,
michael@0 3132 eStyleAnimType_None)
michael@0 3133 CSS_PROP_DISPLAY(
michael@0 3134 transform,
michael@0 3135 transform,
michael@0 3136 Transform,
michael@0 3137 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3138 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH |
michael@0 3139 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3140 "",
michael@0 3141 0,
michael@0 3142 nullptr,
michael@0 3143 offsetof(nsStyleDisplay, mSpecifiedTransform),
michael@0 3144 eStyleAnimType_Custom)
michael@0 3145 CSS_PROP_DISPLAY(
michael@0 3146 transform-origin,
michael@0 3147 transform_origin,
michael@0 3148 TransformOrigin,
michael@0 3149 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3150 CSS_PROPERTY_STORES_CALC |
michael@0 3151 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3152 "",
michael@0 3153 0,
michael@0 3154 kBackgroundPositionKTable,
michael@0 3155 CSS_PROP_NO_OFFSET,
michael@0 3156 eStyleAnimType_Custom)
michael@0 3157 CSS_PROP_DISPLAY(
michael@0 3158 perspective-origin,
michael@0 3159 perspective_origin,
michael@0 3160 PerspectiveOrigin,
michael@0 3161 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3162 CSS_PROPERTY_STORES_CALC |
michael@0 3163 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3164 "",
michael@0 3165 0,
michael@0 3166 kBackgroundPositionKTable,
michael@0 3167 CSS_PROP_NO_OFFSET,
michael@0 3168 eStyleAnimType_Custom)
michael@0 3169 CSS_PROP_DISPLAY(
michael@0 3170 perspective,
michael@0 3171 perspective,
michael@0 3172 Perspective,
michael@0 3173 CSS_PROPERTY_PARSE_VALUE |
michael@0 3174 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3175 "",
michael@0 3176 VARIANT_NONE | VARIANT_INHERIT | VARIANT_LENGTH | VARIANT_POSITIVE_DIMENSION,
michael@0 3177 nullptr,
michael@0 3178 offsetof(nsStyleDisplay, mChildPerspective),
michael@0 3179 eStyleAnimType_Coord)
michael@0 3180 CSS_PROP_DISPLAY(
michael@0 3181 transform-style,
michael@0 3182 transform_style,
michael@0 3183 TransformStyle,
michael@0 3184 CSS_PROPERTY_PARSE_VALUE |
michael@0 3185 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3186 "",
michael@0 3187 VARIANT_HK,
michael@0 3188 kTransformStyleKTable,
michael@0 3189 CSS_PROP_NO_OFFSET,
michael@0 3190 eStyleAnimType_None)
michael@0 3191 CSS_PROP_DISPLAY(
michael@0 3192 backface-visibility,
michael@0 3193 backface_visibility,
michael@0 3194 BackfaceVisibility,
michael@0 3195 CSS_PROPERTY_PARSE_VALUE,
michael@0 3196 "",
michael@0 3197 VARIANT_HK,
michael@0 3198 kBackfaceVisibilityKTable,
michael@0 3199 offsetof(nsStyleDisplay, mBackfaceVisibility),
michael@0 3200 eStyleAnimType_None)
michael@0 3201 CSS_PROP_POSITION(
michael@0 3202 top,
michael@0 3203 top,
michael@0 3204 Top,
michael@0 3205 CSS_PROPERTY_PARSE_VALUE |
michael@0 3206 CSS_PROPERTY_STORES_CALC |
michael@0 3207 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 3208 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3209 "",
michael@0 3210 VARIANT_AHLP | VARIANT_CALC,
michael@0 3211 nullptr,
michael@0 3212 offsetof(nsStylePosition, mOffset),
michael@0 3213 eStyleAnimType_Sides_Top)
michael@0 3214 CSS_PROP_DISPLAY(
michael@0 3215 touch-action,
michael@0 3216 touch_action,
michael@0 3217 TouchAction,
michael@0 3218 CSS_PROPERTY_PARSE_VALUE |
michael@0 3219 CSS_PROPERTY_VALUE_PARSER_FUNCTION,
michael@0 3220 "layout.css.touch_action.enabled",
michael@0 3221 VARIANT_HK,
michael@0 3222 kTouchActionKTable,
michael@0 3223 CSS_PROP_NO_OFFSET,
michael@0 3224 eStyleAnimType_None)
michael@0 3225 CSS_PROP_SHORTHAND(
michael@0 3226 transition,
michael@0 3227 transition,
michael@0 3228 Transition,
michael@0 3229 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 3230 "")
michael@0 3231 CSS_PROP_DISPLAY(
michael@0 3232 transition-delay,
michael@0 3233 transition_delay,
michael@0 3234 TransitionDelay,
michael@0 3235 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 3236 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 3237 "",
michael@0 3238 VARIANT_TIME, // used by list parsing
michael@0 3239 nullptr,
michael@0 3240 CSS_PROP_NO_OFFSET,
michael@0 3241 eStyleAnimType_None)
michael@0 3242 CSS_PROP_DISPLAY(
michael@0 3243 transition-duration,
michael@0 3244 transition_duration,
michael@0 3245 TransitionDuration,
michael@0 3246 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 3247 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 3248 "",
michael@0 3249 VARIANT_TIME | VARIANT_NONNEGATIVE_DIMENSION, // used by list parsing
michael@0 3250 nullptr,
michael@0 3251 CSS_PROP_NO_OFFSET,
michael@0 3252 eStyleAnimType_None)
michael@0 3253 CSS_PROP_DISPLAY(
michael@0 3254 transition-property,
michael@0 3255 transition_property,
michael@0 3256 TransitionProperty,
michael@0 3257 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3258 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 3259 "",
michael@0 3260 VARIANT_IDENTIFIER | VARIANT_NONE | VARIANT_ALL, // used only in shorthand
michael@0 3261 nullptr,
michael@0 3262 CSS_PROP_NO_OFFSET,
michael@0 3263 eStyleAnimType_None)
michael@0 3264 CSS_PROP_DISPLAY(
michael@0 3265 transition-timing-function,
michael@0 3266 transition_timing_function,
michael@0 3267 TransitionTimingFunction,
michael@0 3268 CSS_PROPERTY_PARSE_VALUE_LIST |
michael@0 3269 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 3270 "",
michael@0 3271 VARIANT_KEYWORD | VARIANT_TIMING_FUNCTION, // used by list parsing
michael@0 3272 kTransitionTimingFunctionKTable,
michael@0 3273 CSS_PROP_NO_OFFSET,
michael@0 3274 eStyleAnimType_None)
michael@0 3275 #ifndef CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
michael@0 3276 CSS_PROP_TEXTRESET(
michael@0 3277 unicode-bidi,
michael@0 3278 unicode_bidi,
michael@0 3279 UnicodeBidi,
michael@0 3280 CSS_PROPERTY_PARSE_VALUE,
michael@0 3281 "",
michael@0 3282 VARIANT_HK,
michael@0 3283 kUnicodeBidiKTable,
michael@0 3284 CSS_PROP_NO_OFFSET,
michael@0 3285 eStyleAnimType_None)
michael@0 3286 #endif // !defined(CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND)
michael@0 3287 CSS_PROP_USERINTERFACE(
michael@0 3288 -moz-user-focus,
michael@0 3289 user_focus,
michael@0 3290 CSS_PROP_DOMPROP_PREFIXED(UserFocus),
michael@0 3291 CSS_PROPERTY_PARSE_VALUE,
michael@0 3292 "",
michael@0 3293 VARIANT_HK,
michael@0 3294 kUserFocusKTable,
michael@0 3295 CSS_PROP_NO_OFFSET,
michael@0 3296 eStyleAnimType_None) // XXX bug 3935
michael@0 3297 CSS_PROP_USERINTERFACE(
michael@0 3298 -moz-user-input,
michael@0 3299 user_input,
michael@0 3300 CSS_PROP_DOMPROP_PREFIXED(UserInput),
michael@0 3301 CSS_PROPERTY_PARSE_VALUE,
michael@0 3302 "",
michael@0 3303 VARIANT_HK,
michael@0 3304 kUserInputKTable,
michael@0 3305 CSS_PROP_NO_OFFSET,
michael@0 3306 eStyleAnimType_None) // XXX ??? // XXX bug 3935
michael@0 3307 CSS_PROP_USERINTERFACE(
michael@0 3308 -moz-user-modify,
michael@0 3309 user_modify,
michael@0 3310 CSS_PROP_DOMPROP_PREFIXED(UserModify),
michael@0 3311 CSS_PROPERTY_PARSE_VALUE,
michael@0 3312 "",
michael@0 3313 VARIANT_HK,
michael@0 3314 kUserModifyKTable,
michael@0 3315 CSS_PROP_NO_OFFSET,
michael@0 3316 eStyleAnimType_None) // XXX bug 3935
michael@0 3317 CSS_PROP_UIRESET(
michael@0 3318 -moz-user-select,
michael@0 3319 user_select,
michael@0 3320 CSS_PROP_DOMPROP_PREFIXED(UserSelect),
michael@0 3321 CSS_PROPERTY_PARSE_VALUE,
michael@0 3322 "",
michael@0 3323 VARIANT_HK,
michael@0 3324 kUserSelectKTable,
michael@0 3325 CSS_PROP_NO_OFFSET,
michael@0 3326 eStyleAnimType_None) // XXX bug 3935
michael@0 3327 // NOTE: vertical-align is only supposed to apply to :first-letter when
michael@0 3328 // 'float' is 'none', but we don't worry about that since it has no
michael@0 3329 // effect otherwise
michael@0 3330 CSS_PROP_TEXTRESET(
michael@0 3331 vertical-align,
michael@0 3332 vertical_align,
michael@0 3333 VerticalAlign,
michael@0 3334 CSS_PROPERTY_PARSE_VALUE |
michael@0 3335 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3336 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 3337 CSS_PROPERTY_STORES_CALC |
michael@0 3338 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3339 "",
michael@0 3340 VARIANT_HKLP | VARIANT_CALC,
michael@0 3341 kVerticalAlignKTable,
michael@0 3342 offsetof(nsStyleTextReset, mVerticalAlign),
michael@0 3343 eStyleAnimType_Coord)
michael@0 3344 CSS_PROP_VISIBILITY(
michael@0 3345 visibility,
michael@0 3346 visibility,
michael@0 3347 Visibility,
michael@0 3348 CSS_PROPERTY_PARSE_VALUE,
michael@0 3349 "",
michael@0 3350 VARIANT_HK,
michael@0 3351 kVisibilityKTable,
michael@0 3352 offsetof(nsStyleVisibility, mVisible),
michael@0 3353 eStyleAnimType_EnumU8) // reflow for collapse
michael@0 3354 CSS_PROP_TEXT(
michael@0 3355 white-space,
michael@0 3356 white_space,
michael@0 3357 WhiteSpace,
michael@0 3358 CSS_PROPERTY_PARSE_VALUE |
michael@0 3359 // This is required by the UA stylesheet and can't be overridden.
michael@0 3360 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER,
michael@0 3361 "",
michael@0 3362 VARIANT_HK,
michael@0 3363 kWhitespaceKTable,
michael@0 3364 CSS_PROP_NO_OFFSET,
michael@0 3365 eStyleAnimType_None)
michael@0 3366 CSS_PROP_BACKENDONLY(
michael@0 3367 widows,
michael@0 3368 widows,
michael@0 3369 Widows,
michael@0 3370 CSS_PROPERTY_PARSE_VALUE |
michael@0 3371 CSS_PROPERTY_VALUE_AT_LEAST_ONE,
michael@0 3372 "",
michael@0 3373 VARIANT_HI,
michael@0 3374 nullptr)
michael@0 3375 CSS_PROP_POSITION(
michael@0 3376 width,
michael@0 3377 width,
michael@0 3378 Width,
michael@0 3379 CSS_PROPERTY_PARSE_VALUE |
michael@0 3380 CSS_PROPERTY_VALUE_NONNEGATIVE |
michael@0 3381 CSS_PROPERTY_STORES_CALC |
michael@0 3382 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK |
michael@0 3383 CSS_PROPERTY_GETCS_NEEDS_LAYOUT_FLUSH,
michael@0 3384 "",
michael@0 3385 VARIANT_AHKLP | VARIANT_CALC,
michael@0 3386 kWidthKTable,
michael@0 3387 offsetof(nsStylePosition, mWidth),
michael@0 3388 eStyleAnimType_Coord)
michael@0 3389 CSS_PROP_UIRESET(
michael@0 3390 -moz-window-shadow,
michael@0 3391 _moz_window_shadow,
michael@0 3392 CSS_PROP_DOMPROP_PREFIXED(WindowShadow),
michael@0 3393 CSS_PROPERTY_PARSE_VALUE,
michael@0 3394 "",
michael@0 3395 VARIANT_HK,
michael@0 3396 kWindowShadowKTable,
michael@0 3397 CSS_PROP_NO_OFFSET,
michael@0 3398 eStyleAnimType_None)
michael@0 3399 CSS_PROP_TEXT(
michael@0 3400 word-break,
michael@0 3401 word_break,
michael@0 3402 WordBreak,
michael@0 3403 CSS_PROPERTY_PARSE_VALUE,
michael@0 3404 "",
michael@0 3405 VARIANT_HK,
michael@0 3406 kWordBreakKTable,
michael@0 3407 offsetof(nsStyleText, mWordBreak),
michael@0 3408 eStyleAnimType_EnumU8)
michael@0 3409 CSS_PROP_TEXT(
michael@0 3410 word-spacing,
michael@0 3411 word_spacing,
michael@0 3412 WordSpacing,
michael@0 3413 CSS_PROPERTY_PARSE_VALUE |
michael@0 3414 CSS_PROPERTY_APPLIES_TO_FIRST_LETTER_AND_FIRST_LINE |
michael@0 3415 CSS_PROPERTY_APPLIES_TO_PLACEHOLDER |
michael@0 3416 CSS_PROPERTY_UNITLESS_LENGTH_QUIRK,
michael@0 3417 "",
michael@0 3418 VARIANT_HL | VARIANT_NORMAL | VARIANT_CALC,
michael@0 3419 nullptr,
michael@0 3420 offsetof(nsStyleText, mWordSpacing),
michael@0 3421 eStyleAnimType_nscoord)
michael@0 3422 CSS_PROP_TEXT(
michael@0 3423 word-wrap,
michael@0 3424 word_wrap,
michael@0 3425 WordWrap,
michael@0 3426 CSS_PROPERTY_PARSE_VALUE,
michael@0 3427 "",
michael@0 3428 VARIANT_HK,
michael@0 3429 kWordWrapKTable,
michael@0 3430 CSS_PROP_NO_OFFSET,
michael@0 3431 eStyleAnimType_None)
michael@0 3432 CSS_PROP_TEXT(
michael@0 3433 -moz-hyphens,
michael@0 3434 hyphens,
michael@0 3435 CSS_PROP_DOMPROP_PREFIXED(Hyphens),
michael@0 3436 CSS_PROPERTY_PARSE_VALUE,
michael@0 3437 "",
michael@0 3438 VARIANT_HK,
michael@0 3439 kHyphensKTable,
michael@0 3440 CSS_PROP_NO_OFFSET,
michael@0 3441 eStyleAnimType_None)
michael@0 3442 CSS_PROP_VISIBILITY(
michael@0 3443 writing-mode,
michael@0 3444 writing_mode,
michael@0 3445 WritingMode,
michael@0 3446 CSS_PROPERTY_PARSE_VALUE,
michael@0 3447 "layout.css.vertical-text.enabled",
michael@0 3448 VARIANT_HK,
michael@0 3449 kWritingModeKTable,
michael@0 3450 offsetof(nsStyleVisibility, mWritingMode),
michael@0 3451 eStyleAnimType_EnumU8)
michael@0 3452 CSS_PROP_POSITION(
michael@0 3453 z-index,
michael@0 3454 z_index,
michael@0 3455 ZIndex,
michael@0 3456 CSS_PROPERTY_PARSE_VALUE |
michael@0 3457 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3458 "",
michael@0 3459 VARIANT_AHI,
michael@0 3460 nullptr,
michael@0 3461 offsetof(nsStylePosition, mZIndex),
michael@0 3462 eStyleAnimType_Coord)
michael@0 3463 CSS_PROP_XUL(
michael@0 3464 -moz-box-align,
michael@0 3465 box_align,
michael@0 3466 CSS_PROP_DOMPROP_PREFIXED(BoxAlign),
michael@0 3467 CSS_PROPERTY_PARSE_VALUE,
michael@0 3468 "",
michael@0 3469 VARIANT_HK,
michael@0 3470 kBoxAlignKTable,
michael@0 3471 CSS_PROP_NO_OFFSET,
michael@0 3472 eStyleAnimType_None) // XXX bug 3935
michael@0 3473 CSS_PROP_XUL(
michael@0 3474 -moz-box-direction,
michael@0 3475 box_direction,
michael@0 3476 CSS_PROP_DOMPROP_PREFIXED(BoxDirection),
michael@0 3477 CSS_PROPERTY_PARSE_VALUE,
michael@0 3478 "",
michael@0 3479 VARIANT_HK,
michael@0 3480 kBoxDirectionKTable,
michael@0 3481 CSS_PROP_NO_OFFSET,
michael@0 3482 eStyleAnimType_None) // XXX bug 3935
michael@0 3483 CSS_PROP_XUL(
michael@0 3484 -moz-box-flex,
michael@0 3485 box_flex,
michael@0 3486 CSS_PROP_DOMPROP_PREFIXED(BoxFlex),
michael@0 3487 CSS_PROPERTY_PARSE_VALUE |
michael@0 3488 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 3489 "",
michael@0 3490 VARIANT_HN,
michael@0 3491 nullptr,
michael@0 3492 offsetof(nsStyleXUL, mBoxFlex),
michael@0 3493 eStyleAnimType_float) // XXX bug 3935
michael@0 3494 CSS_PROP_XUL(
michael@0 3495 -moz-box-orient,
michael@0 3496 box_orient,
michael@0 3497 CSS_PROP_DOMPROP_PREFIXED(BoxOrient),
michael@0 3498 CSS_PROPERTY_PARSE_VALUE,
michael@0 3499 "",
michael@0 3500 VARIANT_HK,
michael@0 3501 kBoxOrientKTable,
michael@0 3502 CSS_PROP_NO_OFFSET,
michael@0 3503 eStyleAnimType_None) // XXX bug 3935
michael@0 3504 CSS_PROP_XUL(
michael@0 3505 -moz-box-pack,
michael@0 3506 box_pack,
michael@0 3507 CSS_PROP_DOMPROP_PREFIXED(BoxPack),
michael@0 3508 CSS_PROPERTY_PARSE_VALUE,
michael@0 3509 "",
michael@0 3510 VARIANT_HK,
michael@0 3511 kBoxPackKTable,
michael@0 3512 CSS_PROP_NO_OFFSET,
michael@0 3513 eStyleAnimType_None) // XXX bug 3935
michael@0 3514 CSS_PROP_XUL(
michael@0 3515 -moz-box-ordinal-group,
michael@0 3516 box_ordinal_group,
michael@0 3517 CSS_PROP_DOMPROP_PREFIXED(BoxOrdinalGroup),
michael@0 3518 CSS_PROPERTY_PARSE_VALUE |
michael@0 3519 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 3520 "",
michael@0 3521 VARIANT_HI,
michael@0 3522 nullptr,
michael@0 3523 CSS_PROP_NO_OFFSET,
michael@0 3524 eStyleAnimType_None)
michael@0 3525 CSS_PROP_XUL(
michael@0 3526 -moz-stack-sizing,
michael@0 3527 stack_sizing,
michael@0 3528 CSS_PROP_DOMPROP_PREFIXED(StackSizing),
michael@0 3529 CSS_PROPERTY_PARSE_VALUE,
michael@0 3530 "",
michael@0 3531 VARIANT_HK,
michael@0 3532 kStackSizingKTable,
michael@0 3533 CSS_PROP_NO_OFFSET,
michael@0 3534 eStyleAnimType_None)
michael@0 3535
michael@0 3536 #ifndef CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
michael@0 3537 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 3538 CSS_PROP_FONT(
michael@0 3539 -moz-script-level,
michael@0 3540 script_level,
michael@0 3541 ScriptLevel,
michael@0 3542 // REVIEW: no range restriction?
michael@0 3543 // NOTE: CSSParserImpl::ParseSingleValueProperty only accepts this
michael@0 3544 // property when mUnsafeRulesEnabled is set.
michael@0 3545 CSS_PROPERTY_PARSE_VALUE,
michael@0 3546 "",
michael@0 3547 // script-level can take Auto, Integer and Number values, but only Auto
michael@0 3548 // ("increment if parent is not in displaystyle") and Integer
michael@0 3549 // ("relative") values can be specified in a style sheet.
michael@0 3550 VARIANT_AHI,
michael@0 3551 nullptr,
michael@0 3552 CSS_PROP_NO_OFFSET,
michael@0 3553 eStyleAnimType_None)
michael@0 3554 CSS_PROP_FONT(
michael@0 3555 -moz-script-size-multiplier,
michael@0 3556 script_size_multiplier,
michael@0 3557 ScriptSizeMultiplier,
michael@0 3558 // REVIEW: no range restriction?
michael@0 3559 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3560 "",
michael@0 3561 0,
michael@0 3562 nullptr,
michael@0 3563 CSS_PROP_NO_OFFSET,
michael@0 3564 eStyleAnimType_None)
michael@0 3565 CSS_PROP_FONT(
michael@0 3566 -moz-script-min-size,
michael@0 3567 script_min_size,
michael@0 3568 ScriptMinSize,
michael@0 3569 // REVIEW: no range restriction?
michael@0 3570 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3571 "",
michael@0 3572 0,
michael@0 3573 nullptr,
michael@0 3574 CSS_PROP_NO_OFFSET,
michael@0 3575 eStyleAnimType_None)
michael@0 3576 CSS_PROP_FONT(
michael@0 3577 -moz-math-variant,
michael@0 3578 math_variant,
michael@0 3579 MathVariant,
michael@0 3580 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3581 "",
michael@0 3582 VARIANT_HK,
michael@0 3583 kMathVariantKTable,
michael@0 3584 CSS_PROP_NO_OFFSET,
michael@0 3585 eStyleAnimType_None)
michael@0 3586 CSS_PROP_FONT(
michael@0 3587 -moz-math-display,
michael@0 3588 math_display,
michael@0 3589 MathDisplay,
michael@0 3590 // NOTE: CSSParserImpl::ParseSingleValueProperty only accepts this
michael@0 3591 // property when mUnsafeRulesEnabled is set.
michael@0 3592 CSS_PROPERTY_PARSE_VALUE,
michael@0 3593 "",
michael@0 3594 VARIANT_HK,
michael@0 3595 kMathDisplayKTable,
michael@0 3596 CSS_PROP_NO_OFFSET,
michael@0 3597 eStyleAnimType_None)
michael@0 3598 #endif // !defined(CSS_PROP_LIST_EXCLUDE_INTERNAL)
michael@0 3599 #endif // !defined(CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND)
michael@0 3600
michael@0 3601 CSS_PROP_SVGRESET(
michael@0 3602 clip-path,
michael@0 3603 clip_path,
michael@0 3604 ClipPath,
michael@0 3605 CSS_PROPERTY_PARSE_VALUE |
michael@0 3606 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3607 "",
michael@0 3608 VARIANT_HUO,
michael@0 3609 nullptr,
michael@0 3610 CSS_PROP_NO_OFFSET,
michael@0 3611 eStyleAnimType_None)
michael@0 3612 CSS_PROP_SVG(
michael@0 3613 clip-rule,
michael@0 3614 clip_rule,
michael@0 3615 ClipRule,
michael@0 3616 CSS_PROPERTY_PARSE_VALUE,
michael@0 3617 "",
michael@0 3618 VARIANT_HK,
michael@0 3619 kFillRuleKTable,
michael@0 3620 offsetof(nsStyleSVG, mClipRule),
michael@0 3621 eStyleAnimType_EnumU8)
michael@0 3622 CSS_PROP_SVG(
michael@0 3623 color-interpolation,
michael@0 3624 color_interpolation,
michael@0 3625 ColorInterpolation,
michael@0 3626 CSS_PROPERTY_PARSE_VALUE,
michael@0 3627 "",
michael@0 3628 VARIANT_HK,
michael@0 3629 kColorInterpolationKTable,
michael@0 3630 offsetof(nsStyleSVG, mColorInterpolation),
michael@0 3631 eStyleAnimType_EnumU8)
michael@0 3632 CSS_PROP_SVG(
michael@0 3633 color-interpolation-filters,
michael@0 3634 color_interpolation_filters,
michael@0 3635 ColorInterpolationFilters,
michael@0 3636 CSS_PROPERTY_PARSE_VALUE,
michael@0 3637 "",
michael@0 3638 VARIANT_HK,
michael@0 3639 kColorInterpolationKTable,
michael@0 3640 offsetof(nsStyleSVG, mColorInterpolationFilters),
michael@0 3641 eStyleAnimType_EnumU8)
michael@0 3642 CSS_PROP_SVGRESET(
michael@0 3643 dominant-baseline,
michael@0 3644 dominant_baseline,
michael@0 3645 DominantBaseline,
michael@0 3646 CSS_PROPERTY_PARSE_VALUE,
michael@0 3647 "",
michael@0 3648 VARIANT_HK,
michael@0 3649 kDominantBaselineKTable,
michael@0 3650 offsetof(nsStyleSVGReset, mDominantBaseline),
michael@0 3651 eStyleAnimType_EnumU8)
michael@0 3652 CSS_PROP_SVG(
michael@0 3653 fill,
michael@0 3654 fill,
michael@0 3655 Fill,
michael@0 3656 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 3657 "",
michael@0 3658 0,
michael@0 3659 kContextPatternKTable,
michael@0 3660 offsetof(nsStyleSVG, mFill),
michael@0 3661 eStyleAnimType_PaintServer)
michael@0 3662 CSS_PROP_SVG(
michael@0 3663 fill-opacity,
michael@0 3664 fill_opacity,
michael@0 3665 FillOpacity,
michael@0 3666 CSS_PROPERTY_PARSE_VALUE,
michael@0 3667 "",
michael@0 3668 VARIANT_HN | VARIANT_OPENTYPE_SVG_KEYWORD,
michael@0 3669 kContextOpacityKTable,
michael@0 3670 offsetof(nsStyleSVG, mFillOpacity),
michael@0 3671 eStyleAnimType_float)
michael@0 3672 CSS_PROP_SVG(
michael@0 3673 fill-rule,
michael@0 3674 fill_rule,
michael@0 3675 FillRule,
michael@0 3676 CSS_PROPERTY_PARSE_VALUE,
michael@0 3677 "",
michael@0 3678 VARIANT_HK,
michael@0 3679 kFillRuleKTable,
michael@0 3680 offsetof(nsStyleSVG, mFillRule),
michael@0 3681 eStyleAnimType_EnumU8)
michael@0 3682 CSS_PROP_SVGRESET(
michael@0 3683 filter,
michael@0 3684 filter,
michael@0 3685 Filter,
michael@0 3686 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3687 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3688 "",
michael@0 3689 0,
michael@0 3690 nullptr,
michael@0 3691 CSS_PROP_NO_OFFSET,
michael@0 3692 eStyleAnimType_Custom)
michael@0 3693 CSS_PROP_SVGRESET(
michael@0 3694 flood-color,
michael@0 3695 flood_color,
michael@0 3696 FloodColor,
michael@0 3697 CSS_PROPERTY_PARSE_VALUE,
michael@0 3698 "",
michael@0 3699 VARIANT_HC,
michael@0 3700 nullptr,
michael@0 3701 offsetof(nsStyleSVGReset, mFloodColor),
michael@0 3702 eStyleAnimType_Color)
michael@0 3703 CSS_PROP_SVGRESET(
michael@0 3704 flood-opacity,
michael@0 3705 flood_opacity,
michael@0 3706 FloodOpacity,
michael@0 3707 CSS_PROPERTY_PARSE_VALUE,
michael@0 3708 "",
michael@0 3709 VARIANT_HN,
michael@0 3710 nullptr,
michael@0 3711 offsetof(nsStyleSVGReset, mFloodOpacity),
michael@0 3712 eStyleAnimType_float)
michael@0 3713 CSS_PROP_SVG(
michael@0 3714 image-rendering,
michael@0 3715 image_rendering,
michael@0 3716 ImageRendering,
michael@0 3717 CSS_PROPERTY_PARSE_VALUE,
michael@0 3718 "",
michael@0 3719 VARIANT_HK,
michael@0 3720 kImageRenderingKTable,
michael@0 3721 offsetof(nsStyleSVG, mImageRendering),
michael@0 3722 eStyleAnimType_EnumU8)
michael@0 3723 CSS_PROP_SVGRESET(
michael@0 3724 lighting-color,
michael@0 3725 lighting_color,
michael@0 3726 LightingColor,
michael@0 3727 CSS_PROPERTY_PARSE_VALUE,
michael@0 3728 "",
michael@0 3729 VARIANT_HC,
michael@0 3730 nullptr,
michael@0 3731 offsetof(nsStyleSVGReset, mLightingColor),
michael@0 3732 eStyleAnimType_Color)
michael@0 3733 CSS_PROP_SHORTHAND(
michael@0 3734 marker,
michael@0 3735 marker,
michael@0 3736 Marker,
michael@0 3737 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 3738 "")
michael@0 3739 CSS_PROP_SVG(
michael@0 3740 marker-end,
michael@0 3741 marker_end,
michael@0 3742 MarkerEnd,
michael@0 3743 CSS_PROPERTY_PARSE_VALUE,
michael@0 3744 "",
michael@0 3745 VARIANT_HUO,
michael@0 3746 nullptr,
michael@0 3747 CSS_PROP_NO_OFFSET,
michael@0 3748 eStyleAnimType_None)
michael@0 3749 CSS_PROP_SVG(
michael@0 3750 marker-mid,
michael@0 3751 marker_mid,
michael@0 3752 MarkerMid,
michael@0 3753 CSS_PROPERTY_PARSE_VALUE,
michael@0 3754 "",
michael@0 3755 VARIANT_HUO,
michael@0 3756 nullptr,
michael@0 3757 CSS_PROP_NO_OFFSET,
michael@0 3758 eStyleAnimType_None)
michael@0 3759 CSS_PROP_SVG(
michael@0 3760 marker-start,
michael@0 3761 marker_start,
michael@0 3762 MarkerStart,
michael@0 3763 CSS_PROPERTY_PARSE_VALUE,
michael@0 3764 "",
michael@0 3765 VARIANT_HUO,
michael@0 3766 nullptr,
michael@0 3767 CSS_PROP_NO_OFFSET,
michael@0 3768 eStyleAnimType_None)
michael@0 3769 CSS_PROP_SVGRESET(
michael@0 3770 mask,
michael@0 3771 mask,
michael@0 3772 Mask,
michael@0 3773 CSS_PROPERTY_PARSE_VALUE |
michael@0 3774 CSS_PROPERTY_CREATES_STACKING_CONTEXT,
michael@0 3775 "",
michael@0 3776 VARIANT_HUO,
michael@0 3777 nullptr,
michael@0 3778 CSS_PROP_NO_OFFSET,
michael@0 3779 eStyleAnimType_None)
michael@0 3780 CSS_PROP_SVGRESET(
michael@0 3781 mask-type,
michael@0 3782 mask_type,
michael@0 3783 MaskType,
michael@0 3784 CSS_PROPERTY_PARSE_VALUE,
michael@0 3785 "layout.css.masking.enabled",
michael@0 3786 VARIANT_HK,
michael@0 3787 kMaskTypeKTable,
michael@0 3788 offsetof(nsStyleSVGReset, mMaskType),
michael@0 3789 eStyleAnimType_EnumU8)
michael@0 3790 CSS_PROP_SVG(
michael@0 3791 shape-rendering,
michael@0 3792 shape_rendering,
michael@0 3793 ShapeRendering,
michael@0 3794 CSS_PROPERTY_PARSE_VALUE,
michael@0 3795 "",
michael@0 3796 VARIANT_HK,
michael@0 3797 kShapeRenderingKTable,
michael@0 3798 offsetof(nsStyleSVG, mShapeRendering),
michael@0 3799 eStyleAnimType_EnumU8)
michael@0 3800 CSS_PROP_SVGRESET(
michael@0 3801 stop-color,
michael@0 3802 stop_color,
michael@0 3803 StopColor,
michael@0 3804 CSS_PROPERTY_PARSE_VALUE,
michael@0 3805 "",
michael@0 3806 VARIANT_HC,
michael@0 3807 nullptr,
michael@0 3808 offsetof(nsStyleSVGReset, mStopColor),
michael@0 3809 eStyleAnimType_Color)
michael@0 3810 CSS_PROP_SVGRESET(
michael@0 3811 stop-opacity,
michael@0 3812 stop_opacity,
michael@0 3813 StopOpacity,
michael@0 3814 CSS_PROPERTY_PARSE_VALUE,
michael@0 3815 "",
michael@0 3816 VARIANT_HN,
michael@0 3817 nullptr,
michael@0 3818 offsetof(nsStyleSVGReset, mStopOpacity),
michael@0 3819 eStyleAnimType_float)
michael@0 3820 CSS_PROP_SVG(
michael@0 3821 stroke,
michael@0 3822 stroke,
michael@0 3823 Stroke,
michael@0 3824 CSS_PROPERTY_PARSE_FUNCTION,
michael@0 3825 "",
michael@0 3826 0,
michael@0 3827 kContextPatternKTable,
michael@0 3828 offsetof(nsStyleSVG, mStroke),
michael@0 3829 eStyleAnimType_PaintServer)
michael@0 3830 CSS_PROP_SVG(
michael@0 3831 stroke-dasharray,
michael@0 3832 stroke_dasharray,
michael@0 3833 StrokeDasharray,
michael@0 3834 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3835 CSS_PROPERTY_VALUE_LIST_USES_COMMAS,
michael@0 3836 // NOTE: Internal values have range restrictions.
michael@0 3837 "",
michael@0 3838 0,
michael@0 3839 kStrokeContextValueKTable,
michael@0 3840 CSS_PROP_NO_OFFSET, /* property stored in 2 separate members */
michael@0 3841 eStyleAnimType_Custom)
michael@0 3842 CSS_PROP_SVG(
michael@0 3843 stroke-dashoffset,
michael@0 3844 stroke_dashoffset,
michael@0 3845 StrokeDashoffset,
michael@0 3846 CSS_PROPERTY_PARSE_VALUE,
michael@0 3847 "",
michael@0 3848 VARIANT_HLPN | VARIANT_OPENTYPE_SVG_KEYWORD,
michael@0 3849 kStrokeContextValueKTable,
michael@0 3850 offsetof(nsStyleSVG, mStrokeDashoffset),
michael@0 3851 eStyleAnimType_Coord)
michael@0 3852 CSS_PROP_SVG(
michael@0 3853 stroke-linecap,
michael@0 3854 stroke_linecap,
michael@0 3855 StrokeLinecap,
michael@0 3856 CSS_PROPERTY_PARSE_VALUE,
michael@0 3857 "",
michael@0 3858 VARIANT_HK,
michael@0 3859 kStrokeLinecapKTable,
michael@0 3860 offsetof(nsStyleSVG, mStrokeLinecap),
michael@0 3861 eStyleAnimType_EnumU8)
michael@0 3862 CSS_PROP_SVG(
michael@0 3863 stroke-linejoin,
michael@0 3864 stroke_linejoin,
michael@0 3865 StrokeLinejoin,
michael@0 3866 CSS_PROPERTY_PARSE_VALUE,
michael@0 3867 "",
michael@0 3868 VARIANT_HK,
michael@0 3869 kStrokeLinejoinKTable,
michael@0 3870 offsetof(nsStyleSVG, mStrokeLinejoin),
michael@0 3871 eStyleAnimType_EnumU8)
michael@0 3872 CSS_PROP_SVG(
michael@0 3873 stroke-miterlimit,
michael@0 3874 stroke_miterlimit,
michael@0 3875 StrokeMiterlimit,
michael@0 3876 CSS_PROPERTY_PARSE_VALUE |
michael@0 3877 CSS_PROPERTY_VALUE_AT_LEAST_ONE,
michael@0 3878 "",
michael@0 3879 VARIANT_HN,
michael@0 3880 nullptr,
michael@0 3881 offsetof(nsStyleSVG, mStrokeMiterlimit),
michael@0 3882 eStyleAnimType_float)
michael@0 3883 CSS_PROP_SVG(
michael@0 3884 stroke-opacity,
michael@0 3885 stroke_opacity,
michael@0 3886 StrokeOpacity,
michael@0 3887 CSS_PROPERTY_PARSE_VALUE,
michael@0 3888 "",
michael@0 3889 VARIANT_HN | VARIANT_OPENTYPE_SVG_KEYWORD,
michael@0 3890 kContextOpacityKTable,
michael@0 3891 offsetof(nsStyleSVG, mStrokeOpacity),
michael@0 3892 eStyleAnimType_float)
michael@0 3893 CSS_PROP_SVG(
michael@0 3894 stroke-width,
michael@0 3895 stroke_width,
michael@0 3896 StrokeWidth,
michael@0 3897 CSS_PROPERTY_PARSE_VALUE |
michael@0 3898 CSS_PROPERTY_VALUE_NONNEGATIVE,
michael@0 3899 "",
michael@0 3900 VARIANT_HLPN | VARIANT_OPENTYPE_SVG_KEYWORD,
michael@0 3901 kStrokeContextValueKTable,
michael@0 3902 offsetof(nsStyleSVG, mStrokeWidth),
michael@0 3903 eStyleAnimType_Coord)
michael@0 3904 CSS_PROP_SVG(
michael@0 3905 text-anchor,
michael@0 3906 text_anchor,
michael@0 3907 TextAnchor,
michael@0 3908 CSS_PROPERTY_PARSE_VALUE,
michael@0 3909 "",
michael@0 3910 VARIANT_HK,
michael@0 3911 kTextAnchorKTable,
michael@0 3912 offsetof(nsStyleSVG, mTextAnchor),
michael@0 3913 eStyleAnimType_EnumU8)
michael@0 3914 CSS_PROP_SVG(
michael@0 3915 text-rendering,
michael@0 3916 text_rendering,
michael@0 3917 TextRendering,
michael@0 3918 CSS_PROPERTY_PARSE_VALUE,
michael@0 3919 "",
michael@0 3920 VARIANT_HK,
michael@0 3921 kTextRenderingKTable,
michael@0 3922 offsetof(nsStyleSVG, mTextRendering),
michael@0 3923 eStyleAnimType_EnumU8)
michael@0 3924 CSS_PROP_SVGRESET(
michael@0 3925 vector-effect,
michael@0 3926 vector_effect,
michael@0 3927 VectorEffect,
michael@0 3928 CSS_PROPERTY_PARSE_VALUE,
michael@0 3929 "",
michael@0 3930 VARIANT_HK,
michael@0 3931 kVectorEffectKTable,
michael@0 3932 offsetof(nsStyleSVGReset, mVectorEffect),
michael@0 3933 eStyleAnimType_EnumU8)
michael@0 3934
michael@0 3935 CSS_PROP_DISPLAY(
michael@0 3936 will-change,
michael@0 3937 will_change,
michael@0 3938 WillChange,
michael@0 3939 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3940 CSS_PROPERTY_VALUE_LIST_USES_COMMAS |
michael@0 3941 CSS_PROPERTY_ALWAYS_ENABLED_IN_CHROME_OR_CERTIFIED_APP,
michael@0 3942 "layout.css.will-change.enabled",
michael@0 3943 0,
michael@0 3944 nullptr,
michael@0 3945 CSS_PROP_NO_OFFSET,
michael@0 3946 eStyleAnimType_None)
michael@0 3947
michael@0 3948 // The shorthands below are essentially aliases, but they require different
michael@0 3949 // parsing rules, and are therefore implemented as shorthands.
michael@0 3950 CSS_PROP_SHORTHAND(
michael@0 3951 -moz-transform,
michael@0 3952 _moz_transform,
michael@0 3953 MozTransform,
michael@0 3954 CSS_PROPERTY_PARSE_FUNCTION |
michael@0 3955 CSS_PROPERTY_IS_ALIAS,
michael@0 3956 "layout.css.prefixes.transforms")
michael@0 3957
michael@0 3958 #ifndef CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND
michael@0 3959 #ifndef CSS_PROP_LIST_EXCLUDE_INTERNAL
michael@0 3960 // We have a few properties that are in style structs but are not stored
michael@0 3961 // in style sheets (or nsCSS* structs). Some fields in these property
michael@0 3962 // definitions are bogus (e.g., they work for nsRuleData* offsets but
michael@0 3963 // not nsCSS* offsets). Callers that care about these bogus fields can
michael@0 3964 // define CSS_PROP_STUB_NOT_CSS to define a replacement for these
michael@0 3965 // entries.
michael@0 3966 #ifdef CSS_PROP_STUB_NOT_CSS
michael@0 3967 CSS_PROP_STUB_NOT_CSS
michael@0 3968 CSS_PROP_STUB_NOT_CSS
michael@0 3969 #else
michael@0 3970 CSS_PROP_FONT(
michael@0 3971 -x-lang,
michael@0 3972 _x_lang,
michael@0 3973 Lang,
michael@0 3974 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3975 "",
michael@0 3976 0,
michael@0 3977 nullptr,
michael@0 3978 CSS_PROP_NO_OFFSET,
michael@0 3979 eStyleAnimType_None)
michael@0 3980 CSS_PROP_TABLE(
michael@0 3981 -x-span,
michael@0 3982 _x_span,
michael@0 3983 Span,
michael@0 3984 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3985 "",
michael@0 3986 0,
michael@0 3987 nullptr,
michael@0 3988 CSS_PROP_NO_OFFSET,
michael@0 3989 eStyleAnimType_None)
michael@0 3990 CSS_PROP_FONT(
michael@0 3991 -x-text-zoom,
michael@0 3992 _x_text_zoom,
michael@0 3993 TextZoom,
michael@0 3994 CSS_PROPERTY_PARSE_INACCESSIBLE,
michael@0 3995 "",
michael@0 3996 0,
michael@0 3997 nullptr,
michael@0 3998 CSS_PROP_NO_OFFSET,
michael@0 3999 eStyleAnimType_None)
michael@0 4000 #endif /* !defined(CSS_PROP_STUB_NOT_CSS) */
michael@0 4001 #endif /* !defined(CSS_PROP_LIST_EXCLUDE_INTERNAL) */
michael@0 4002 #endif /* !defined(CSS_PROP_LIST_ONLY_COMPONENTS_OF_ALL_SHORTHAND) */
michael@0 4003
michael@0 4004 #ifdef USED_CSS_PROP
michael@0 4005
michael@0 4006 #undef USED_CSS_PROP
michael@0 4007 #undef CSS_PROP_FONT
michael@0 4008 #undef CSS_PROP_COLOR
michael@0 4009 #undef CSS_PROP_BACKGROUND
michael@0 4010 #undef CSS_PROP_LIST
michael@0 4011 #undef CSS_PROP_POSITION
michael@0 4012 #undef CSS_PROP_TEXT
michael@0 4013 #undef CSS_PROP_TEXTRESET
michael@0 4014 #undef CSS_PROP_DISPLAY
michael@0 4015 #undef CSS_PROP_VISIBILITY
michael@0 4016 #undef CSS_PROP_CONTENT
michael@0 4017 #undef CSS_PROP_QUOTES
michael@0 4018 #undef CSS_PROP_USERINTERFACE
michael@0 4019 #undef CSS_PROP_UIRESET
michael@0 4020 #undef CSS_PROP_TABLE
michael@0 4021 #undef CSS_PROP_TABLEBORDER
michael@0 4022 #undef CSS_PROP_MARGIN
michael@0 4023 #undef CSS_PROP_PADDING
michael@0 4024 #undef CSS_PROP_BORDER
michael@0 4025 #undef CSS_PROP_OUTLINE
michael@0 4026 #undef CSS_PROP_XUL
michael@0 4027 #undef CSS_PROP_COLUMN
michael@0 4028 #undef CSS_PROP_SVG
michael@0 4029 #undef CSS_PROP_SVGRESET
michael@0 4030 #undef CSS_PROP_VARIABLES
michael@0 4031 #ifdef DEFINED_CSS_PROP_BACKENDONLY
michael@0 4032 #undef CSS_PROP_BACKENDONLY
michael@0 4033 #undef DEFINED_CSS_PROP_BACKENDONLY
michael@0 4034 #endif
michael@0 4035
michael@0 4036 #else /* !defined(USED_CSS_PROP) */
michael@0 4037
michael@0 4038 #ifdef DEFINED_CSS_PROP_FONT
michael@0 4039 #undef CSS_PROP_FONT
michael@0 4040 #undef DEFINED_CSS_PROP_FONT
michael@0 4041 #endif
michael@0 4042 #ifdef DEFINED_CSS_PROP_COLOR
michael@0 4043 #undef CSS_PROP_COLOR
michael@0 4044 #undef DEFINED_CSS_PROP_COLOR
michael@0 4045 #endif
michael@0 4046 #ifdef DEFINED_CSS_PROP_BACKGROUND
michael@0 4047 #undef CSS_PROP_BACKGROUND
michael@0 4048 #undef DEFINED_CSS_PROP_BACKGROUND
michael@0 4049 #endif
michael@0 4050 #ifdef DEFINED_CSS_PROP_LIST
michael@0 4051 #undef CSS_PROP_LIST
michael@0 4052 #undef DEFINED_CSS_PROP_LIST
michael@0 4053 #endif
michael@0 4054 #ifdef DEFINED_CSS_PROP_POSITION
michael@0 4055 #undef CSS_PROP_POSITION
michael@0 4056 #undef DEFINED_CSS_PROP_POSITION
michael@0 4057 #endif
michael@0 4058 #ifdef DEFINED_CSS_PROP_TEXT
michael@0 4059 #undef CSS_PROP_TEXT
michael@0 4060 #undef DEFINED_CSS_PROP_TETEXTRESETT
michael@0 4061 #endif
michael@0 4062 #ifdef DEFINED_CSS_PROP_TEXTRESET
michael@0 4063 #undef CSS_PROP_TEXTRESET
michael@0 4064 #undef DEFINED_CSS_PROP_TEDISPLAYTRESET
michael@0 4065 #endif
michael@0 4066 #ifdef DEFINED_CSS_PROP_DISPLAY
michael@0 4067 #undef CSS_PROP_DISPLAY
michael@0 4068 #undef DEFINED_CSS_PROP_DISPLAY
michael@0 4069 #endif
michael@0 4070 #ifdef DEFINED_CSS_PROP_VISIBILITY
michael@0 4071 #undef CSS_PROP_VISIBILITY
michael@0 4072 #undef DEFINED_CSS_PROP_VISIBILITY
michael@0 4073 #endif
michael@0 4074 #ifdef DEFINED_CSS_PROP_CONTENT
michael@0 4075 #undef CSS_PROP_CONTENT
michael@0 4076 #undef DEFINED_CSS_PROP_CONTENT
michael@0 4077 #endif
michael@0 4078 #ifdef DEFINED_CSS_PROP_QUOTES
michael@0 4079 #undef CSS_PROP_QUOTES
michael@0 4080 #undef DEFINED_CSS_PROP_QUOTES
michael@0 4081 #endif
michael@0 4082 #ifdef DEFINED_CSS_PROP_USERINTERFACE
michael@0 4083 #undef CSS_PROP_USERINTERFACE
michael@0 4084 #undef DEFINED_CSS_PROP_USERINTERFACE
michael@0 4085 #endif
michael@0 4086 #ifdef DEFINED_CSS_PROP_UIRESET
michael@0 4087 #undef CSS_PROP_UIRESET
michael@0 4088 #undef DEFINED_CSS_PROP_UIRESET
michael@0 4089 #endif
michael@0 4090 #ifdef DEFINED_CSS_PROP_TABLE
michael@0 4091 #undef CSS_PROP_TABLE
michael@0 4092 #undef DEFINED_CSS_PROP_TABLE
michael@0 4093 #endif
michael@0 4094 #ifdef DEFINED_CSS_PROP_TABLEBORDER
michael@0 4095 #undef CSS_PROP_TABLEBORDER
michael@0 4096 #undef DEFINED_CSS_PROP_TABLEBORDER
michael@0 4097 #endif
michael@0 4098 #ifdef DEFINED_CSS_PROP_MARGIN
michael@0 4099 #undef CSS_PROP_MARGIN
michael@0 4100 #undef DEFINED_CSS_PROP_MARGIN
michael@0 4101 #endif
michael@0 4102 #ifdef DEFINED_CSS_PROP_PADDING
michael@0 4103 #undef CSS_PROP_PADDING
michael@0 4104 #undef DEFINED_CSS_PROP_PADDING
michael@0 4105 #endif
michael@0 4106 #ifdef DEFINED_CSS_PROP_BORDER
michael@0 4107 #undef CSS_PROP_BORDER
michael@0 4108 #undef DEFINED_CSS_PROP_BORDER
michael@0 4109 #endif
michael@0 4110 #ifdef DEFINED_CSS_PROP_OUTLINE
michael@0 4111 #undef CSS_PROP_OUTLINE
michael@0 4112 #undef DEFINED_CSS_PROP_OUTLINE
michael@0 4113 #endif
michael@0 4114 #ifdef DEFINED_CSS_PROP_XUL
michael@0 4115 #undef CSS_PROP_XUL
michael@0 4116 #undef DEFINED_CSS_PROP_XUL
michael@0 4117 #endif
michael@0 4118 #ifdef DEFINED_CSS_PROP_COLUMN
michael@0 4119 #undef CSS_PROP_COLUMN
michael@0 4120 #undef DEFINED_CSS_PROP_COLUMN
michael@0 4121 #endif
michael@0 4122 #ifdef DEFINED_CSS_PROP_SVG
michael@0 4123 #undef CSS_PROP_SVG
michael@0 4124 #undef DEFINED_CSS_PROP_SVG
michael@0 4125 #endif
michael@0 4126 #ifdef DEFINED_CSS_PROP_SVGRESET
michael@0 4127 #undef CSS_PROP_SVGRESET
michael@0 4128 #undef DEFINED_CSS_PROP_SVGRESET
michael@0 4129 #endif
michael@0 4130 #ifdef DEFINED_CSS_PROP_VARIABLES
michael@0 4131 #undef CSS_PROP_VARIABLES
michael@0 4132 #undef DEFINED_CSS_PROP_VARIABLES
michael@0 4133 #endif
michael@0 4134 #ifdef DEFINED_CSS_PROP_BACKENDONLY
michael@0 4135 #undef CSS_PROP_BACKENDONLY
michael@0 4136 #undef DEFINED_CSS_PROP_BACKENDONLY
michael@0 4137 #endif
michael@0 4138
michael@0 4139 #endif /* !defined(USED_CSS_PROP) */
michael@0 4140
michael@0 4141 #ifdef DEFINED_CSS_PROP_SHORTHAND
michael@0 4142 #undef CSS_PROP_SHORTHAND
michael@0 4143 #undef DEFINED_CSS_PROP_SHORTHAND
michael@0 4144 #endif
michael@0 4145
michael@0 4146 #undef CSS_PROP_DOMPROP_PREFIXED

mercurial