csstidy
[ class tree: csstidy ] [ index: csstidy ] [ all elements ]

Source for file data.inc.php

Documentation is available at data.inc.php

  1. <?php
  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, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. *
  21. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  22. * @package csstidy
  23. * @author Florian Schmitz (floele at gmail dot com) 2005
  24. */
  25.  
  26. define('AT_START', 1);
  27. define('AT_END', 2);
  28. define('SEL_START', 3);
  29. define('SEL_END', 4);
  30. define('PROPERTY', 5);
  31. define('VALUE', 6);
  32. define('COMMENT', 7);
  33. define('DEFAULT_AT', 41);
  34.  
  35. /**
  36. * All whitespace allowed in CSS
  37. *
  38. * @global array $GLOBALS['csstidy']['whitespace']
  39. * @version 1.0
  40. */
  41. $GLOBALS['csstidy']['whitespace'] = array(' ',"\n","\t","\r","\x0B");
  42.  
  43. /**
  44. * All CSS tokens used by csstidy
  45. *
  46. * @global string $GLOBALS['csstidy']['tokens']
  47. * @version 1.0
  48. */
  49. $GLOBALS['csstidy']['tokens'] = '/@}{;:=\'"(,\\!$%&)*+.<>?[]^`|~';
  50.  
  51. /**
  52. * All CSS units (CSS 3 units included)
  53. *
  54. * @see compress_numbers()
  55. * @global array $GLOBALS['csstidy']['units']
  56. * @version 1.0
  57. */
  58. $GLOBALS['csstidy']['units'] = array('in','cm','mm','pt','pc','px','rem','em','%','ex','gd','vw','vh','vm','deg','grad','rad','ms','s','khz','hz');
  59.  
  60. /**
  61. * Available at-rules
  62. *
  63. * @global array $GLOBALS['csstidy']['at_rules']
  64. * @version 1.0
  65. */
  66. $GLOBALS['csstidy']['at_rules'] = array('page' => 'is','font-face' => 'is','charset' => 'iv', 'import' => 'iv','namespace' => 'iv','media' => 'at');
  67.  
  68. /**
  69. * Properties that allow <number> as value
  70. *
  71. * @todo CSS3 properties
  72. * @see compress_numbers();
  73. * @global array $GLOBALS['csstidy']['number_values']
  74. * @version 1.2
  75. */
  76. $GLOBALS['csstidy']['number_values'] = array('line-height','pitch-range','richness','speech-rate','stress','volume','font','font-weight','z-index','counter-increment','counter-reset','orphans','widows');
  77.  
  78. /**
  79. * Properties that allow <color> as value
  80. *
  81. * @todo CSS3 properties
  82. * @see compress_numbers();
  83. * @global array $GLOBALS['csstidy']['color_values']
  84. * @version 1.0
  85. */
  86. $GLOBALS['csstidy']['color_values'] = array();
  87. $GLOBALS['csstidy']['color_values'][] = 'background-color';
  88. $GLOBALS['csstidy']['color_values'][] = 'border-color';
  89. $GLOBALS['csstidy']['color_values'][] = 'border-top-color';
  90. $GLOBALS['csstidy']['color_values'][] = 'border-right-color';
  91. $GLOBALS['csstidy']['color_values'][] = 'border-bottom-color';
  92. $GLOBALS['csstidy']['color_values'][] = 'border-left-color';
  93. $GLOBALS['csstidy']['color_values'][] = 'color';
  94. $GLOBALS['csstidy']['color_values'][] = 'outline-color';
  95.  
  96.  
  97. /**
  98. * Default values for the background properties
  99. *
  100. * @todo Possibly property names will change during CSS3 development
  101. * @global array $GLOBALS['csstidy']['background_prop_default']
  102. * @see dissolve_short_bg()
  103. * @see merge_bg()
  104. * @version 1.0
  105. */
  106. $GLOBALS['csstidy']['background_prop_default'] = array();
  107. $GLOBALS['csstidy']['background_prop_default']['background-image'] = 'none';
  108. $GLOBALS['csstidy']['background_prop_default']['background-size'] = 'auto';
  109. $GLOBALS['csstidy']['background_prop_default']['background-repeat'] = 'repeat';
  110. $GLOBALS['csstidy']['background_prop_default']['background-position'] = '0 0';
  111. $GLOBALS['csstidy']['background_prop_default']['background-attachment'] = 'scroll';
  112. $GLOBALS['csstidy']['background_prop_default']['background-clip'] = 'border';
  113. $GLOBALS['csstidy']['background_prop_default']['background-origin'] = 'padding';
  114. $GLOBALS['csstidy']['background_prop_default']['background-color'] = 'transparent';
  115.  
  116. /**
  117. * A list of non-W3C color names which get replaced by their hex-codes
  118. *
  119. * @global array $GLOBALS['csstidy']['replace_colors']
  120. * @see cut_color()
  121. * @version 1.0
  122. */
  123. $GLOBALS['csstidy']['replace_colors'] = array();
  124. $GLOBALS['csstidy']['replace_colors']['aliceblue'] = '#F0F8FF';
  125. $GLOBALS['csstidy']['replace_colors']['antiquewhite'] = '#FAEBD7';
  126. $GLOBALS['csstidy']['replace_colors']['aquamarine'] = '#7FFFD4';
  127. $GLOBALS['csstidy']['replace_colors']['azure'] = '#F0FFFF';
  128. $GLOBALS['csstidy']['replace_colors']['beige'] = '#F5F5DC';
  129. $GLOBALS['csstidy']['replace_colors']['bisque'] = '#FFE4C4';
  130. $GLOBALS['csstidy']['replace_colors']['blanchedalmond'] = '#FFEBCD';
  131. $GLOBALS['csstidy']['replace_colors']['blueviolet'] = '#8A2BE2';
  132. $GLOBALS['csstidy']['replace_colors']['brown'] = '#A52A2A';
  133. $GLOBALS['csstidy']['replace_colors']['burlywood'] = '#DEB887';
  134. $GLOBALS['csstidy']['replace_colors']['cadetblue'] = '#5F9EA0';
  135. $GLOBALS['csstidy']['replace_colors']['chartreuse'] = '#7FFF00';
  136. $GLOBALS['csstidy']['replace_colors']['chocolate'] = '#D2691E';
  137. $GLOBALS['csstidy']['replace_colors']['coral'] = '#FF7F50';
  138. $GLOBALS['csstidy']['replace_colors']['cornflowerblue'] = '#6495ED';
  139. $GLOBALS['csstidy']['replace_colors']['cornsilk'] = '#FFF8DC';
  140. $GLOBALS['csstidy']['replace_colors']['crimson'] = '#DC143C';
  141. $GLOBALS['csstidy']['replace_colors']['cyan'] = '#00FFFF';
  142. $GLOBALS['csstidy']['replace_colors']['darkblue'] = '#00008B';
  143. $GLOBALS['csstidy']['replace_colors']['darkcyan'] = '#008B8B';
  144. $GLOBALS['csstidy']['replace_colors']['darkgoldenrod'] = '#B8860B';
  145. $GLOBALS['csstidy']['replace_colors']['darkgray'] = '#A9A9A9';
  146. $GLOBALS['csstidy']['replace_colors']['darkgreen'] = '#006400';
  147. $GLOBALS['csstidy']['replace_colors']['darkkhaki'] = '#BDB76B';
  148. $GLOBALS['csstidy']['replace_colors']['darkmagenta'] = '#8B008B';
  149. $GLOBALS['csstidy']['replace_colors']['darkolivegreen'] = '#556B2F';
  150. $GLOBALS['csstidy']['replace_colors']['darkorange'] = '#FF8C00';
  151. $GLOBALS['csstidy']['replace_colors']['darkorchid'] = '#9932CC';
  152. $GLOBALS['csstidy']['replace_colors']['darkred'] = '#8B0000';
  153. $GLOBALS['csstidy']['replace_colors']['darksalmon'] = '#E9967A';
  154. $GLOBALS['csstidy']['replace_colors']['darkseagreen'] = '#8FBC8F';
  155. $GLOBALS['csstidy']['replace_colors']['darkslateblue'] = '#483D8B';
  156. $GLOBALS['csstidy']['replace_colors']['darkslategray'] = '#2F4F4F';
  157. $GLOBALS['csstidy']['replace_colors']['darkturquoise'] = '#00CED1';
  158. $GLOBALS['csstidy']['replace_colors']['darkviolet'] = '#9400D3';
  159. $GLOBALS['csstidy']['replace_colors']['deeppink'] = '#FF1493';
  160. $GLOBALS['csstidy']['replace_colors']['deepskyblue'] = '#00BFFF';
  161. $GLOBALS['csstidy']['replace_colors']['dimgray'] = '#696969';
  162. $GLOBALS['csstidy']['replace_colors']['dodgerblue'] = '#1E90FF';
  163. $GLOBALS['csstidy']['replace_colors']['feldspar'] = '#D19275';
  164. $GLOBALS['csstidy']['replace_colors']['firebrick'] = '#B22222';
  165. $GLOBALS['csstidy']['replace_colors']['floralwhite'] = '#FFFAF0';
  166. $GLOBALS['csstidy']['replace_colors']['forestgreen'] = '#228B22';
  167. $GLOBALS['csstidy']['replace_colors']['gainsboro'] = '#DCDCDC';
  168. $GLOBALS['csstidy']['replace_colors']['ghostwhite'] = '#F8F8FF';
  169. $GLOBALS['csstidy']['replace_colors']['gold'] = '#FFD700';
  170. $GLOBALS['csstidy']['replace_colors']['goldenrod'] = '#DAA520';
  171. $GLOBALS['csstidy']['replace_colors']['greenyellow'] = '#ADFF2F';
  172. $GLOBALS['csstidy']['replace_colors']['honeydew'] = '#F0FFF0';
  173. $GLOBALS['csstidy']['replace_colors']['hotpink'] = '#FF69B4';
  174. $GLOBALS['csstidy']['replace_colors']['indianred'] = '#CD5C5C';
  175. $GLOBALS['csstidy']['replace_colors']['indigo'] = '#4B0082';
  176. $GLOBALS['csstidy']['replace_colors']['ivory'] = '#FFFFF0';
  177. $GLOBALS['csstidy']['replace_colors']['khaki'] = '#F0E68C';
  178. $GLOBALS['csstidy']['replace_colors']['lavender'] = '#E6E6FA';
  179. $GLOBALS['csstidy']['replace_colors']['lavenderblush'] = '#FFF0F5';
  180. $GLOBALS['csstidy']['replace_colors']['lawngreen'] = '#7CFC00';
  181. $GLOBALS['csstidy']['replace_colors']['lemonchiffon'] = '#FFFACD';
  182. $GLOBALS['csstidy']['replace_colors']['lightblue'] = '#ADD8E6';
  183. $GLOBALS['csstidy']['replace_colors']['lightcoral'] = '#F08080';
  184. $GLOBALS['csstidy']['replace_colors']['lightcyan'] = '#E0FFFF';
  185. $GLOBALS['csstidy']['replace_colors']['lightgoldenrodyellow'] = '#FAFAD2';
  186. $GLOBALS['csstidy']['replace_colors']['lightgrey'] = '#D3D3D3';
  187. $GLOBALS['csstidy']['replace_colors']['lightgreen'] = '#90EE90';
  188. $GLOBALS['csstidy']['replace_colors']['lightpink'] = '#FFB6C1';
  189. $GLOBALS['csstidy']['replace_colors']['lightsalmon'] = '#FFA07A';
  190. $GLOBALS['csstidy']['replace_colors']['lightseagreen'] = '#20B2AA';
  191. $GLOBALS['csstidy']['replace_colors']['lightskyblue'] = '#87CEFA';
  192. $GLOBALS['csstidy']['replace_colors']['lightslateblue'] = '#8470FF';
  193. $GLOBALS['csstidy']['replace_colors']['lightslategray'] = '#778899';
  194. $GLOBALS['csstidy']['replace_colors']['lightsteelblue'] = '#B0C4DE';
  195. $GLOBALS['csstidy']['replace_colors']['lightyellow'] = '#FFFFE0';
  196. $GLOBALS['csstidy']['replace_colors']['limegreen'] = '#32CD32';
  197. $GLOBALS['csstidy']['replace_colors']['linen'] = '#FAF0E6';
  198. $GLOBALS['csstidy']['replace_colors']['magenta'] = '#FF00FF';
  199. $GLOBALS['csstidy']['replace_colors']['mediumaquamarine'] = '#66CDAA';
  200. $GLOBALS['csstidy']['replace_colors']['mediumblue'] = '#0000CD';
  201. $GLOBALS['csstidy']['replace_colors']['mediumorchid'] = '#BA55D3';
  202. $GLOBALS['csstidy']['replace_colors']['mediumpurple'] = '#9370D8';
  203. $GLOBALS['csstidy']['replace_colors']['mediumseagreen'] = '#3CB371';
  204. $GLOBALS['csstidy']['replace_colors']['mediumslateblue'] = '#7B68EE';
  205. $GLOBALS['csstidy']['replace_colors']['mediumspringgreen'] = '#00FA9A';
  206. $GLOBALS['csstidy']['replace_colors']['mediumturquoise'] = '#48D1CC';
  207. $GLOBALS['csstidy']['replace_colors']['mediumvioletred'] = '#C71585';
  208. $GLOBALS['csstidy']['replace_colors']['midnightblue'] = '#191970';
  209. $GLOBALS['csstidy']['replace_colors']['mintcream'] = '#F5FFFA';
  210. $GLOBALS['csstidy']['replace_colors']['mistyrose'] = '#FFE4E1';
  211. $GLOBALS['csstidy']['replace_colors']['moccasin'] = '#FFE4B5';
  212. $GLOBALS['csstidy']['replace_colors']['navajowhite'] = '#FFDEAD';
  213. $GLOBALS['csstidy']['replace_colors']['oldlace'] = '#FDF5E6';
  214. $GLOBALS['csstidy']['replace_colors']['olivedrab'] = '#6B8E23';
  215. $GLOBALS['csstidy']['replace_colors']['orangered'] = '#FF4500';
  216. $GLOBALS['csstidy']['replace_colors']['orchid'] = '#DA70D6';
  217. $GLOBALS['csstidy']['replace_colors']['palegoldenrod'] = '#EEE8AA';
  218. $GLOBALS['csstidy']['replace_colors']['palegreen'] = '#98FB98';
  219. $GLOBALS['csstidy']['replace_colors']['paleturquoise'] = '#AFEEEE';
  220. $GLOBALS['csstidy']['replace_colors']['palevioletred'] = '#D87093';
  221. $GLOBALS['csstidy']['replace_colors']['papayawhip'] = '#FFEFD5';
  222. $GLOBALS['csstidy']['replace_colors']['peachpuff'] = '#FFDAB9';
  223. $GLOBALS['csstidy']['replace_colors']['peru'] = '#CD853F';
  224. $GLOBALS['csstidy']['replace_colors']['pink'] = '#FFC0CB';
  225. $GLOBALS['csstidy']['replace_colors']['plum'] = '#DDA0DD';
  226. $GLOBALS['csstidy']['replace_colors']['powderblue'] = '#B0E0E6';
  227. $GLOBALS['csstidy']['replace_colors']['rosybrown'] = '#BC8F8F';
  228. $GLOBALS['csstidy']['replace_colors']['royalblue'] = '#4169E1';
  229. $GLOBALS['csstidy']['replace_colors']['saddlebrown'] = '#8B4513';
  230. $GLOBALS['csstidy']['replace_colors']['salmon'] = '#FA8072';
  231. $GLOBALS['csstidy']['replace_colors']['sandybrown'] = '#F4A460';
  232. $GLOBALS['csstidy']['replace_colors']['seagreen'] = '#2E8B57';
  233. $GLOBALS['csstidy']['replace_colors']['seashell'] = '#FFF5EE';
  234. $GLOBALS['csstidy']['replace_colors']['sienna'] = '#A0522D';
  235. $GLOBALS['csstidy']['replace_colors']['skyblue'] = '#87CEEB';
  236. $GLOBALS['csstidy']['replace_colors']['slateblue'] = '#6A5ACD';
  237. $GLOBALS['csstidy']['replace_colors']['slategray'] = '#708090';
  238. $GLOBALS['csstidy']['replace_colors']['snow'] = '#FFFAFA';
  239. $GLOBALS['csstidy']['replace_colors']['springgreen'] = '#00FF7F';
  240. $GLOBALS['csstidy']['replace_colors']['steelblue'] = '#4682B4';
  241. $GLOBALS['csstidy']['replace_colors']['tan'] = '#D2B48C';
  242. $GLOBALS['csstidy']['replace_colors']['thistle'] = '#D8BFD8';
  243. $GLOBALS['csstidy']['replace_colors']['tomato'] = '#FF6347';
  244. $GLOBALS['csstidy']['replace_colors']['turquoise'] = '#40E0D0';
  245. $GLOBALS['csstidy']['replace_colors']['violet'] = '#EE82EE';
  246. $GLOBALS['csstidy']['replace_colors']['violetred'] = '#D02090';
  247. $GLOBALS['csstidy']['replace_colors']['wheat'] = '#F5DEB3';
  248. $GLOBALS['csstidy']['replace_colors']['whitesmoke'] = '#F5F5F5';
  249. $GLOBALS['csstidy']['replace_colors']['yellowgreen'] = '#9ACD32';
  250.  
  251.  
  252. /**
  253. * A list of all shorthand properties that are devided into four properties and/or have four subvalues
  254. *
  255. * @global array $GLOBALS['csstidy']['shorthands']
  256. * @todo Are there new ones in CSS3?
  257. * @see dissolve_4value_shorthands()
  258. * @see merge_4value_shorthands()
  259. * @version 1.0
  260. */
  261. $GLOBALS['csstidy']['shorthands'] = array();
  262. $GLOBALS['csstidy']['shorthands']['border-color'] = array('border-top-color','border-right-color','border-bottom-color','border-left-color');
  263. $GLOBALS['csstidy']['shorthands']['border-style'] = array('border-top-style','border-right-style','border-bottom-style','border-left-style');
  264. $GLOBALS['csstidy']['shorthands']['border-width'] = array('border-top-width','border-right-width','border-bottom-width','border-left-width');
  265. $GLOBALS['csstidy']['shorthands']['margin'] = array('margin-top','margin-right','margin-bottom','margin-left');
  266. $GLOBALS['csstidy']['shorthands']['padding'] = array('padding-top','padding-right','padding-bottom','padding-left');
  267. $GLOBALS['csstidy']['shorthands']['-moz-border-radius'] = 0;
  268.  
  269. /**
  270. * All CSS Properties. Needed for csstidy::property_is_next()
  271. *
  272. * @global array $GLOBALS['csstidy']['all_properties']
  273. * @todo Add CSS3 properties
  274. * @version 1.0
  275. * @see csstidy::property_is_next()
  276. */
  277. $GLOBALS['csstidy']['all_properties'] = array();
  278. $GLOBALS['csstidy']['all_properties']['background'] = 'CSS1.0,CSS2.0,CSS2.1';
  279. $GLOBALS['csstidy']['all_properties']['background-color'] = 'CSS1.0,CSS2.0,CSS2.1';
  280. $GLOBALS['csstidy']['all_properties']['background-image'] = 'CSS1.0,CSS2.0,CSS2.1';
  281. $GLOBALS['csstidy']['all_properties']['background-repeat'] = 'CSS1.0,CSS2.0,CSS2.1';
  282. $GLOBALS['csstidy']['all_properties']['background-attachment'] = 'CSS1.0,CSS2.0,CSS2.1';
  283. $GLOBALS['csstidy']['all_properties']['background-position'] = 'CSS1.0,CSS2.0,CSS2.1';
  284. $GLOBALS['csstidy']['all_properties']['border'] = 'CSS1.0,CSS2.0,CSS2.1';
  285. $GLOBALS['csstidy']['all_properties']['border-top'] = 'CSS1.0,CSS2.0,CSS2.1';
  286. $GLOBALS['csstidy']['all_properties']['border-right'] = 'CSS1.0,CSS2.0,CSS2.1';
  287. $GLOBALS['csstidy']['all_properties']['border-bottom'] = 'CSS1.0,CSS2.0,CSS2.1';
  288. $GLOBALS['csstidy']['all_properties']['border-left'] = 'CSS1.0,CSS2.0,CSS2.1';
  289. $GLOBALS['csstidy']['all_properties']['border-color'] = 'CSS1.0,CSS2.0,CSS2.1';
  290. $GLOBALS['csstidy']['all_properties']['border-top-color'] = 'CSS2.0,CSS2.1';
  291. $GLOBALS['csstidy']['all_properties']['border-bottom-color'] = 'CSS2.0,CSS2.1';
  292. $GLOBALS['csstidy']['all_properties']['border-left-color'] = 'CSS2.0,CSS2.1';
  293. $GLOBALS['csstidy']['all_properties']['border-right-color'] = 'CSS2.0,CSS2.1';
  294. $GLOBALS['csstidy']['all_properties']['border-style'] = 'CSS1.0,CSS2.0,CSS2.1';
  295. $GLOBALS['csstidy']['all_properties']['border-top-style'] = 'CSS2.0,CSS2.1';
  296. $GLOBALS['csstidy']['all_properties']['border-right-style'] = 'CSS2.0,CSS2.1';
  297. $GLOBALS['csstidy']['all_properties']['border-left-style'] = 'CSS2.0,CSS2.1';
  298. $GLOBALS['csstidy']['all_properties']['border-bottom-style'] = 'CSS2.0,CSS2.1';
  299. $GLOBALS['csstidy']['all_properties']['border-width'] = 'CSS1.0,CSS2.0,CSS2.1';
  300. $GLOBALS['csstidy']['all_properties']['border-top-width'] = 'CSS1.0,CSS2.0,CSS2.1';
  301. $GLOBALS['csstidy']['all_properties']['border-right-width'] = 'CSS1.0,CSS2.0,CSS2.1';
  302. $GLOBALS['csstidy']['all_properties']['border-left-width'] = 'CSS1.0,CSS2.0,CSS2.1';
  303. $GLOBALS['csstidy']['all_properties']['border-bottom-width'] = 'CSS1.0,CSS2.0,CSS2.1';
  304. $GLOBALS['csstidy']['all_properties']['border-collapse'] = 'CSS2.0,CSS2.1';
  305. $GLOBALS['csstidy']['all_properties']['border-spacing'] = 'CSS2.0,CSS2.1';
  306. $GLOBALS['csstidy']['all_properties']['bottom'] = 'CSS2.0,CSS2.1';
  307. $GLOBALS['csstidy']['all_properties']['caption-side'] = 'CSS2.0,CSS2.1';
  308. $GLOBALS['csstidy']['all_properties']['content'] = 'CSS2.0,CSS2.1';
  309. $GLOBALS['csstidy']['all_properties']['clear'] = 'CSS1.0,CSS2.0,CSS2.1';
  310. $GLOBALS['csstidy']['all_properties']['clip'] = 'CSS1.0,CSS2.0,CSS2.1';
  311. $GLOBALS['csstidy']['all_properties']['color'] = 'CSS1.0,CSS2.0,CSS2.1';
  312. $GLOBALS['csstidy']['all_properties']['counter-reset'] = 'CSS2.0,CSS2.1';
  313. $GLOBALS['csstidy']['all_properties']['counter-increment'] = 'CSS2.0,CSS2.1';
  314. $GLOBALS['csstidy']['all_properties']['cursor'] = 'CSS2.0,CSS2.1';
  315. $GLOBALS['csstidy']['all_properties']['empty-cells'] = 'CSS2.0,CSS2.1';
  316. $GLOBALS['csstidy']['all_properties']['display'] = 'CSS1.0,CSS2.0,CSS2.1';
  317. $GLOBALS['csstidy']['all_properties']['direction'] = 'CSS2.0,CSS2.1';
  318. $GLOBALS['csstidy']['all_properties']['float'] = 'CSS1.0,CSS2.0,CSS2.1';
  319. $GLOBALS['csstidy']['all_properties']['font'] = 'CSS1.0,CSS2.0,CSS2.1';
  320. $GLOBALS['csstidy']['all_properties']['font-family'] = 'CSS1.0,CSS2.0,CSS2.1';
  321. $GLOBALS['csstidy']['all_properties']['font-style'] = 'CSS1.0,CSS2.0,CSS2.1';
  322. $GLOBALS['csstidy']['all_properties']['font-variant'] = 'CSS1.0,CSS2.0,CSS2.1';
  323. $GLOBALS['csstidy']['all_properties']['font-weight'] = 'CSS1.0,CSS2.0,CSS2.1';
  324. $GLOBALS['csstidy']['all_properties']['font-stretch'] = 'CSS2.0';
  325. $GLOBALS['csstidy']['all_properties']['font-size-adjust'] = 'CSS2.0';
  326. $GLOBALS['csstidy']['all_properties']['font-size'] = 'CSS1.0,CSS2.0,CSS2.1';
  327. $GLOBALS['csstidy']['all_properties']['height'] = 'CSS1.0,CSS2.0,CSS2.1';
  328. $GLOBALS['csstidy']['all_properties']['left'] = 'CSS1.0,CSS2.0,CSS2.1';
  329. $GLOBALS['csstidy']['all_properties']['line-height'] = 'CSS1.0,CSS2.0,CSS2.1';
  330. $GLOBALS['csstidy']['all_properties']['list-style'] = 'CSS1.0,CSS2.0,CSS2.1';
  331. $GLOBALS['csstidy']['all_properties']['list-style-type'] = 'CSS1.0,CSS2.0,CSS2.1';
  332. $GLOBALS['csstidy']['all_properties']['list-style-image'] = 'CSS1.0,CSS2.0,CSS2.1';
  333. $GLOBALS['csstidy']['all_properties']['list-style-position'] = 'CSS1.0,CSS2.0,CSS2.1';
  334. $GLOBALS['csstidy']['all_properties']['margin'] = 'CSS1.0,CSS2.0,CSS2.1';
  335. $GLOBALS['csstidy']['all_properties']['margin-top'] = 'CSS1.0,CSS2.0,CSS2.1';
  336. $GLOBALS['csstidy']['all_properties']['margin-right'] = 'CSS1.0,CSS2.0,CSS2.1';
  337. $GLOBALS['csstidy']['all_properties']['margin-bottom'] = 'CSS1.0,CSS2.0,CSS2.1';
  338. $GLOBALS['csstidy']['all_properties']['margin-left'] = 'CSS1.0,CSS2.0,CSS2.1';
  339. $GLOBALS['csstidy']['all_properties']['marks'] = 'CSS1.0,CSS2.0';
  340. $GLOBALS['csstidy']['all_properties']['marker-offset'] = 'CSS2.0';
  341. $GLOBALS['csstidy']['all_properties']['max-height'] = 'CSS2.0,CSS2.1';
  342. $GLOBALS['csstidy']['all_properties']['max-width'] = 'CSS2.0,CSS2.1';
  343. $GLOBALS['csstidy']['all_properties']['min-height'] = 'CSS2.0,CSS2.1';
  344. $GLOBALS['csstidy']['all_properties']['min-width'] = 'CSS2.0,CSS2.1';
  345. $GLOBALS['csstidy']['all_properties']['overflow'] = 'CSS1.0,CSS2.0,CSS2.1';
  346. $GLOBALS['csstidy']['all_properties']['orphans'] = 'CSS2.0,CSS2.1';
  347. $GLOBALS['csstidy']['all_properties']['outline'] = 'CSS2.0,CSS2.1';
  348. $GLOBALS['csstidy']['all_properties']['outline-width'] = 'CSS2.0,CSS2.1';
  349. $GLOBALS['csstidy']['all_properties']['outline-style'] = 'CSS2.0,CSS2.1';
  350. $GLOBALS['csstidy']['all_properties']['outline-color'] = 'CSS2.0,CSS2.1';
  351. $GLOBALS['csstidy']['all_properties']['padding'] = 'CSS1.0,CSS2.0,CSS2.1';
  352. $GLOBALS['csstidy']['all_properties']['padding-top'] = 'CSS1.0,CSS2.0,CSS2.1';
  353. $GLOBALS['csstidy']['all_properties']['padding-right'] = 'CSS1.0,CSS2.0,CSS2.1';
  354. $GLOBALS['csstidy']['all_properties']['padding-bottom'] = 'CSS1.0,CSS2.0,CSS2.1';
  355. $GLOBALS['csstidy']['all_properties']['padding-left'] = 'CSS1.0,CSS2.0,CSS2.1';
  356. $GLOBALS['csstidy']['all_properties']['page-break-before'] = 'CSS1.0,CSS2.0,CSS2.1';
  357. $GLOBALS['csstidy']['all_properties']['page-break-after'] = 'CSS1.0,CSS2.0,CSS2.1';
  358. $GLOBALS['csstidy']['all_properties']['page-break-inside'] = 'CSS2.0,CSS2.1';
  359. $GLOBALS['csstidy']['all_properties']['page'] = 'CSS2.0';
  360. $GLOBALS['csstidy']['all_properties']['position'] = 'CSS1.0,CSS2.0,CSS2.1';
  361. $GLOBALS['csstidy']['all_properties']['quotes'] = 'CSS2.0,CSS2.1';
  362. $GLOBALS['csstidy']['all_properties']['right'] = 'CSS2.0,CSS2.1';
  363. $GLOBALS['csstidy']['all_properties']['size'] = 'CSS1.0,CSS2.0';
  364. $GLOBALS['csstidy']['all_properties']['speak-header'] = 'CSS2.0,CSS2.1';
  365. $GLOBALS['csstidy']['all_properties']['table-layout'] = 'CSS2.0,CSS2.1';
  366. $GLOBALS['csstidy']['all_properties']['top'] = 'CSS1.0,CSS2.0,CSS2.1';
  367. $GLOBALS['csstidy']['all_properties']['text-indent'] = 'CSS1.0,CSS2.0,CSS2.1';
  368. $GLOBALS['csstidy']['all_properties']['text-align'] = 'CSS1.0,CSS2.0,CSS2.1';
  369. $GLOBALS['csstidy']['all_properties']['text-decoration'] = 'CSS1.0,CSS2.0,CSS2.1';
  370. $GLOBALS['csstidy']['all_properties']['text-shadow'] = 'CSS2.0';
  371. $GLOBALS['csstidy']['all_properties']['letter-spacing'] = 'CSS1.0,CSS2.0,CSS2.1';
  372. $GLOBALS['csstidy']['all_properties']['word-spacing'] = 'CSS1.0,CSS2.0,CSS2.1';
  373. $GLOBALS['csstidy']['all_properties']['text-transform'] = 'CSS1.0,CSS2.0,CSS2.1';
  374. $GLOBALS['csstidy']['all_properties']['white-space'] = 'CSS1.0,CSS2.0,CSS2.1';
  375. $GLOBALS['csstidy']['all_properties']['unicode-bidi'] = 'CSS2.0,CSS2.1';
  376. $GLOBALS['csstidy']['all_properties']['vertical-align'] = 'CSS1.0,CSS2.0,CSS2.1';
  377. $GLOBALS['csstidy']['all_properties']['visibility'] = 'CSS1.0,CSS2.0,CSS2.1';
  378. $GLOBALS['csstidy']['all_properties']['width'] = 'CSS1.0,CSS2.0,CSS2.1';
  379. $GLOBALS['csstidy']['all_properties']['widows'] = 'CSS2.0,CSS2.1';
  380. $GLOBALS['csstidy']['all_properties']['z-index'] = 'CSS1.0,CSS2.0,CSS2.1';
  381. /* Speech */
  382. $GLOBALS['csstidy']['all_properties']['volume'] = 'CSS2.0,CSS2.1';
  383. $GLOBALS['csstidy']['all_properties']['speak'] = 'CSS2.0,CSS2.1';
  384. $GLOBALS['csstidy']['all_properties']['pause'] = 'CSS2.0,CSS2.1';
  385. $GLOBALS['csstidy']['all_properties']['pause-before'] = 'CSS2.0,CSS2.1';
  386. $GLOBALS['csstidy']['all_properties']['pause-after'] = 'CSS2.0,CSS2.1';
  387. $GLOBALS['csstidy']['all_properties']['cue'] = 'CSS2.0,CSS2.1';
  388. $GLOBALS['csstidy']['all_properties']['cue-before'] = 'CSS2.0,CSS2.1';
  389. $GLOBALS['csstidy']['all_properties']['cue-after'] = 'CSS2.0,CSS2.1';
  390. $GLOBALS['csstidy']['all_properties']['play-during'] = 'CSS2.0,CSS2.1';
  391. $GLOBALS['csstidy']['all_properties']['azimuth'] = 'CSS2.0,CSS2.1';
  392. $GLOBALS['csstidy']['all_properties']['elevation'] = 'CSS2.0,CSS2.1';
  393. $GLOBALS['csstidy']['all_properties']['speech-rate'] = 'CSS2.0,CSS2.1';
  394. $GLOBALS['csstidy']['all_properties']['voice-family'] = 'CSS2.0,CSS2.1';
  395. $GLOBALS['csstidy']['all_properties']['pitch'] = 'CSS2.0,CSS2.1';
  396. $GLOBALS['csstidy']['all_properties']['pitch-range'] = 'CSS2.0,CSS2.1';
  397. $GLOBALS['csstidy']['all_properties']['stress'] = 'CSS2.0,CSS2.1';
  398. $GLOBALS['csstidy']['all_properties']['richness'] = 'CSS2.0,CSS2.1';
  399. $GLOBALS['csstidy']['all_properties']['speak-punctuation'] = 'CSS2.0,CSS2.1';
  400. $GLOBALS['csstidy']['all_properties']['speak-numeral'] = 'CSS2.0,CSS2.1';
  401.  
  402. /**
  403. * An array containing all predefined templates.
  404. *
  405. * @global array $GLOBALS['csstidy']['predefined_templates']
  406. * @version 1.0
  407. * @see csstidy::load_template()
  408. */
  409. $GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="at">'; //string before @rule
  410. $GLOBALS['csstidy']['predefined_templates']['default'][] = '</span> <span class="format">{</span>'."\n"; //bracket after @-rule
  411. $GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="selector">'; //string before selector
  412. $GLOBALS['csstidy']['predefined_templates']['default'][] = '</span> <span class="format">{</span>'."\n"; //bracket after selector
  413. $GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="property">'; //string before property
  414. $GLOBALS['csstidy']['predefined_templates']['default'][] = '</span><span class="value">'; //string after property+before value
  415. $GLOBALS['csstidy']['predefined_templates']['default'][] = '</span><span class="format">;</span>'."\n"; //string after value
  416. $GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="format">}</span>'; //closing bracket - selector
  417. $GLOBALS['csstidy']['predefined_templates']['default'][] = "\n\n"; //space between blocks {...}
  418. $GLOBALS['csstidy']['predefined_templates']['default'][] = "\n".'<span class="format">}</span>'. "\n\n"; //closing bracket @-rule
  419. $GLOBALS['csstidy']['predefined_templates']['default'][] = ''; //indent in @-rule
  420. $GLOBALS['csstidy']['predefined_templates']['default'][] = '<span class="comment">'; // before comment
  421. $GLOBALS['csstidy']['predefined_templates']['default'][] = '</span>'."\n"; // after comment
  422. $GLOBALS['csstidy']['predefined_templates']['default'][] = "\n"; // after last line @-rule
  423.  
  424. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="at">';
  425. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span> <span class="format">{</span>'."\n";
  426. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="selector">';
  427. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="format">{</span>';
  428. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="property">';
  429. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="value">';
  430. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span><span class="format">;</span>';
  431. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="format">}</span>';
  432. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n";
  433. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n". '<span class="format">}'."\n".'</span>';
  434. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '';
  435. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '<span class="comment">'; // before comment
  436. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = '</span>'; // after comment
  437. $GLOBALS['csstidy']['predefined_templates']['high_compression'][] = "\n";
  438.  
  439. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="at">';
  440. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">{</span>';
  441. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="selector">';
  442. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">{</span>';
  443. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="property">';
  444. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="value">';
  445. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span><span class="format">;</span>';
  446. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="format">}</span>';
  447. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
  448. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="format">}</span>';
  449. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
  450. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '<span class="comment">'; // before comment
  451. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '</span>'; // after comment
  452. $GLOBALS['csstidy']['predefined_templates']['highest_compression'][] = '';
  453.  
  454. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="at">';
  455. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span> <span class="format">{</span>'."\n";
  456. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="selector">';
  457. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span>'."\n".'<span class="format">{</span>'."\n";
  458. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = ' <span class="property">';
  459. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span><span class="value">';
  460. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span><span class="format">;</span>'."\n";
  461. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="format">}</span>';
  462. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n\n";
  463. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n".'<span class="format">}</span>'."\n\n";
  464. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = ' ';
  465. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '<span class="comment">'; // before comment
  466. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = '</span>'."\n"; // after comment
  467. $GLOBALS['csstidy']['predefined_templates']['low_compression'][] = "\n";
  468.  
  469. ?>

Documentation generated on Mon, 15 May 2006 22:56:01 +0200 by phpDocumentor 1.3.0RC3