1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
15 * The Original Code is mozilla.org code.
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998
20 * the Initial Developer. All Rights Reserved.
23 * L. David Baron <dbaron@dbaron.org>, Mozilla Corporation
25 * Alternatively, the contents of this file may be used under the terms of
26 * either of the GNU General Public License Version 2 or later (the "GPL"),
27 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
37 * ***** END LICENSE BLOCK ***** */
39 /* enum types for CSS properties and their values */
41 #ifndef nsCSSProperty_h___
42 #define nsCSSProperty_h___
45 Declare the enum list using the magic of preprocessing
46 enum values are "eCSSProperty_foo" (where foo is the property)
48 To change the list of properties, see nsCSSPropList.h
52 eCSSProperty_UNKNOWN
= -1,
54 #define CSS_PROP(name_, id_, method_, flags_, datastruct_, member_, \
55 kwtable_, stylestruct_, stylestructoffset_, animtype_) \
57 #include "nsCSSPropList.h"
60 eCSSProperty_COUNT_no_shorthands
,
61 // Make the count continue where it left off:
62 eCSSProperty_COUNT_DUMMY
= eCSSProperty_COUNT_no_shorthands
- 1,
64 #define CSS_PROP_SHORTHAND(name_, id_, method_, flags_) eCSSProperty_##id_,
65 #include "nsCSSPropList.h"
66 #undef CSS_PROP_SHORTHAND
70 // Some of the values below could probably overlap with each other and
71 // with eCSSProperty_COUNT if we had a need for them to do so.
73 // Extra values for use in the values of the 'transition-property'
75 eCSSPropertyExtra_no_properties
,
76 eCSSPropertyExtra_all_properties
,
78 // Extra dummy values for nsCSSParser internal use.
79 eCSSPropertyExtra_x_none_value
82 // The "descriptors" that can appear in a @font-face rule.
83 // They have the syntax of properties but different value rules.
84 // Keep in sync with kCSSRawFontDescs in nsCSSProps.cpp and
85 // nsCSSFontFaceStyleDecl::Fields in nsCSSRules.cpp.
87 eCSSFontDesc_UNKNOWN
= -1,
93 eCSSFontDesc_UnicodeRange
,
94 eCSSFontDesc_FontFeatureSettings
,
95 eCSSFontDesc_FontLanguageOverride
,
99 #endif /* nsCSSProperty_h___ */