Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. ## Simple colour values
  2.  
  3. #data
  4. * { color: red }
  5. #errors
  6. #expected
  7. | 1 *
  8. |   0x02000018 0xffff0000
  9. #reset
  10.  
  11. #data
  12. * { color: #f00 }
  13. #errors
  14. #expected
  15. | 1 *
  16. |   0x02000018 0xffff0000
  17. #reset
  18.  
  19. #data
  20. * { color: #ff0000 }
  21. #errors
  22. #expected
  23. | 1 *
  24. |   0x02000018 0xffff0000
  25. #reset
  26.  
  27. #data
  28. * { color: rgb(255, 0, 0) }
  29. #errors
  30. #expected
  31. | 1 *
  32. |   0x02000018 0xffff0000
  33. #reset
  34.  
  35. #data
  36. * { color: rgb(100%, 0%, 0%) }
  37. #errors
  38. #expected
  39. | 1 *
  40. |   0x02000018 0xffff0000
  41. #reset
  42.  
  43. #data
  44. * { color: transparent }
  45. #errors
  46. #expected
  47. | 1 *
  48. |   0x00000018
  49. #reset
  50.  
  51. #data
  52. * { color: currentColor }
  53. #errors
  54. #expected
  55. | 1 *
  56. |   0x00040018
  57. #reset
  58.  
  59. #data
  60. * { opacity: 0 }
  61. #errors
  62. #expected
  63. | 1 *
  64. |   0x02000063 0x00000000
  65. #reset
  66.  
  67. #data
  68. * { opacity: 0.22 }
  69. #errors
  70. #expected
  71. | 1 *
  72. |   0x02000063 0x000000e1
  73. #reset
  74.  
  75. #data
  76. * { opacity: 0.22 !important }
  77. #errors
  78. #expected
  79. | 1 *
  80. |   0x02000463 0x000000e1
  81. #reset
  82.  
  83. #data
  84. * { opacity: inherit }
  85. #errors
  86. #expected
  87. | 1 *
  88. |   0x00000863
  89. #reset
  90.  
  91. #data
  92. * { opacity: inherit !important }
  93. #errors
  94. #expected
  95. | 1 *
  96. |   0x00000c63
  97. #reset
  98.  
  99. ## Out-of-range rgb() parameters
  100.  
  101. #data
  102. * { color: rgb(300, 0, 0) }
  103. #errors
  104. #expected
  105. | 1 *
  106. |   0x02000018 0xffff0000
  107. #reset
  108.  
  109. #data
  110. * { color: rgb(-10, 0, 0) }
  111. #errors
  112. #expected
  113. | 1 *
  114. |   0x02000018 0xff000000
  115. #reset
  116.  
  117. #data
  118. * { color: rgb(150%, 0%, 0%) }
  119. #errors
  120. #expected
  121. | 1 *
  122. |   0x02000018 0xffff0000
  123. #reset
  124.  
  125. #data
  126. * { color: rgb(-10%, 0%, 0%) }
  127. #errors
  128. #expected
  129. | 1 *
  130. |   0x02000018 0xff000000
  131. #reset
  132.  
  133. #data
  134. * { color: rgba(255, 0, 0, 0) }
  135. #errors
  136. #expected
  137. | 1 *
  138. |   0x02000018 0x00ff0000
  139. #reset
  140.  
  141. #data
  142. * { color: rgba(255, 0, 0, 0.5) }
  143. #errors
  144. #expected
  145. | 1 *
  146. |   0x02000018 0x7fff0000
  147. #reset
  148.  
  149. #data
  150. * { color: rgba(255, 0, 0, 1.1) }
  151. #errors
  152. #expected
  153. | 1 *
  154. |   0x02000018 0xffff0000
  155. #reset
  156.  
  157. #data
  158. * { color: rgba(255, 0, 0, 128) }
  159. #errors
  160. #expected
  161. | 1 *
  162. |   0x02000018 0xffff0000
  163. #reset
  164.  
  165. #data
  166. * { color: rgba(-255, 0, 0, -255) }
  167. #errors
  168. #expected
  169. | 1 *
  170. |   0x02000018 0x00000000
  171. #reset
  172.  
  173. #data
  174. * { opacity: -0.22 }
  175. #errors
  176. #expected
  177. | 1 *
  178. |   0x02000063 0x00000000
  179. #reset
  180.  
  181. #data
  182. * { opacity: 1.22 }
  183. #errors
  184. #expected
  185. | 1 *
  186. |   0x02000063 0x00000400
  187. #reset
  188.  
  189.