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

Documentation generated on Fri, 3 Feb 2006 16:22:03 +0100 by phpDocumentor 1.3.0RC3