Permalink
Browse files

Added examples from the CSS 3 specification to the integration test, …

…unsupported parts a comments for now
  • Loading branch information...
1 parent af56606 commit 85357be55a9fb7972278870df294a47c40792045 @ThomasWeinert committed Jun 8, 2012
Showing with 56 additions and 0 deletions.
  1. +56 −0 tests/PhpCss/IntegrationTest.php
@@ -41,7 +41,63 @@ public function testReformatCss($expected, $selector) {
public static function provideReformattedCss() {
return array(
+ // CSS 3 specification
array('*', '*'),
+ array('E', 'E'),
+ // CSS 3 specification - Attributes
+ //array('E[foo]', 'E[foo]'),
+ //array('E[foo="bar"]', 'E[foo="bar"]'),
+ //array('E[foo~="bar"]', 'E[foo~="bar"]'),
+ //array('E[foo^="bar"]', 'E[foo^="bar"]'),
+ //array('E[foo$="bar"]', 'E[foo$="bar"]'),
+ //array('E[foo*="bar"]', 'E[foo*="bar"]'),
+ //array('E[foo|="bar"]', 'E[foo|="bar"]'),
+ // CSS 3 specification - structural pseudo classes
+ //array('E:root', 'E:root'),
+ //array('E:nth-child(42)', 'E:nth-child(42)'),
+ //array('E:nth-last-child(42)', 'E:nth-last-child(42)'),
+ //array('E:nth-of-type(42)', 'E:nth-of-type(42)'),
+ //array('E:nth-last-of-type(42)', 'E:nth-last-of-type(42)'),
+ //array('E:first-child', 'E:first-child'),
+ //array('E:last-child', 'E:last-child'),
+ //array('E:first-of-type', 'E:first-of-type'),
+ //array('E:last-of-type', 'E:last-of-type'),
+ //array('E:only-child', 'E:only-child'),
+ //array('E:only-of-type', 'E:only-of-type'),
+ //array('E:emtpy', 'E:empty'),
+ // CSS 3 specification - link pseudo classes
+ //array('E:link', 'E:link'),
+ //array('E:visited', 'E:visited'),
+ // CSS 3 specification - user action pseudo classes
+ //array('E:active', 'E:active'),
+ //array('E:hover', 'E:hover'),
+ //array('E:focus', 'E:focus'),
+ // CSS 3 specification - target pseudo class
+ //array('E:target'. 'E:target'),
+ // CSS 3 specification - language pseudo class
+ //array('E:lang(fr)'. 'E:lang(fr)'),
+ // CSS 3 specification - ui element states pseudo classes
+ //array('E:enabled', 'E:enabled'),
+ //array('E:disabled', 'E:disabled'),
+ //array('E:checked', 'E:checked'),
+ // CSS 3 specification - pseudo elements
+ //array('E::first-line', 'E::first-line'),
+ //array('E::first-letter', 'E::first-letter'),
+ //array('E::before', 'E::before'),
+ //array('E::after', 'E::after'),
+ // CSS 3 specification - class selector
+ array('E.warning', 'E.warning'),
+ // CSS 3 specification - id selector
+ array('E#myid', 'E#myid'),
+ // CSS 3 specification - negation pseudo class
+ //array('E:not(s)', 'E:not(s)'),
+ // CSS 3 specification - combinators
+ array('E F', 'E F'),
+ array('E > F', 'E > F'),
+ array('E + F', 'E + F'),
+ array('E ~ F', 'E ~ F'),
+
+ // individual examples
array('element', 'element'),
array('ns|*', 'ns|*'),
array('.class', '.class'),

0 comments on commit 85357be

Please sign in to comment.