gecko-dev/layout/style/nsCSSProps.cpp

670 строки
23 KiB
C++
Исходник Обычный вид История

1998-04-14 00:24:54 +04:00
/*
** This is a generated file, do not edit it. This file is created by
** genhash.pl
*/
#include "plstr.h"
#include "nsCSSProps.h"
1998-10-27 02:16:27 +03:00
#define TOTAL_KEYWORDS 142
1998-04-14 00:24:54 +04:00
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 21
#define MIN_HASH_VALUE 13
#define MAX_HASH_VALUE 1085
/* maximum key range = 1073, duplicates = 0 */
1998-04-14 00:24:54 +04:00
struct StaticNameTable {
char* tag;
PRInt32 id;
};
static const unsigned char kLowerLookup[256] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,
64,
97,98,99,100,101,102,103,104,105,106,107,108,109,
110,111,112,113,114,115,116,117,118,119,120,121,122,
91, 92, 93, 94, 95, 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,
128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,
144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,
160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,
176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,
192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,
208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,
224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,
240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
};
#define MYLOWER(x) kLowerLookup[((x) & 0x7f)]
/**
* Map a name to an ID or -1
*/
PRInt32 nsCSSProps::LookupName(const char* str)
{
1998-05-28 05:11:30 +04:00
static unsigned short asso_values[] =
1998-04-14 00:24:54 +04:00
{
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 24, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086, 1086,
1086, 1086, 1086, 1086, 1086, 1086, 1086, 204, 24, 221,
248, 28, 55, 153, 92, 157, 1086, 176, 42, 223,
245, 130, 243, 32, 9, 2, 1, 242, 46, 17,
232, 56, 252, 1086, 1086, 1086, 1086, 1086
1998-04-14 00:24:54 +04:00
};
static unsigned char lengthtable[] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6,
0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 21, 0, 0,
0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0,
1999-02-18 06:29:24 +03:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 12
1998-04-14 00:24:54 +04:00
};
static struct StaticNameTable wordlist[] =
{
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""},
{"stress", 120},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"left", 65},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"float", 55},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""},
{"height", 64},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
1999-02-18 06:29:24 +03:00
{"right", 111},
{""}, {""}, {""}, {""}, {""},
1999-02-18 06:29:24 +03:00
{"border", 10},
{""}, {""}, {""}, {""}, {""},
{"widows", 138},
{""},
{"border-right", 21},
{""}, {""}, {""},
{"font", 56},
{"size", 112},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"border-right-color", 22},
{""}, {""}, {""}, {""}, {""},
{"richness", 110},
{""}, {""}, {""},
{"border-top-style", 29},
{""}, {""}, {""}, {""}, {""}, {""},
{"border-left", 17},
{""},
{"border-right-style", 23},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""},
{"border-style", 26},
{""}, {""},
{"filter", 54},
1999-02-18 06:29:24 +03:00
{""},
{"volume", 136},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""},
{"font-variant", 62},
{"border-left-color", 18},
{""}, {""}, {""}, {""},
{"overflow", 89},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"text-shadow", 125},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"width", 139},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"border-left-style", 19},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"clear", 36},
1999-02-18 06:29:24 +03:00
{""},
{"text-shadow-radius", 127},
1999-02-18 06:29:24 +03:00
{""},
{"font-style", 61},
1999-02-18 06:29:24 +03:00
{""},
{"border-right-width", 24},
{"quotes", 107},
{"text-shadow-color", 126},
{""}, {""}, {""},
{"border-top-width", 30},
{""}, {""}, {""}, {""}, {""},
{"list-style", 68},
{""}, {""}, {""}, {""}, {""},
{"list-style-type", 71},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""},
{"empty-cells", 53},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
{"speak-header", 116},
{"text-shadow-y", 129},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"border-left-width", 20},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""},
{"border-bottom-color", 12},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"border-bottom-style", 13},
{"color", 42},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""},
{"clip-left", 39},
1999-02-18 06:29:24 +03:00
{"font-weight", 63},
{""}, {""}, {""}, {""},
{"border-width", 31},
{"top", 131},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"speech-rate", 119},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""},
{"font-stretch", 60},
{"orphans", 84},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""},
{"letter-spacing", 66},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""},
{"border-top-color", 28},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""},
{"border-color", 16},
{"white-space", 137},
1999-02-18 06:29:24 +03:00
{""},
{"border-top", 27},
{""}, {""},
{"size-height", 113},
{""}, {""}, {""}, {""}, {""},
{"speak", 115},
1999-02-18 06:29:24 +03:00
{""},
{"border-bottom-width", 14},
1999-02-18 06:29:24 +03:00
{""},
{"counter-increment", 44},
{""}, {""}, {""},
{"marks", 78},
1999-02-18 06:29:24 +03:00
{""},
{"clip-right", 40},
{"opacity", 83},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"counter-reset", 45},
{"text-indent", 124},
{"table-layout", 121},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"elevation", 52},
{""}, {""},
{"list-style-image", 69},
1999-02-18 06:29:24 +03:00
{""},
{"line-height", 67},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""},
{"font-size", 58},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"page", 95},
{"pause", 99},
{""}, {""}, {""}, {""}, {""}, {""},
{"cursor", 49},
{""},
{"border-spacing", 25},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""},
{"cue", 46},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"pitch", 102},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""},
{"text-shadow-x", 128},
{""},
{"background-repeat", 7},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""},
{"clip", 37},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"clip-bottom", 38},
{""}, {""}, {""},
{"size-width", 114},
1999-02-18 06:29:24 +03:00
{""},
{"voice-family", 135},
1999-02-18 06:29:24 +03:00
{""},
{"font-family", 57},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""},
{"z-index", 141},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"pause-after", 100},
{""}, {""}, {""}, {""}, {""}, {""},
{"border-bottom", 11},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"azimuth", 0},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""},
{"background-filter", 4},
{""}, {""}, {""},
{"cue-after", 47},
{"quotes-close", 108},
1999-02-18 06:29:24 +03:00
{""},
{"pause-before", 101},
{"page-break-before", 97},
{""}, {""}, {""},
{"min-height", 81},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
{"visibility", 134},
{""},
{"play-during-flags", 105},
{""}, {""}, {""}, {""}, {""}, {""},
{"border-y-spacing", 33},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"text-transform", 130},
1999-02-18 06:29:24 +03:00
{""}, {""},
{"content", 43},
1999-02-18 06:29:24 +03:00
{""},
{"bottom", 34},
1999-02-18 06:29:24 +03:00
{""},
{"marker-offset", 77},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
1999-02-18 06:29:24 +03:00
{""},
{"max-height", 79},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""},
1999-02-18 06:29:24 +03:00
{"border-collapse", 15},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"min-width", 82},
{""}, {""}, {""}, {""}, {""},
{"text-align", 122},
{""},
{"caption-side", 35},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""},
{"outline", 85},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""},
{"cue-before", 48},
{""}, {""},
{"quotes-open", 109},
{""}, {""}, {""}, {""},
{"pitch-range", 103},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""},
{"word-spacing", 140},
{"display", 51},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"background-image", 5},
{""}, {""}, {""}, {""}, {""},
{"max-width", 80},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"margin-right", 75},
{""}, {""}, {""}, {""}, {""},
{"page-break-inside", 98},
{""}, {""},
{"font-size-adjust", 59},
{"background-attachment", 2},
{"play-during", 104},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"outline-style", 87},
{"background-color", 3},
{"margin-left", 74},
{""},
1999-02-18 06:29:24 +03:00
{"page-break-after", 96},
{""},
{"padding-left", 92},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""},
{"background", 1},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"outline-width", 88},
{""}, {""}, {""}, {""}, {""},
{"vertical-align", 133},
{""}, {""}, {""}, {""},
{"clip-top", 41},
{"text-decoration", 123},
{""}, {""}, {""}, {""},
{"list-style-position", 70},
{""}, {""}, {""},
{"border-x-spacing", 32},
{""},
{"speak-numeral", 117},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
{"direction", 50},
{""}, {""},
{"outline-color", 86},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"background-y-position", 9},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""},
{"padding-right", 93},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""},
{"padding", 90},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
{"margin", 72},
{""}, {""},
{"margin-top", 76},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"padding-bottom", 91},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""},
{"padding-top", 94},
{""}, {""}, {""}, {""}, {""}, {""},
{"background-x-position", 8},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{"background-position", 6},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
{"speak-punctuation", 118},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""},
{"position", 106},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""},
{"margin-bottom", 73},
1999-02-18 06:29:24 +03:00
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""}, {""},
{"unicode-bidi", 132}
1998-04-14 00:24:54 +04:00
};
if (str != NULL) {
int len = PL_strlen(str);
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) {
register int hval = len;
switch (hval)
{
default:
case 12:
hval += asso_values[MYLOWER(str[11])];
case 11:
case 10:
case 9:
case 8:
1998-10-27 02:16:27 +03:00
hval += asso_values[MYLOWER(str[7])];
1998-04-14 00:24:54 +04:00
case 7:
case 6:
hval += asso_values[MYLOWER(str[5])];
case 5:
case 4:
case 3:
case 2:
hval += asso_values[MYLOWER(str[1])];
case 1:
hval += asso_values[MYLOWER(str[0])];
break;
}
hval += asso_values[MYLOWER(str[len - 1])];
if (hval <= MAX_HASH_VALUE && hval >= MIN_HASH_VALUE) {
if (len == lengthtable[hval]) {
register const char *tag = wordlist[hval].tag;
/*
** While not at the end of the string, if they ever differ
** they are not equal. We know "tag" is already lower case.
*/
while ((*tag != '\0')&&(*str != '\0')) {
if (*tag != (char) MYLOWER(*str)) {
return -1;
}
tag++;
str++;
}
/*
** One of the strings has ended, if they are both ended, then they
** are equal, otherwise not.
*/
if ((*tag == '\0')&&(*str == '\0')) {
return wordlist[hval].id;
}
}
}
}
}
return -1;
}
const nsCSSProps::NameTableEntry nsCSSProps::kNameTable[] = {
1998-10-08 05:34:58 +04:00
{ "azimuth", 0 },
{ "background", 1 },
{ "background-attachment", 2 },
{ "background-color", 3 },
{ "background-filter", 4 },
{ "background-image", 5 },
{ "background-position", 6 },
1998-10-27 02:16:27 +03:00
{ "background-repeat", 7 },
{ "background-x-position", 8 },
{ "background-y-position", 9 },
1998-10-08 05:34:58 +04:00
{ "border", 10 },
{ "border-bottom", 11 },
{ "border-bottom-color", 12 },
{ "border-bottom-style", 13 },
{ "border-bottom-width", 14 },
{ "border-collapse", 15 },
{ "border-color", 16 },
{ "border-left", 17 },
{ "border-left-color", 18 },
{ "border-left-style", 19 },
{ "border-left-width", 20 },
{ "border-right", 21 },
{ "border-right-color", 22 },
{ "border-right-style", 23 },
{ "border-right-width", 24 },
{ "border-spacing", 25 },
{ "border-style", 26 },
{ "border-top", 27 },
{ "border-top-color", 28 },
{ "border-top-style", 29 },
{ "border-top-width", 30 },
{ "border-width", 31 },
1998-10-27 02:16:27 +03:00
{ "border-x-spacing", 32 },
{ "border-y-spacing", 33 },
{ "bottom", 34 },
{ "caption-side", 35 },
{ "clear", 36 },
{ "clip", 37 },
{ "clip-bottom", 38 },
{ "clip-left", 39 },
{ "clip-right", 40 },
{ "clip-top", 41 },
{ "color", 42 },
{ "content", 43 },
{ "counter-increment", 44 },
{ "counter-reset", 45 },
{ "cue", 46 },
{ "cue-after", 47 },
{ "cue-before", 48 },
{ "cursor", 49 },
{ "direction", 50 },
{ "display", 51 },
{ "elevation", 52 },
{ "empty-cells", 53 },
{ "filter", 54 },
{ "float", 55 },
{ "font", 56 },
{ "font-family", 57 },
{ "font-size", 58 },
{ "font-size-adjust", 59 },
{ "font-stretch", 60 },
{ "font-style", 61 },
{ "font-variant", 62 },
{ "font-weight", 63 },
{ "height", 64 },
{ "left", 65 },
{ "letter-spacing", 66 },
{ "line-height", 67 },
{ "list-style", 68 },
{ "list-style-image", 69 },
{ "list-style-position", 70 },
{ "list-style-type", 71 },
{ "margin", 72 },
{ "margin-bottom", 73 },
{ "margin-left", 74 },
{ "margin-right", 75 },
{ "margin-top", 76 },
{ "marker-offset", 77 },
{ "marks", 78 },
{ "max-height", 79 },
{ "max-width", 80 },
{ "min-height", 81 },
{ "min-width", 82 },
{ "opacity", 83 },
{ "orphans", 84 },
{ "outline", 85 },
{ "outline-color", 86 },
{ "outline-style", 87 },
{ "outline-width", 88 },
{ "overflow", 89 },
{ "padding", 90 },
{ "padding-bottom", 91 },
{ "padding-left", 92 },
{ "padding-right", 93 },
{ "padding-top", 94 },
{ "page", 95 },
{ "page-break-after", 96 },
{ "page-break-before", 97 },
{ "page-break-inside", 98 },
{ "pause", 99 },
{ "pause-after", 100 },
{ "pause-before", 101 },
{ "pitch", 102 },
{ "pitch-range", 103 },
{ "play-during", 104 },
{ "play-during-flags", 105 },
{ "position", 106 },
{ "quotes", 107 },
{ "quotes-close", 108 },
{ "quotes-open", 109 },
{ "richness", 110 },
{ "right", 111 },
{ "size", 112 },
{ "size-height", 113 },
{ "size-width", 114 },
{ "speak", 115 },
{ "speak-header", 116 },
{ "speak-numeral", 117 },
{ "speak-punctuation", 118 },
{ "speech-rate", 119 },
{ "stress", 120 },
{ "table-layout", 121 },
{ "text-align", 122 },
{ "text-decoration", 123 },
{ "text-indent", 124 },
{ "text-shadow", 125 },
{ "text-shadow-color", 126 },
{ "text-shadow-radius", 127 },
{ "text-shadow-x", 128 },
{ "text-shadow-y", 129 },
{ "text-transform", 130 },
{ "top", 131 },
{ "unicode-bidi", 132 },
{ "vertical-align", 133 },
{ "visibility", 134 },
{ "voice-family", 135 },
{ "volume", 136 },
{ "white-space", 137 },
{ "widows", 138 },
{ "width", 139 },
{ "word-spacing", 140 },
{ "z-index", 141 },
1998-04-14 00:24:54 +04:00
};