diff options
author | Henri Sara <hesara@vaadin.com> | 2012-11-30 17:29:10 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2012-12-07 13:01:56 +0200 |
commit | 5ca922358fc06f229797129652e5fae48cad871b (patch) | |
tree | 67164c0ead1da6fe58cae7955655155df638a681 /theme-compiler/tests | |
parent | a18ea78f4456c92b33683137c338c33a52ddc9ce (diff) | |
download | vaadin-framework-5ca922358fc06f229797129652e5fae48cad871b.tar.gz vaadin-framework-5ca922358fc06f229797129652e5fae48cad871b.zip |
Accept anything as pseudo function parameters (#10316)
Change-Id: Ib5aab4d4ca7de0fa7dc46a31f8d98740b302b7d3
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r-- | theme-compiler/tests/resources/automatic/css/selector_types.css | 16 | ||||
-rw-r--r-- | theme-compiler/tests/resources/automatic/scss/selector_types.scss | 17 |
2 files changed, 33 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/selector_types.css b/theme-compiler/tests/resources/automatic/css/selector_types.css index b0f98c9267..0125ef6770 100644 --- a/theme-compiler/tests/resources/automatic/css/selector_types.css +++ b/theme-compiler/tests/resources/automatic/css/selector_types.css @@ -22,6 +22,22 @@ attrib .attrib { type: pseudo-class; } +.pseudo:nth-child(10n-1) { + type: pseudo-class; +} + +.pseudo:nth-child(odd), .pseudo:nth-child(even) { + type: pseudo-class; +} + +.pseudo:nth-child(2n+1), .pseudo:nth-child(4n+3), .pseudo:nth-child(0n+5), .pseudo:nth-child(n) { + type: pseudo-class; +} + +.pseudo:nth-child(+3n - 2), .pseudo:nth-child(-n+ 6), .pseudo:nth-child(+6) { + type: pseudo-class; +} + .pseudo:lang(fr) { type: pseudo-class; } diff --git a/theme-compiler/tests/resources/automatic/scss/selector_types.scss b/theme-compiler/tests/resources/automatic/scss/selector_types.scss index b0f98c9267..331318d4d6 100644 --- a/theme-compiler/tests/resources/automatic/scss/selector_types.scss +++ b/theme-compiler/tests/resources/automatic/scss/selector_types.scss @@ -22,6 +22,23 @@ attrib .attrib { type: pseudo-class; } +.pseudo:nth-child(10n-1) { + type: pseudo-class; +} + +.pseudo:nth-child(odd), .pseudo:nth-child(even) { + type: pseudo-class; +} + +.pseudo:nth-child(2n+1), .pseudo:nth-child(4n+3), .pseudo:nth-child(0n+5), .pseudo:nth-child(n) { + type: pseudo-class; +} + +// whitespace +.pseudo:nth-child( +3n - 2 ), .pseudo:nth-child( -n+ 6), .pseudo:nth-child( +6 ) { + type: pseudo-class; +} + .pseudo:lang(fr) { type: pseudo-class; } |