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

Source for file data.inc.php

Documentation is available at data.inc.php

  1. <?php
  2. /**
  3. * Various CSS Data
  4. *
  5. * @package csspp
  6. * @author Florian Schmitz (floele at gmail dot com) 2005
  7. */
  8.  
  9. /**
  10. * All whitespace allowed in CSS
  11. *
  12. * @global array $whitespace
  13. * @version 1.0
  14. */
  15. $whitespace = array(' ',"\n","\t","\r","\x0B");
  16.  
  17. /**
  18. * All CSS units (CSS 3 units included)
  19. *
  20. * @global array $units
  21. * @version 1.0
  22. */
  23. $units = array('in','cm','mm','pt','pc','px','rem','em','%','ex','gd','vw','vh','vm','deg','grad','rad','ms','s','khz','hz');
  24.  
  25. /**
  26. * Default values for the background properties
  27. *
  28. * @todo Possibly property names will change during CSS3 development
  29. * @global array $background_prop_default
  30. * @version 1.0
  31. */
  32. $background_prop_default = array();
  33. $background_prop_default['background-image'] = 'none';
  34. $background_prop_default['background-size'] = 'auto';
  35. $background_prop_default['background-repeat'] = 'repeat';
  36. $background_prop_default['background-position'] = '0 0';
  37. $background_prop_default['background-attachment'] = 'scroll';
  38. $background_prop_default['background-clip'] = 'border';
  39. $background_prop_default['background-origin'] = 'padding';
  40. $background_prop_default['background-color'] = 'transparent';
  41.  
  42. /**
  43. * A list of all shorthand properties that are devided into four properties
  44. *
  45. * @global array $shorthands
  46. * @todo Are there new ones in CSS3?
  47. * @version 1.0
  48. */
  49. $shorthands = array();
  50. $shorthands['border-color'] = array('border-top-color','border-right-color','border-bottom-color','border-left-color');
  51. $shorthands['border-style'] = array('border-top-style','border-right-style','border-bottom-style','border-left-style');
  52. $shorthands['border-width'] = array('border-top-width','border-right-width','border-bottom-width','border-left-width');
  53. $shorthands['margin'] = array('margin-top','margin-right','margin-bottom','margin-left');
  54. $shorthands['padding'] = array('padding-top','padding-right','padding-bottom','padding-left');
  55. $shorthands['-moz-border-radius'] = 0;
  56.  
  57. /**
  58. * All CSS Properties. Needed for csspp::property_is_next()
  59. *
  60. * @global array $all_properties
  61. * @todo Add CSS3 properties
  62. * @version 1.0
  63. * @see csspp::property_is_next()
  64. */
  65. $all_properties = array();
  66. $all_properties[] = "background";
  67. $all_properties[] = "background-color";
  68. $all_properties[] = "background-image";
  69. $all_properties[] = "background-repeat";
  70. $all_properties[] = "background-attachment";
  71. $all_properties[] = "background-position";
  72. $all_properties[] = "border";
  73. $all_properties[] = "border-top";
  74. $all_properties[] = "border-right";
  75. $all_properties[] = "border-bottom";
  76. $all_properties[] = "border-left";
  77. $all_properties[] = "border-color";
  78. $all_properties[] = "border-top-color";
  79. $all_properties[] = "border-bottom-color";
  80. $all_properties[] = "border-left-color";
  81. $all_properties[] = "border-right-color";
  82. $all_properties[] = "border-style";
  83. $all_properties[] = "border-top-style";
  84. $all_properties[] = "border-right-style";
  85. $all_properties[] = "border-left-style";
  86. $all_properties[] = "border-bottom-style";
  87. $all_properties[] = "border-width";
  88. $all_properties[] = "border-top-width";
  89. $all_properties[] = "border-right-width";
  90. $all_properties[] = "border-left-width";
  91. $all_properties[] = "border-bottom-width";
  92. $all_properties[] = "border-collapse";
  93. $all_properties[] = "border-spacing";
  94. $all_properties[] = "bottom";
  95. $all_properties[] = "caption-side";
  96. $all_properties[] = "content";
  97. $all_properties[] = "clear";
  98. $all_properties[] = "clip";
  99. $all_properties[] = "color";
  100. $all_properties[] = "counter-reset";
  101. $all_properties[] = "counter-increment";
  102. $all_properties[] = "cursor";
  103. $all_properties[] = "empty-cells";
  104. $all_properties[] = "display";
  105. $all_properties[] = "direction";
  106. $all_properties[] = "float";
  107. $all_properties[] = "font";
  108. $all_properties[] = "font-family";
  109. $all_properties[] = "font-style";
  110. $all_properties[] = "font-variant";
  111. $all_properties[] = "font-weight";
  112. $all_properties[] = "font-stretch";
  113. $all_properties[] = "font-size-adjust";
  114. $all_properties[] = "font-size";
  115. $all_properties[] = "height";
  116. $all_properties[] = "left";
  117. $all_properties[] = "line-height";
  118. $all_properties[] = "list-style";
  119. $all_properties[] = "list-style-type";
  120. $all_properties[] = "list-style-image";
  121. $all_properties[] = "list-style-position";
  122. $all_properties[] = "margin";
  123. $all_properties[] = "margin-top";
  124. $all_properties[] = "margin-right";
  125. $all_properties[] = "margin-bottom";
  126. $all_properties[] = "margin-left";
  127. $all_properties[] = "marks";
  128. $all_properties[] = "marker-offset";
  129. $all_properties[] = "max-height";
  130. $all_properties[] = "max-width";
  131. $all_properties[] = "min-height";
  132. $all_properties[] = "min-width";
  133. $all_properties[] = "overflow";
  134. $all_properties[] = "orphans";
  135. $all_properties[] = "outline";
  136. $all_properties[] = "outline-width";
  137. $all_properties[] = "outline-style";
  138. $all_properties[] = "outline-color";
  139. $all_properties[] = "padding";
  140. $all_properties[] = "padding-top";
  141. $all_properties[] = "padding-right";
  142. $all_properties[] = "padding-bottom";
  143. $all_properties[] = "padding-left";
  144. $all_properties[] = "page-break-before";
  145. $all_properties[] = "page-break-after";
  146. $all_properties[] = "page-break-inside";
  147. $all_properties[] = "page";
  148. $all_properties[] = "position";
  149. $all_properties[] = "quotes";
  150. $all_properties[] = "right";
  151. $all_properties[] = "size";
  152. $all_properties[] = "speak-header";
  153. $all_properties[] = "table-layout";
  154. $all_properties[] = "top";
  155. $all_properties[] = "text-indent";
  156. $all_properties[] = "text-align";
  157. $all_properties[] = "text-decoration";
  158. $all_properties[] = "text-shadow";
  159. $all_properties[] = "letter-spacing";
  160. $all_properties[] = "word-spacing";
  161. $all_properties[] = "text-transform";
  162. $all_properties[] = "white-space";
  163. $all_properties[] = "unicode-bidi";
  164. $all_properties[] = "vertical-align";
  165. $all_properties[] = "visibility";
  166. $all_properties[] = "width";
  167. $all_properties[] = "widows";
  168. $all_properties[] = "z-index";
  169. /* Speech */
  170. $all_properties[] = "volume";
  171. $all_properties[] = "speak";
  172. $all_properties[] = "pause";
  173. $all_properties[] = "pause-before";
  174. $all_properties[] = "pause-after";
  175. $all_properties[] = "cue";
  176. $all_properties[] = "cue-before";
  177. $all_properties[] = "cue-after";
  178. $all_properties[] = "play-during";
  179. $all_properties[] = "azimuth";
  180. $all_properties[] = "elevation";
  181. $all_properties[] = "speech-rate";
  182. $all_properties[] = "voice-family";
  183. $all_properties[] = "pitch";
  184. $all_properties[] = "pitch-range";
  185. $all_properties[] = "stress";
  186. $all_properties[] = "richness";
  187. $all_properties[] = "speak-punctuation";
  188. $all_properties[] = "speak-numeral";
  189. ?>

Documentation generated on Sat, 20 Aug 2005 17:04:15 +0200 by phpDocumentor 1.3.0RC3