Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 647
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
2/**
3 * Various CSS Data for CSSTidy
4 *
5 * This file is part of CSSTidy.
6 *
7 * CSSTidy is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * CSSTidy is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with CSSTidy; if not, see <https://www.gnu.org/licenses/>.
19 *
20 * @license https://opensource.org/licenses/gpl-license.php GNU Public License
21 * @package csstidy
22 * @author Florian Schmitz (floele at gmail dot com) 2005, Nikolay Matsievsky (speed at webo dot name) 2010
23 */
24
25defined( 'AT_START' ) || define( 'AT_START', 1 );
26defined( 'AT_END' ) || define( 'AT_END', 2 );
27defined( 'SEL_START' ) || define( 'SEL_START', 3 );
28defined( 'SEL_END' ) || define( 'SEL_END', 4 );
29defined( 'PROPERTY' ) || define( 'PROPERTY', 5 );
30defined( 'VALUE' ) || define( 'VALUE', 6 );
31defined( 'COMMENT' ) || define( 'COMMENT', 7 );
32defined( 'DEFAULT_AT' ) || define( 'DEFAULT_AT', 41 );
33
34/**
35 * All whitespace allowed in CSS
36 *
37 * @global array $GLOBALS['csstidy']['whitespace']
38 * @version 1.0
39 */
40$GLOBALS['csstidy']['whitespace'] = array( ' ', "\n", "\t", "\r", "\x0B" );
41
42/**
43 * All CSS tokens used by csstidy
44 *
45 * @global string $GLOBALS['csstidy']['tokens']
46 * @version 1.0
47 */
48$GLOBALS['csstidy']['tokens'] = '/@}{;:=\'"(,\\!$%&)*+.<>?[]^`|~';
49
50/**
51 * All CSS units (CSS 3 units included)
52 *
53 * @see compress_numbers()
54 * @global array $GLOBALS['csstidy']['units']
55 * @version 1.0
56 */
57$GLOBALS['csstidy']['units'] = array( 'in', 'cm', 'mm', 'pt', 'pc', 'px', 'rem', 'em', '%', 'ex', 'gd', 'vw', 'vh', 'vm', 'deg', 'grad', 'rad', 'ms', 's', 'khz', 'hz' );
58
59/**
60 * Available at-rules
61 *
62 * @global array $GLOBALS['csstidy']['at_rules']
63 * @version 1.0
64 */
65$GLOBALS['csstidy']['at_rules'] = array(
66    'page'      => 'is',
67    'font-face' => 'is',
68    'charset'   => 'iv',
69    'import'    => 'iv',
70    'namespace' => 'iv',
71    'media'     => 'at',
72    'keyframes' => 'at',
73    'supports'  => 'at',
74);
75
76/**
77 * Properties that need a value with unit
78 *
79 * @todo CSS3 properties
80 * @see compress_numbers();
81 * @global array $GLOBALS['csstidy']['unit_values']
82 * @version 1.2
83 */
84$GLOBALS['csstidy']['unit_values'] = array(
85    'background',
86    'background-position',
87    'background-size',
88    'border',
89    'border-top',
90    'border-right',
91    'border-bottom',
92    'border-left',
93    'border-width',
94    'border-top-width',
95    'border-right-width',
96    'border-left-width',
97    'border-bottom-width',
98    'bottom',
99    'border-spacing',
100    'column-gap',
101    'column-width',
102    'font-size',
103    'height',
104    'left',
105    'margin',
106    'margin-top',
107    'margin-right',
108    'margin-bottom',
109    'margin-left',
110    'margin-block',
111    'margin-block-start',
112    'margin-block-end',
113    'max-height',
114    'max-width',
115    'min-height',
116    'min-width',
117    'outline',
118    'outline-width',
119    'padding',
120    'padding-top',
121    'padding-right',
122    'padding-bottom',
123    'padding-left',
124    'perspective',
125    'right',
126    'top',
127    'text-indent',
128    'letter-spacing',
129    'word-spacing',
130    'width',
131);
132
133/**
134 * Properties that allow <color> as value
135 *
136 * @todo CSS3 properties
137 * @see compress_numbers();
138 * @global array $GLOBALS['csstidy']['color_values']
139 * @version 1.0
140 */
141$GLOBALS['csstidy']['color_values']   = array();
142$GLOBALS['csstidy']['color_values'][] = 'background-color';
143$GLOBALS['csstidy']['color_values'][] = 'border-color';
144$GLOBALS['csstidy']['color_values'][] = 'border-top-color';
145$GLOBALS['csstidy']['color_values'][] = 'border-right-color';
146$GLOBALS['csstidy']['color_values'][] = 'border-bottom-color';
147$GLOBALS['csstidy']['color_values'][] = 'border-left-color';
148$GLOBALS['csstidy']['color_values'][] = 'color';
149$GLOBALS['csstidy']['color_values'][] = 'outline-color';
150$GLOBALS['csstidy']['color_values'][] = 'column-rule-color';
151
152/**
153 * Default values for the background properties
154 *
155 * @todo Possibly property names will change during CSS3 development
156 * @global array $GLOBALS['csstidy']['background_prop_default']
157 * @see dissolve_short_bg()
158 * @see merge_bg()
159 * @version 1.0
160 */
161$GLOBALS['csstidy']['background_prop_default']                          = array();
162$GLOBALS['csstidy']['background_prop_default']['background-image']      = 'none';
163$GLOBALS['csstidy']['background_prop_default']['background-size']       = 'auto';
164$GLOBALS['csstidy']['background_prop_default']['background-repeat']     = 'repeat';
165$GLOBALS['csstidy']['background_prop_default']['background-position']   = '0 0';
166$GLOBALS['csstidy']['background_prop_default']['background-attachment'] = 'scroll';
167$GLOBALS['csstidy']['background_prop_default']['background-clip']       = 'border';
168$GLOBALS['csstidy']['background_prop_default']['background-origin']     = 'padding';
169$GLOBALS['csstidy']['background_prop_default']['background-color']      = 'transparent';
170
171/**
172 * Default values for the font properties
173 *
174 * @global array $GLOBALS['csstidy']['font_prop_default']
175 * @see merge_fonts()
176 * @version 1.3
177 */
178$GLOBALS['csstidy']['font_prop_default']                 = array();
179$GLOBALS['csstidy']['font_prop_default']['font-style']   = 'normal';
180$GLOBALS['csstidy']['font_prop_default']['font-variant'] = 'normal';
181$GLOBALS['csstidy']['font_prop_default']['font-weight']  = 'normal';
182$GLOBALS['csstidy']['font_prop_default']['font-size']    = '';
183$GLOBALS['csstidy']['font_prop_default']['line-height']  = '';
184$GLOBALS['csstidy']['font_prop_default']['font-family']  = '';
185
186/**
187 * A list of non-W3C color names which get replaced by their hex-codes
188 *
189 * @global array $GLOBALS['csstidy']['replace_colors']
190 * @see cut_color()
191 * @version 1.0
192 */
193$GLOBALS['csstidy']['replace_colors']                         = array();
194$GLOBALS['csstidy']['replace_colors']['aliceblue']            = '#f0f8ff';
195$GLOBALS['csstidy']['replace_colors']['antiquewhite']         = '#faebd7';
196$GLOBALS['csstidy']['replace_colors']['aquamarine']           = '#7fffd4';
197$GLOBALS['csstidy']['replace_colors']['azure']                = '#f0ffff';
198$GLOBALS['csstidy']['replace_colors']['beige']                = '#f5f5dc';
199$GLOBALS['csstidy']['replace_colors']['bisque']               = '#ffe4c4';
200$GLOBALS['csstidy']['replace_colors']['blanchedalmond']       = '#ffebcd';
201$GLOBALS['csstidy']['replace_colors']['blueviolet']           = '#8a2be2';
202$GLOBALS['csstidy']['replace_colors']['brown']                = '#a52a2a';
203$GLOBALS['csstidy']['replace_colors']['burlywood']            = '#deb887';
204$GLOBALS['csstidy']['replace_colors']['cadetblue']            = '#5f9ea0';
205$GLOBALS['csstidy']['replace_colors']['chartreuse']           = '#7fff00';
206$GLOBALS['csstidy']['replace_colors']['chocolate']            = '#d2691e';
207$GLOBALS['csstidy']['replace_colors']['coral']                = '#ff7f50';
208$GLOBALS['csstidy']['replace_colors']['cornflowerblue']       = '#6495ed';
209$GLOBALS['csstidy']['replace_colors']['cornsilk']             = '#fff8dc';
210$GLOBALS['csstidy']['replace_colors']['crimson']              = '#dc143c';
211$GLOBALS['csstidy']['replace_colors']['cyan']                 = '#00ffff';
212$GLOBALS['csstidy']['replace_colors']['darkblue']             = '#00008b';
213$GLOBALS['csstidy']['replace_colors']['darkcyan']             = '#008b8b';
214$GLOBALS['csstidy']['replace_colors']['darkgoldenrod']        = '#b8860b';
215$GLOBALS['csstidy']['replace_colors']['darkgray']             = '#a9a9a9';
216$GLOBALS['csstidy']['replace_colors']['darkgreen']            = '#006400';
217$GLOBALS['csstidy']['replace_colors']['darkkhaki']            = '#bdb76b';
218$GLOBALS['csstidy']['replace_colors']['darkmagenta']          = '#8b008b';
219$GLOBALS['csstidy']['replace_colors']['darkolivegreen']       = '#556b2f';
220$GLOBALS['csstidy']['replace_colors']['darkorange']           = '#ff8c00';
221$GLOBALS['csstidy']['replace_colors']['darkorchid']           = '#9932cc';
222$GLOBALS['csstidy']['replace_colors']['darkred']              = '#8b0000';
223$GLOBALS['csstidy']['replace_colors']['darksalmon']           = '#e9967a';
224$GLOBALS['csstidy']['replace_colors']['darkseagreen']         = '#8fbc8f';
225$GLOBALS['csstidy']['replace_colors']['darkslateblue']        = '#483d8b';
226$GLOBALS['csstidy']['replace_colors']['darkslategray']        = '#2f4f4f';
227$GLOBALS['csstidy']['replace_colors']['darkturquoise']        = '#00ced1';
228$GLOBALS['csstidy']['replace_colors']['darkviolet']           = '#9400d3';
229$GLOBALS['csstidy']['replace_colors']['deeppink']             = '#ff1493';
230$GLOBALS['csstidy']['replace_colors']['deepskyblue']          = '#00bfff';
231$GLOBALS['csstidy']['replace_colors']['dimgray']              = '#696969';
232$GLOBALS['csstidy']['replace_colors']['dodgerblue']           = '#1e90ff';
233$GLOBALS['csstidy']['replace_colors']['feldspar']             = '#d19275';
234$GLOBALS['csstidy']['replace_colors']['firebrick']            = '#b22222';
235$GLOBALS['csstidy']['replace_colors']['floralwhite']          = '#fffaf0';
236$GLOBALS['csstidy']['replace_colors']['forestgreen']          = '#228b22';
237$GLOBALS['csstidy']['replace_colors']['gainsboro']            = '#dcdcdc';
238$GLOBALS['csstidy']['replace_colors']['ghostwhite']           = '#f8f8ff';
239$GLOBALS['csstidy']['replace_colors']['gold']                 = '#ffd700';
240$GLOBALS['csstidy']['replace_colors']['goldenrod']            = '#daa520';
241$GLOBALS['csstidy']['replace_colors']['greenyellow']          = '#adff2f';
242$GLOBALS['csstidy']['replace_colors']['honeydew']             = '#f0fff0';
243$GLOBALS['csstidy']['replace_colors']['hotpink']              = '#ff69b4';
244$GLOBALS['csstidy']['replace_colors']['indianred']            = '#cd5c5c';
245$GLOBALS['csstidy']['replace_colors']['indigo']               = '#4b0082';
246$GLOBALS['csstidy']['replace_colors']['ivory']                = '#fffff0';
247$GLOBALS['csstidy']['replace_colors']['khaki']                = '#f0e68c';
248$GLOBALS['csstidy']['replace_colors']['lavender']             = '#e6e6fa';
249$GLOBALS['csstidy']['replace_colors']['lavenderblush']        = '#fff0f5';
250$GLOBALS['csstidy']['replace_colors']['lawngreen']            = '#7cfc00';
251$GLOBALS['csstidy']['replace_colors']['lemonchiffon']         = '#fffacd';
252$GLOBALS['csstidy']['replace_colors']['lightblue']            = '#add8e6';
253$GLOBALS['csstidy']['replace_colors']['lightcoral']           = '#f08080';
254$GLOBALS['csstidy']['replace_colors']['lightcyan']            = '#e0ffff';
255$GLOBALS['csstidy']['replace_colors']['lightgoldenrodyellow'] = '#fafad2';
256$GLOBALS['csstidy']['replace_colors']['lightgrey']            = '#d3d3d3';
257$GLOBALS['csstidy']['replace_colors']['lightgreen']           = '#90ee90';
258$GLOBALS['csstidy']['replace_colors']['lightpink']            = '#ffb6c1';
259$GLOBALS['csstidy']['replace_colors']['lightsalmon']          = '#ffa07a';
260$GLOBALS['csstidy']['replace_colors']['lightseagreen']        = '#20b2aa';
261$GLOBALS['csstidy']['replace_colors']['lightskyblue']         = '#87cefa';
262$GLOBALS['csstidy']['replace_colors']['lightslateblue']       = '#8470ff';
263$GLOBALS['csstidy']['replace_colors']['lightslategray']       = '#778899';
264$GLOBALS['csstidy']['replace_colors']['lightsteelblue']       = '#b0c4de';
265$GLOBALS['csstidy']['replace_colors']['lightyellow']          = '#ffffe0';
266$GLOBALS['csstidy']['replace_colors']['limegreen']            = '#32cd32';
267$GLOBALS['csstidy']['replace_colors']['linen']                = '#faf0e6';
268$GLOBALS['csstidy']['replace_colors']['magenta']              = '#ff00ff';
269$GLOBALS['csstidy']['replace_colors']['mediumaquamarine']     = '#66cdaa';
270$GLOBALS['csstidy']['replace_colors']['mediumblue']           = '#0000cd';
271$GLOBALS['csstidy']['replace_colors']['mediumorchid']         = '#ba55d3';
272$GLOBALS['csstidy']['replace_colors']['mediumpurple']         = '#9370d8';
273$GLOBALS['csstidy']['replace_colors']['mediumseagreen']       = '#3cb371';
274$GLOBALS['csstidy']['replace_colors']['mediumslateblue']      = '#7b68ee';
275$GLOBALS['csstidy']['replace_colors']['mediumspringgreen']    = '#00fa9a';
276$GLOBALS['csstidy']['replace_colors']['mediumturquoise']      = '#48d1cc';
277$GLOBALS['csstidy']['replace_colors']['mediumvioletred']      = '#c71585';
278$GLOBALS['csstidy']['replace_colors']['midnightblue']         = '#191970';
279$GLOBALS['csstidy']['replace_colors']['mintcream']            = '#f5fffa';
280$GLOBALS['csstidy']['replace_colors']['mistyrose']            = '#ffe4e1';
281$GLOBALS['csstidy']['replace_colors']['moccasin']             = '#ffe4b5';
282$GLOBALS['csstidy']['replace_colors']['navajowhite']          = '#ffdead';
283$GLOBALS['csstidy']['replace_colors']['oldlace']              = '#fdf5e6';
284$GLOBALS['csstidy']['replace_colors']['olivedrab']            = '#6b8e23';
285$GLOBALS['csstidy']['replace_colors']['orangered']            = '#ff4500';
286$GLOBALS['csstidy']['replace_colors']['orchid']               = '#da70d6';
287$GLOBALS['csstidy']['replace_colors']['palegoldenrod']        = '#eee8aa';
288$GLOBALS['csstidy']['replace_colors']['palegreen']            = '#98fb98';
289$GLOBALS['csstidy']['replace_colors']['paleturquoise']        = '#afeeee';
290$GLOBALS['csstidy']['replace_colors']['palevioletred']        = '#d87093';
291$GLOBALS['csstidy']['replace_colors']['papayawhip']           = '#ffefd5';
292$GLOBALS['csstidy']['replace_colors']['peachpuff']            = '#ffdab9';
293$GLOBALS['csstidy']['replace_colors']['peru']                 = '#cd853f';
294$GLOBALS['csstidy']['replace_colors']['pink']                 = '#ffc0cb';
295$GLOBALS['csstidy']['replace_colors']['plum']                 = '#dda0dd';
296$GLOBALS['csstidy']['replace_colors']['powderblue']           = '#b0e0e6';
297$GLOBALS['csstidy']['replace_colors']['rosybrown']            = '#bc8f8f';
298$GLOBALS['csstidy']['replace_colors']['royalblue']            = '#4169e1';
299$GLOBALS['csstidy']['replace_colors']['saddlebrown']          = '#8b4513';
300$GLOBALS['csstidy']['replace_colors']['salmon']               = '#fa8072';
301$GLOBALS['csstidy']['replace_colors']['sandybrown']           = '#f4a460';
302$GLOBALS['csstidy']['replace_colors']['seagreen']             = '#2e8b57';
303$GLOBALS['csstidy']['replace_colors']['seashell']             = '#fff5ee';
304$GLOBALS['csstidy']['replace_colors']['sienna']               = '#a0522d';
305$GLOBALS['csstidy']['replace_colors']['skyblue']              = '#87ceeb';
306$GLOBALS['csstidy']['replace_colors']['slateblue']            = '#6a5acd';
307$GLOBALS['csstidy']['replace_colors']['slategray']            = '#708090';
308$GLOBALS['csstidy']['replace_colors']['snow']                 = '#fffafa';
309$GLOBALS['csstidy']['replace_colors']['springgreen']          = '#00ff7f';
310$GLOBALS['csstidy']['replace_colors']['steelblue']            = '#4682b4';
311$GLOBALS['csstidy']['replace_colors']['tan']                  = '#d2b48c';
312$GLOBALS['csstidy']['replace_colors']['thistle']              = '#d8bfd8';
313$GLOBALS['csstidy']['replace_colors']['tomato']               = '#ff6347';
314$GLOBALS['csstidy']['replace_colors']['turquoise']            = '#40e0d0';
315$GLOBALS['csstidy']['replace_colors']['violet']               = '#ee82ee';
316$GLOBALS['csstidy']['replace_colors']['violetred']            = '#d02090';
317$GLOBALS['csstidy']['replace_colors']['wheat']                = '#f5deb3';
318$GLOBALS['csstidy']['replace_colors']['whitesmoke']           = '#f5f5f5';
319$GLOBALS['csstidy']['replace_colors']['yellowgreen']          = '#9acd32';
320
321/**
322 * A list of all shorthand properties that are divided into four properties and/or have four subvalues
323 *
324 * @global array $GLOBALS['csstidy']['shorthands']
325 * @todo Are there new ones in CSS3?
326 * @see dissolve_4value_shorthands()
327 * @see merge_4value_shorthands()
328 * @version 1.0
329 */
330$GLOBALS['csstidy']['shorthands']                       = array();
331$GLOBALS['csstidy']['shorthands']['border-color']       = array( 'border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color' );
332$GLOBALS['csstidy']['shorthands']['border-style']       = array( 'border-top-style', 'border-right-style', 'border-bottom-style', 'border-left-style' );
333$GLOBALS['csstidy']['shorthands']['border-width']       = array( 'border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width' );
334$GLOBALS['csstidy']['shorthands']['margin']             = array( 'margin-top', 'margin-right', 'margin-bottom', 'margin-left' );
335$GLOBALS['csstidy']['shorthands']['margin-block']       = array( 'margin-block-start', 'margin-block-end' );
336$GLOBALS['csstidy']['shorthands']['padding']            = array( 'padding-top', 'padding-right', 'padding-bottom', 'padding-left' );
337$GLOBALS['csstidy']['shorthands']['-moz-border-radius'] = 0;
338
339/**
340 * All CSS Properties. Needed for csstidy::property_is_next()
341 *
342 * @global array $GLOBALS['csstidy']['all_properties']
343 * @todo Add CSS3 properties
344 * @version 1.0
345 * @see csstidy::property_is_next()
346 */
347$GLOBALS['csstidy']['all_properties']['accent-color']               = 'CSS3.0';
348$GLOBALS['csstidy']['all_properties']['align-content']              = 'CSS3.0';
349$GLOBALS['csstidy']['all_properties']['align-items']                = 'CSS3.0';
350$GLOBALS['csstidy']['all_properties']['align-self']                 = 'CSS3.0';
351$GLOBALS['csstidy']['all_properties']['alignment-adjust']           = 'CSS3.0';
352$GLOBALS['csstidy']['all_properties']['alignment-baseline']         = 'CSS3.0';
353$GLOBALS['csstidy']['all_properties']['animation']                  = 'CSS3.0';
354$GLOBALS['csstidy']['all_properties']['animation-delay']            = 'CSS3.0';
355$GLOBALS['csstidy']['all_properties']['animation-direction']        = 'CSS3.0';
356$GLOBALS['csstidy']['all_properties']['animation-duration']         = 'CSS3.0';
357$GLOBALS['csstidy']['all_properties']['animation-fill-mode']        = 'CSS3.0';
358$GLOBALS['csstidy']['all_properties']['animation-iteration-count']  = 'CSS3.0';
359$GLOBALS['csstidy']['all_properties']['animation-name']             = 'CSS3.0';
360$GLOBALS['csstidy']['all_properties']['animation-play-state']       = 'CSS3.0';
361$GLOBALS['csstidy']['all_properties']['animation-timing-function']  = 'CSS3.0';
362$GLOBALS['csstidy']['all_properties']['appearance']                 = 'CSS3.0';
363$GLOBALS['csstidy']['all_properties']['aspect-ratio']               = 'CSS3.0';
364$GLOBALS['csstidy']['all_properties']['azimuth']                    = 'CSS2.0,CSS2.1,CSS3.0';
365$GLOBALS['csstidy']['all_properties']['backface-visibility']        = 'CSS3.0';
366$GLOBALS['csstidy']['all_properties']['background']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
367$GLOBALS['csstidy']['all_properties']['background-attachment']      = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
368$GLOBALS['csstidy']['all_properties']['background-clip']            = 'CSS3.0';
369$GLOBALS['csstidy']['all_properties']['background-color']           = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
370$GLOBALS['csstidy']['all_properties']['background-image']           = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
371$GLOBALS['csstidy']['all_properties']['background-origin']          = 'CSS3.0';
372$GLOBALS['csstidy']['all_properties']['background-position']        = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
373$GLOBALS['csstidy']['all_properties']['background-repeat']          = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
374$GLOBALS['csstidy']['all_properties']['background-size']            = 'CSS3.0';
375$GLOBALS['csstidy']['all_properties']['baseline-shift']             = 'CSS3.0';
376$GLOBALS['csstidy']['all_properties']['binding']                    = 'CSS3.0';
377$GLOBALS['csstidy']['all_properties']['bleed']                      = 'CSS3.0';
378$GLOBALS['csstidy']['all_properties']['bookmark-label']             = 'CSS3.0';
379$GLOBALS['csstidy']['all_properties']['bookmark-level']             = 'CSS3.0';
380$GLOBALS['csstidy']['all_properties']['bookmark-state']             = 'CSS3.0';
381$GLOBALS['csstidy']['all_properties']['bookmark-target']            = 'CSS3.0';
382$GLOBALS['csstidy']['all_properties']['border']                     = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
383$GLOBALS['csstidy']['all_properties']['border-bottom']              = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
384$GLOBALS['csstidy']['all_properties']['border-bottom-color']        = 'CSS2.0,CSS2.1,CSS3.0';
385$GLOBALS['csstidy']['all_properties']['border-bottom-left-radius']  = 'CSS3.0';
386$GLOBALS['csstidy']['all_properties']['border-bottom-right-radius'] = 'CSS3.0';
387$GLOBALS['csstidy']['all_properties']['border-bottom-style']        = 'CSS2.0,CSS2.1,CSS3.0';
388$GLOBALS['csstidy']['all_properties']['border-bottom-width']        = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
389$GLOBALS['csstidy']['all_properties']['border-collapse']            = 'CSS2.0,CSS2.1,CSS3.0';
390$GLOBALS['csstidy']['all_properties']['border-color']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
391$GLOBALS['csstidy']['all_properties']['border-image']               = 'CSS3.0';
392$GLOBALS['csstidy']['all_properties']['border-image-outset']        = 'CSS3.0';
393$GLOBALS['csstidy']['all_properties']['border-image-repeat']        = 'CSS3.0';
394$GLOBALS['csstidy']['all_properties']['border-image-slice']         = 'CSS3.0';
395$GLOBALS['csstidy']['all_properties']['border-image-source']        = 'CSS3.0';
396$GLOBALS['csstidy']['all_properties']['border-image-width']         = 'CSS3.0';
397$GLOBALS['csstidy']['all_properties']['border-left']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
398$GLOBALS['csstidy']['all_properties']['border-left-color']          = 'CSS2.0,CSS2.1,CSS3.0';
399$GLOBALS['csstidy']['all_properties']['border-left-style']          = 'CSS2.0,CSS2.1,CSS3.0';
400$GLOBALS['csstidy']['all_properties']['border-left-width']          = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
401$GLOBALS['csstidy']['all_properties']['border-radius']              = 'CSS3.0';
402$GLOBALS['csstidy']['all_properties']['border-right']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
403$GLOBALS['csstidy']['all_properties']['border-right-color']         = 'CSS2.0,CSS2.1,CSS3.0';
404$GLOBALS['csstidy']['all_properties']['border-right-style']         = 'CSS2.0,CSS2.1,CSS3.0';
405$GLOBALS['csstidy']['all_properties']['border-right-width']         = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
406$GLOBALS['csstidy']['all_properties']['border-spacing']             = 'CSS2.0,CSS2.1,CSS3.0';
407$GLOBALS['csstidy']['all_properties']['border-style']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
408$GLOBALS['csstidy']['all_properties']['border-top']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
409$GLOBALS['csstidy']['all_properties']['border-top-color']           = 'CSS2.0,CSS2.1,CSS3.0';
410$GLOBALS['csstidy']['all_properties']['border-top-left-radius']     = 'CSS3.0';
411$GLOBALS['csstidy']['all_properties']['border-top-right-radius']    = 'CSS3.0';
412$GLOBALS['csstidy']['all_properties']['border-top-style']           = 'CSS2.0,CSS2.1,CSS3.0';
413$GLOBALS['csstidy']['all_properties']['border-top-width']           = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
414$GLOBALS['csstidy']['all_properties']['border-width']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
415$GLOBALS['csstidy']['all_properties']['bottom']                     = 'CSS2.0,CSS2.1,CSS3.0';
416$GLOBALS['csstidy']['all_properties']['box-decoration-break']       = 'CSS3.0';
417$GLOBALS['csstidy']['all_properties']['box-shadow']                 = 'CSS3.0';
418$GLOBALS['csstidy']['all_properties']['box-sizing']                 = 'CSS3.0';
419$GLOBALS['csstidy']['all_properties']['break-after']                = 'CSS3.0';
420$GLOBALS['csstidy']['all_properties']['break-before']               = 'CSS3.0';
421$GLOBALS['csstidy']['all_properties']['break-inside']               = 'CSS3.0';
422$GLOBALS['csstidy']['all_properties']['caption-side']               = 'CSS2.0,CSS2.1,CSS3.0';
423$GLOBALS['csstidy']['all_properties']['clear']                      = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
424$GLOBALS['csstidy']['all_properties']['clip']                       = 'CSS2.0,CSS2.1,CSS3.0';
425$GLOBALS['csstidy']['all_properties']['clip-path']                  = 'CSS2.0,CSS2.1,CSS3.0';
426$GLOBALS['csstidy']['all_properties']['color']                      = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
427$GLOBALS['csstidy']['all_properties']['color-profile']              = 'CSS3.0';
428$GLOBALS['csstidy']['all_properties']['column-count']               = 'CSS3.0';
429$GLOBALS['csstidy']['all_properties']['column-fill']                = 'CSS3.0';
430$GLOBALS['csstidy']['all_properties']['column-gap']                 = 'CSS3.0';
431$GLOBALS['csstidy']['all_properties']['column-rule']                = 'CSS3.0';
432$GLOBALS['csstidy']['all_properties']['column-rule-color']          = 'CSS3.0';
433$GLOBALS['csstidy']['all_properties']['column-rule-style']          = 'CSS3.0';
434$GLOBALS['csstidy']['all_properties']['column-rule-width']          = 'CSS3.0';
435$GLOBALS['csstidy']['all_properties']['column-span']                = 'CSS3.0';
436$GLOBALS['csstidy']['all_properties']['column-width']               = 'CSS3.0';
437$GLOBALS['csstidy']['all_properties']['columns']                    = 'CSS3.0';
438$GLOBALS['csstidy']['all_properties']['content']                    = 'CSS2.0,CSS2.1,CSS3.0';
439$GLOBALS['csstidy']['all_properties']['counter-increment']          = 'CSS2.0,CSS2.1,CSS3.0';
440$GLOBALS['csstidy']['all_properties']['counter-reset']              = 'CSS2.0,CSS2.1,CSS3.0';
441$GLOBALS['csstidy']['all_properties']['crop']                       = 'CSS3.0';
442$GLOBALS['csstidy']['all_properties']['cue']                        = 'CSS2.0,CSS2.1,CSS3.0';
443$GLOBALS['csstidy']['all_properties']['cue-after']                  = 'CSS2.0,CSS2.1,CSS3.0';
444$GLOBALS['csstidy']['all_properties']['cue-before']                 = 'CSS2.0,CSS2.1,CSS3.0';
445$GLOBALS['csstidy']['all_properties']['cursor']                     = 'CSS2.0,CSS2.1,CSS3.0';
446$GLOBALS['csstidy']['all_properties']['direction']                  = 'CSS2.0,CSS2.1,CSS3.0';
447$GLOBALS['csstidy']['all_properties']['display']                    = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
448$GLOBALS['csstidy']['all_properties']['dominant-baseline']          = 'CSS3.0';
449$GLOBALS['csstidy']['all_properties']['drop-initial-after-adjust']  = 'CSS3.0';
450$GLOBALS['csstidy']['all_properties']['drop-initial-after-align']   = 'CSS3.0';
451$GLOBALS['csstidy']['all_properties']['drop-initial-before-adjust'] = 'CSS3.0';
452$GLOBALS['csstidy']['all_properties']['drop-initial-before-align']  = 'CSS3.0';
453$GLOBALS['csstidy']['all_properties']['drop-initial-size']          = 'CSS3.0';
454$GLOBALS['csstidy']['all_properties']['drop-initial-value']         = 'CSS3.0';
455$GLOBALS['csstidy']['all_properties']['elevation']                  = 'CSS2.0,CSS2.1,CSS3.0';
456$GLOBALS['csstidy']['all_properties']['empty-cells']                = 'CSS2.0,CSS2.1,CSS3.0';
457$GLOBALS['csstidy']['all_properties']['fill']                       = 'CSS3.0';
458$GLOBALS['csstidy']['all_properties']['fit']                        = 'CSS3.0';
459$GLOBALS['csstidy']['all_properties']['fit-position']               = 'CSS3.0';
460$GLOBALS['csstidy']['all_properties']['flex']                       = 'CSS3.0';
461$GLOBALS['csstidy']['all_properties']['flex-align']                 = 'CSS3.0';
462$GLOBALS['csstidy']['all_properties']['flex-basis']                 = 'CSS3.0';
463$GLOBALS['csstidy']['all_properties']['flex-direction']             = 'CSS3.0';
464$GLOBALS['csstidy']['all_properties']['flex-flow']                  = 'CSS3.0';
465$GLOBALS['csstidy']['all_properties']['flex-grow']                  = 'CSS3.0';
466$GLOBALS['csstidy']['all_properties']['flex-line-pack']             = 'CSS3.0';
467$GLOBALS['csstidy']['all_properties']['flex-order']                 = 'CSS3.0';
468$GLOBALS['csstidy']['all_properties']['flex-pack']                  = 'CSS3.0';
469$GLOBALS['csstidy']['all_properties']['flex-shrink']                = 'CSS3.0';
470$GLOBALS['csstidy']['all_properties']['flex-wrap']                  = 'CSS3.0';
471$GLOBALS['csstidy']['all_properties']['float']                      = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
472$GLOBALS['csstidy']['all_properties']['float-offset']               = 'CSS3.0';
473$GLOBALS['csstidy']['all_properties']['font']                       = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
474$GLOBALS['csstidy']['all_properties']['font-family']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
475$GLOBALS['csstidy']['all_properties']['font-size']                  = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
476$GLOBALS['csstidy']['all_properties']['font-size-adjust']           = 'CSS2.0,CSS3.0';
477$GLOBALS['csstidy']['all_properties']['font-stretch']               = 'CSS2.0,CSS3.0';
478$GLOBALS['csstidy']['all_properties']['font-style']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
479$GLOBALS['csstidy']['all_properties']['font-variant']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
480$GLOBALS['csstidy']['all_properties']['font-weight']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
481$GLOBALS['csstidy']['all_properties']['gap']                        = 'CSS3.0';
482$GLOBALS['csstidy']['all_properties']['grid']                       = 'CSS3.0';
483$GLOBALS['csstidy']['all_properties']['grid-area']                  = 'CSS3.0';
484$GLOBALS['csstidy']['all_properties']['grid-auto-columns']          = 'CSS3.0';
485$GLOBALS['csstidy']['all_properties']['grid-auto-flow']             = 'CSS3.0';
486$GLOBALS['csstidy']['all_properties']['grid-auto-rows']             = 'CSS3.0';
487$GLOBALS['csstidy']['all_properties']['grid-column']                = 'CSS3.0';
488$GLOBALS['csstidy']['all_properties']['grid-columns']               = 'CSS3.0';
489$GLOBALS['csstidy']['all_properties']['grid-column-end']            = 'CSS3.0';
490$GLOBALS['csstidy']['all_properties']['grid-column-gap']            = 'CSS3.0';
491$GLOBALS['csstidy']['all_properties']['grid-column-start']          = 'CSS3.0';
492$GLOBALS['csstidy']['all_properties']['grid-gap']                   = 'CSS3.0';
493$GLOBALS['csstidy']['all_properties']['grid-row']                   = 'CSS3.0';
494$GLOBALS['csstidy']['all_properties']['grid-rows']                  = 'CSS3.0';
495$GLOBALS['csstidy']['all_properties']['grid-row-end']               = 'CSS3.0';
496$GLOBALS['csstidy']['all_properties']['grid-row-gap']               = 'CSS3.0';
497$GLOBALS['csstidy']['all_properties']['grid-row-start']             = 'CSS3.0';
498$GLOBALS['csstidy']['all_properties']['grid-template']              = 'CSS3.0';
499$GLOBALS['csstidy']['all_properties']['grid-template-areas']        = 'CSS3.0';
500$GLOBALS['csstidy']['all_properties']['grid-template-columns']      = 'CSS3.0';
501$GLOBALS['csstidy']['all_properties']['grid-template-rows']         = 'CSS3.0';
502$GLOBALS['csstidy']['all_properties']['hanging-punctuation']        = 'CSS3.0';
503$GLOBALS['csstidy']['all_properties']['height']                     = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
504$GLOBALS['csstidy']['all_properties']['hyphenate-after']            = 'CSS3.0';
505$GLOBALS['csstidy']['all_properties']['hyphenate-before']           = 'CSS3.0';
506$GLOBALS['csstidy']['all_properties']['hyphenate-character']        = 'CSS3.0';
507$GLOBALS['csstidy']['all_properties']['hyphenate-lines']            = 'CSS3.0';
508$GLOBALS['csstidy']['all_properties']['hyphenate-resource']         = 'CSS3.0';
509$GLOBALS['csstidy']['all_properties']['hyphens']                    = 'CSS3.0';
510$GLOBALS['csstidy']['all_properties']['icon']                       = 'CSS3.0';
511$GLOBALS['csstidy']['all_properties']['image-orientation']          = 'CSS3.0';
512$GLOBALS['csstidy']['all_properties']['image-rendering']            = 'CSS3.0';
513$GLOBALS['csstidy']['all_properties']['image-resolution']           = 'CSS3.0';
514$GLOBALS['csstidy']['all_properties']['inline-box-align']           = 'CSS3.0';
515$GLOBALS['csstidy']['all_properties']['justify-content']            = 'CSS3.0';
516$GLOBALS['csstidy']['all_properties']['justify-items']              = 'CSS3.0';
517$GLOBALS['csstidy']['all_properties']['justify-self']               = 'CSS3.0';
518$GLOBALS['csstidy']['all_properties']['left']                       = 'CSS2.0,CSS2.1,CSS3.0';
519$GLOBALS['csstidy']['all_properties']['letter-spacing']             = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
520$GLOBALS['csstidy']['all_properties']['line-break']                 = 'CSS3.0';
521$GLOBALS['csstidy']['all_properties']['line-height']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
522$GLOBALS['csstidy']['all_properties']['line-stacking']              = 'CSS3.0';
523$GLOBALS['csstidy']['all_properties']['line-stacking-ruby']         = 'CSS3.0';
524$GLOBALS['csstidy']['all_properties']['line-stacking-shift']        = 'CSS3.0';
525$GLOBALS['csstidy']['all_properties']['line-stacking-strategy']     = 'CSS3.0';
526$GLOBALS['csstidy']['all_properties']['list-style']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
527$GLOBALS['csstidy']['all_properties']['list-style-image']           = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
528$GLOBALS['csstidy']['all_properties']['list-style-position']        = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
529$GLOBALS['csstidy']['all_properties']['list-style-type']            = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
530$GLOBALS['csstidy']['all_properties']['margin']                     = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
531$GLOBALS['csstidy']['all_properties']['margin-bottom']              = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
532$GLOBALS['csstidy']['all_properties']['margin-left']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
533$GLOBALS['csstidy']['all_properties']['margin-right']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
534$GLOBALS['csstidy']['all_properties']['margin-top']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
535
536/*
537 * Part of the W3C Working Draft:
538 * https://www.w3.org/TR/css-logical-1/#margin-properties
539 */
540$GLOBALS['csstidy']['all_properties']['margin-block']       = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
541$GLOBALS['csstidy']['all_properties']['margin-block-start'] = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
542$GLOBALS['csstidy']['all_properties']['margin-block-end']   = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
543
544$GLOBALS['csstidy']['all_properties']['marker-offset']               = 'CSS3.0';
545$GLOBALS['csstidy']['all_properties']['marks']                       = 'CSS2.0,CSS3.0';
546$GLOBALS['csstidy']['all_properties']['marquee-direction']           = 'CSS3.0';
547$GLOBALS['csstidy']['all_properties']['marquee-loop']                = 'CSS3.0';
548$GLOBALS['csstidy']['all_properties']['marquee-play-count']          = 'CSS3.0';
549$GLOBALS['csstidy']['all_properties']['marquee-speed']               = 'CSS3.0';
550$GLOBALS['csstidy']['all_properties']['marquee-style']               = 'CSS3.0';
551$GLOBALS['csstidy']['all_properties']['mask']                        = 'CSS3.0';
552$GLOBALS['csstidy']['all_properties']['mask-clip']                   = 'CSS3.0';
553$GLOBALS['csstidy']['all_properties']['mask-composite']              = 'CSS3.0';
554$GLOBALS['csstidy']['all_properties']['mask-image']                  = 'CSS3.0';
555$GLOBALS['csstidy']['all_properties']['mask-mode']                   = 'CSS3.0';
556$GLOBALS['csstidy']['all_properties']['mask-origin']                 = 'CSS3.0';
557$GLOBALS['csstidy']['all_properties']['mask-position']               = 'CSS3.0';
558$GLOBALS['csstidy']['all_properties']['mask-repeat']                 = 'CSS3.0';
559$GLOBALS['csstidy']['all_properties']['mask-size']                   = 'CSS3.0';
560$GLOBALS['csstidy']['all_properties']['max-height']                  = 'CSS2.0,CSS2.1,CSS3.0';
561$GLOBALS['csstidy']['all_properties']['max-width']                   = 'CSS2.0,CSS2.1,CSS3.0';
562$GLOBALS['csstidy']['all_properties']['min-height']                  = 'CSS2.0,CSS2.1,CSS3.0';
563$GLOBALS['csstidy']['all_properties']['min-width']                   = 'CSS2.0,CSS2.1,CSS3.0';
564$GLOBALS['csstidy']['all_properties']['move-to']                     = 'CSS3.0';
565$GLOBALS['csstidy']['all_properties']['nav-down']                    = 'CSS3.0';
566$GLOBALS['csstidy']['all_properties']['nav-index']                   = 'CSS3.0';
567$GLOBALS['csstidy']['all_properties']['nav-left']                    = 'CSS3.0';
568$GLOBALS['csstidy']['all_properties']['nav-right']                   = 'CSS3.0';
569$GLOBALS['csstidy']['all_properties']['nav-up']                      = 'CSS3.0';
570$GLOBALS['csstidy']['all_properties']['object-fit']                  = 'CSS3.0';
571$GLOBALS['csstidy']['all_properties']['object-position']             = 'CSS3.0';
572$GLOBALS['csstidy']['all_properties']['opacity']                     = 'CSS3.0';
573$GLOBALS['csstidy']['all_properties']['order']                       = 'CSS3.0';
574$GLOBALS['csstidy']['all_properties']['orphans']                     = 'CSS2.0,CSS2.1,CSS3.0';
575$GLOBALS['csstidy']['all_properties']['outline']                     = 'CSS2.0,CSS2.1,CSS3.0';
576$GLOBALS['csstidy']['all_properties']['outline-color']               = 'CSS2.0,CSS2.1,CSS3.0';
577$GLOBALS['csstidy']['all_properties']['outline-offset']              = 'CSS3.0';
578$GLOBALS['csstidy']['all_properties']['outline-style']               = 'CSS2.0,CSS2.1,CSS3.0';
579$GLOBALS['csstidy']['all_properties']['outline-width']               = 'CSS2.0,CSS2.1,CSS3.0';
580$GLOBALS['csstidy']['all_properties']['overflow']                    = 'CSS2.0,CSS2.1,CSS3.0';
581$GLOBALS['csstidy']['all_properties']['overflow-style']              = 'CSS3.0';
582$GLOBALS['csstidy']['all_properties']['overflow-wrap']               = 'CSS3.0';
583$GLOBALS['csstidy']['all_properties']['overflow-x']                  = 'CSS3.0';
584$GLOBALS['csstidy']['all_properties']['overflow-y']                  = 'CSS3.0';
585$GLOBALS['csstidy']['all_properties']['padding']                     = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
586$GLOBALS['csstidy']['all_properties']['padding-bottom']              = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
587$GLOBALS['csstidy']['all_properties']['padding-left']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
588$GLOBALS['csstidy']['all_properties']['padding-right']               = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
589$GLOBALS['csstidy']['all_properties']['padding-top']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
590$GLOBALS['csstidy']['all_properties']['page']                        = 'CSS2.0,CSS3.0';
591$GLOBALS['csstidy']['all_properties']['page-break-after']            = 'CSS2.0,CSS2.1,CSS3.0';
592$GLOBALS['csstidy']['all_properties']['page-break-before']           = 'CSS2.0,CSS2.1,CSS3.0';
593$GLOBALS['csstidy']['all_properties']['page-break-inside']           = 'CSS2.0,CSS2.1,CSS3.0';
594$GLOBALS['csstidy']['all_properties']['page-policy']                 = 'CSS3.0';
595$GLOBALS['csstidy']['all_properties']['pause']                       = 'CSS2.0,CSS2.1,CSS3.0';
596$GLOBALS['csstidy']['all_properties']['pause-after']                 = 'CSS2.0,CSS2.1,CSS3.0';
597$GLOBALS['csstidy']['all_properties']['pause-before']                = 'CSS2.0,CSS2.1,CSS3.0';
598$GLOBALS['csstidy']['all_properties']['perspective']                 = 'CSS3.0';
599$GLOBALS['csstidy']['all_properties']['perspective-origin']          = 'CSS3.0';
600$GLOBALS['csstidy']['all_properties']['phonemes']                    = 'CSS3.0';
601$GLOBALS['csstidy']['all_properties']['pitch']                       = 'CSS2.0,CSS2.1,CSS3.0';
602$GLOBALS['csstidy']['all_properties']['pitch-range']                 = 'CSS2.0,CSS2.1,CSS3.0';
603$GLOBALS['csstidy']['all_properties']['play-during']                 = 'CSS2.0,CSS2.1,CSS3.0';
604$GLOBALS['csstidy']['all_properties']['position']                    = 'CSS2.0,CSS2.1,CSS3.0';
605$GLOBALS['csstidy']['all_properties']['presentation-level']          = 'CSS3.0';
606$GLOBALS['csstidy']['all_properties']['punctuation-trim']            = 'CSS3.0';
607$GLOBALS['csstidy']['all_properties']['quotes']                      = 'CSS2.0,CSS2.1,CSS3.0';
608$GLOBALS['csstidy']['all_properties']['rendering-intent']            = 'CSS3.0';
609$GLOBALS['csstidy']['all_properties']['resize']                      = 'CSS3.0';
610$GLOBALS['csstidy']['all_properties']['rest']                        = 'CSS3.0';
611$GLOBALS['csstidy']['all_properties']['rest-after']                  = 'CSS3.0';
612$GLOBALS['csstidy']['all_properties']['rest-before']                 = 'CSS3.0';
613$GLOBALS['csstidy']['all_properties']['richness']                    = 'CSS2.0,CSS2.1,CSS3.0';
614$GLOBALS['csstidy']['all_properties']['right']                       = 'CSS2.0,CSS2.1,CSS3.0';
615$GLOBALS['csstidy']['all_properties']['rotation']                    = 'CSS3.0';
616$GLOBALS['csstidy']['all_properties']['rotation-point']              = 'CSS3.0';
617$GLOBALS['csstidy']['all_properties']['ruby-align']                  = 'CSS3.0';
618$GLOBALS['csstidy']['all_properties']['ruby-overhang']               = 'CSS3.0';
619$GLOBALS['csstidy']['all_properties']['ruby-position']               = 'CSS3.0';
620$GLOBALS['csstidy']['all_properties']['ruby-span']                   = 'CSS3.0';
621$GLOBALS['csstidy']['all_properties']['scroll-behavior']             = 'CSS3.0';
622$GLOBALS['csstidy']['all_properties']['scroll-margin']               = 'CSS3.0';
623$GLOBALS['csstidy']['all_properties']['scroll-margin-block']         = 'CSS3.0';
624$GLOBALS['csstidy']['all_properties']['scroll-margin-block-end']     = 'CSS3.0';
625$GLOBALS['csstidy']['all_properties']['scroll-margin-block-start']   = 'CSS3.0';
626$GLOBALS['csstidy']['all_properties']['scroll-margin-bottom']        = 'CSS3.0';
627$GLOBALS['csstidy']['all_properties']['scroll-margin-inline']        = 'CSS3.0';
628$GLOBALS['csstidy']['all_properties']['scroll-margin-inline-end']    = 'CSS3.0';
629$GLOBALS['csstidy']['all_properties']['scroll-margin-inline-start']  = 'CSS3.0';
630$GLOBALS['csstidy']['all_properties']['scroll-margin-left']          = 'CSS3.0';
631$GLOBALS['csstidy']['all_properties']['scroll-margin-right']         = 'CSS3.0';
632$GLOBALS['csstidy']['all_properties']['scroll-margin-top']           = 'CSS3.0';
633$GLOBALS['csstidy']['all_properties']['scroll-padding']              = 'CSS3.0';
634$GLOBALS['csstidy']['all_properties']['scroll-padding-block']        = 'CSS3.0';
635$GLOBALS['csstidy']['all_properties']['scroll-padding-block-end']    = 'CSS3.0';
636$GLOBALS['csstidy']['all_properties']['scroll-padding-block-start']  = 'CSS3.0';
637$GLOBALS['csstidy']['all_properties']['scroll-padding-bottom']       = 'CSS3.0';
638$GLOBALS['csstidy']['all_properties']['scroll-padding-inline']       = 'CSS3.0';
639$GLOBALS['csstidy']['all_properties']['scroll-padding-inline-end']   = 'CSS3.0';
640$GLOBALS['csstidy']['all_properties']['scroll-padding-inline-start'] = 'CSS3.0';
641$GLOBALS['csstidy']['all_properties']['scroll-padding-left']         = 'CSS3.0';
642$GLOBALS['csstidy']['all_properties']['scroll-padding-right']        = 'CSS3.0';
643$GLOBALS['csstidy']['all_properties']['scroll-padding-top']          = 'CSS3.0';
644$GLOBALS['csstidy']['all_properties']['scroll-snap-align']           = 'CSS3.0';
645$GLOBALS['csstidy']['all_properties']['scroll-snap-stop']            = 'CSS3.0';
646$GLOBALS['csstidy']['all_properties']['size']                        = 'CSS2.0,CSS3.0';
647$GLOBALS['csstidy']['all_properties']['speak']                       = 'CSS2.0,CSS2.1,CSS3.0';
648$GLOBALS['csstidy']['all_properties']['speak-header']                = 'CSS2.0,CSS2.1,CSS3.0';
649$GLOBALS['csstidy']['all_properties']['speak-numeral']               = 'CSS2.0,CSS2.1,CSS3.0';
650$GLOBALS['csstidy']['all_properties']['speak-punctuation']           = 'CSS2.0,CSS2.1,CSS3.0';
651$GLOBALS['csstidy']['all_properties']['speech-rate']                 = 'CSS2.0,CSS2.1,CSS3.0';
652$GLOBALS['csstidy']['all_properties']['src']                         = 'CSS3.0';
653$GLOBALS['csstidy']['all_properties']['stress']                      = 'CSS2.0,CSS2.1,CSS3.0';
654$GLOBALS['csstidy']['all_properties']['string-set']                  = 'CSS3.0';
655$GLOBALS['csstidy']['all_properties']['stroke']                      = 'CSS3.0';
656$GLOBALS['csstidy']['all_properties']['tab-size']                    = 'CSS3.0';
657$GLOBALS['csstidy']['all_properties']['table-layout']                = 'CSS2.0,CSS2.1,CSS3.0';
658$GLOBALS['csstidy']['all_properties']['target']                      = 'CSS3.0';
659$GLOBALS['csstidy']['all_properties']['target-name']                 = 'CSS3.0';
660$GLOBALS['csstidy']['all_properties']['target-new']                  = 'CSS3.0';
661$GLOBALS['csstidy']['all_properties']['target-position']             = 'CSS3.0';
662$GLOBALS['csstidy']['all_properties']['text-align']                  = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
663$GLOBALS['csstidy']['all_properties']['text-align-last']             = 'CSS3.0';
664$GLOBALS['csstidy']['all_properties']['text-decoration']             = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
665$GLOBALS['csstidy']['all_properties']['text-decoration-color']       = 'CSS3.0';
666$GLOBALS['csstidy']['all_properties']['text-decoration-line']        = 'CSS3.0';
667$GLOBALS['csstidy']['all_properties']['text-decoration-skip']        = 'CSS3.0';
668$GLOBALS['csstidy']['all_properties']['text-decoration-style']       = 'CSS3.0';
669$GLOBALS['csstidy']['all_properties']['text-emphasis']               = 'CSS3.0';
670$GLOBALS['csstidy']['all_properties']['text-emphasis-color']         = 'CSS3.0';
671$GLOBALS['csstidy']['all_properties']['text-emphasis-position']      = 'CSS3.0';
672$GLOBALS['csstidy']['all_properties']['text-emphasis-style']         = 'CSS3.0';
673$GLOBALS['csstidy']['all_properties']['text-height']                 = 'CSS3.0';
674$GLOBALS['csstidy']['all_properties']['text-indent']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
675$GLOBALS['csstidy']['all_properties']['text-justify']                = 'CSS3.0';
676$GLOBALS['csstidy']['all_properties']['text-outline']                = 'CSS3.0';
677$GLOBALS['csstidy']['all_properties']['text-shadow']                 = 'CSS2.0,CSS3.0';
678$GLOBALS['csstidy']['all_properties']['text-space-collapse']         = 'CSS3.0';
679$GLOBALS['csstidy']['all_properties']['text-transform']              = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
680$GLOBALS['csstidy']['all_properties']['text-underline-offset']       = 'CSS3.0';
681$GLOBALS['csstidy']['all_properties']['text-underline-position']     = 'CSS3.0';
682$GLOBALS['csstidy']['all_properties']['text-wrap']                   = 'CSS3.0';
683$GLOBALS['csstidy']['all_properties']['top']                         = 'CSS2.0,CSS2.1,CSS3.0';
684$GLOBALS['csstidy']['all_properties']['transform']                   = 'CSS3.0';
685$GLOBALS['csstidy']['all_properties']['transform-origin']            = 'CSS3.0';
686$GLOBALS['csstidy']['all_properties']['transform-style']             = 'CSS3.0';
687$GLOBALS['csstidy']['all_properties']['transition']                  = 'CSS3.0';
688$GLOBALS['csstidy']['all_properties']['transition-delay']            = 'CSS3.0';
689$GLOBALS['csstidy']['all_properties']['transition-duration']         = 'CSS3.0';
690$GLOBALS['csstidy']['all_properties']['transition-property']         = 'CSS3.0';
691$GLOBALS['csstidy']['all_properties']['transition-timing-function']  = 'CSS3.0';
692$GLOBALS['csstidy']['all_properties']['unicode-bidi']                = 'CSS2.0,CSS2.1,CSS3.0';
693$GLOBALS['csstidy']['all_properties']['vertical-align']              = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
694$GLOBALS['csstidy']['all_properties']['visibility']                  = 'CSS2.0,CSS2.1,CSS3.0';
695$GLOBALS['csstidy']['all_properties']['voice-balance']               = 'CSS3.0';
696$GLOBALS['csstidy']['all_properties']['voice-duration']              = 'CSS3.0';
697$GLOBALS['csstidy']['all_properties']['voice-family']                = 'CSS2.0,CSS2.1,CSS3.0';
698$GLOBALS['csstidy']['all_properties']['voice-pitch']                 = 'CSS3.0';
699$GLOBALS['csstidy']['all_properties']['voice-pitch-range']           = 'CSS3.0';
700$GLOBALS['csstidy']['all_properties']['voice-rate']                  = 'CSS3.0';
701$GLOBALS['csstidy']['all_properties']['voice-stress']                = 'CSS3.0';
702$GLOBALS['csstidy']['all_properties']['voice-volume']                = 'CSS3.0';
703$GLOBALS['csstidy']['all_properties']['volume']                      = 'CSS2.0,CSS2.1,CSS3.0';
704$GLOBALS['csstidy']['all_properties']['white-space']                 = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
705$GLOBALS['csstidy']['all_properties']['widows']                      = 'CSS2.0,CSS2.1,CSS3.0';
706$GLOBALS['csstidy']['all_properties']['width']                       = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
707$GLOBALS['csstidy']['all_properties']['word-break']                  = 'CSS3.0';
708$GLOBALS['csstidy']['all_properties']['word-spacing']                = 'CSS1.0,CSS2.0,CSS2.1,CSS3.0';
709$GLOBALS['csstidy']['all_properties']['word-wrap']                   = 'CSS3.0';
710$GLOBALS['csstidy']['all_properties']['z-index']                     = 'CSS2.0,CSS2.1,CSS3.0';
711
712/**
713 * An array containing all properties that can accept a quoted string as a value.
714 *
715 * @global array $GLOBALS['csstidy']['quoted_string_properties']
716 */
717$GLOBALS['csstidy']['quoted_string_properties'] = array( 'content', 'font', 'font-family', 'quotes' );
718
719/**
720 * An array containing all properties that can be defined multiple times without being overwritten.
721 * All unit values are included so that units like rem can be supported with fallbacks to px or em.
722 *
723 * @global array $GLOBALS['csstidy']['quoted_string_properties']
724 */
725$GLOBALS['csstidy']['multiple_properties'] = array_merge( $GLOBALS['csstidy']['color_values'], $GLOBALS['csstidy']['unit_values'], array( 'transition', 'background-image', 'border-image', 'list-style-image' ) );
726
727/**
728 * An array containing all predefined templates.
729 *
730 * @global array $GLOBALS['csstidy']['predefined_templates']
731 * @version 1.0
732 * @see csstidy::load_template()
733 */
734$GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="at">'; // string before @rule
735$GLOBALS['csstidy']['predefined_templates']['default'][] = '</span> <span class="format">{</span>' . "\n"; // bracket after @-rule
736$GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="selector">'; // string before selector
737$GLOBALS['csstidy']['predefined_templates']['default'][] = '</span> <span class="format">{</span>' . "\n"; // bracket after selector
738$GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="property">'; // string before property
739$GLOBALS['csstidy']['predefined_templates']['default'][] = '</span><span class="value">'; // string after property+before value
740$GLOBALS['csstidy']['predefined_templates']['default'][] = '</span><span class="format">;</span>' . "\n"; // string after value
741$GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="format">}</span>'; // closing bracket - selector
742$GLOBALS['csstidy']['predefined_templates']['default'][] = "\n\n"; // space between blocks {...}
743$GLOBALS['csstidy']['predefined_templates']['default'][] = "\n" . '<span class="format">}</span>' . "\n\n"; // closing bracket @-rule
744$GLOBALS['csstidy']['predefined_templates']['default'][] = ''; // indent in @-rule
745$GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="comment">'; // before comment
746$GLOBALS['csstidy']['predefined_templates']['default'][] = '</span>' . "\n"; // after comment
747$GLOBALS['csstidy']['predefined_templates']['default'][] = "\n"; // after last line @-rule
748
749$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="at">';
750$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span> <span class="format">{</span>' . "\n";
751$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="selector">';
752$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="format">{</span>';
753$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="property">';
754$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="value">';
755$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="format">;</span>';
756$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="format">}</span>';
757$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n";
758$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n" . '<span class="format">}' . "\n" . '</span>';
759$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '';
760$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="comment">'; // before comment
761$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span>'; // after comment
762$GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n";
763
764$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="at">';
765$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">{</span>';
766$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="selector">';
767$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">{</span>';
768$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="property">';
769$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="value">';
770$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">;</span>';
771$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="format">}</span>';
772$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
773$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="format">}</span>';
774$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
775$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="comment">'; // before comment
776$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span>'; // after comment
777$GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
778
779$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="at">';
780$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span> <span class="format">{</span>' . "\n";
781$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="selector">';
782$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span>' . "\n" . '<span class="format">{</span>' . "\n";
783$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '    <span class="property">';
784$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span><span class="value">';
785$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span><span class="format">;</span>' . "\n";
786$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="format">}</span>';
787$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n\n";
788$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n" . '<span class="format">}</span>' . "\n\n";
789$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '    ';
790$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="comment">'; // before comment
791$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span>' . "\n"; // after comment
792$GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n";
793
794require __DIR__ . '/data-wp.inc.php';