summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-30 17:29:10 +0200
committerHenri Sara <hesara@vaadin.com>2012-12-07 13:01:56 +0200
commit5ca922358fc06f229797129652e5fae48cad871b (patch)
tree67164c0ead1da6fe58cae7955655155df638a681 /theme-compiler/tests
parenta18ea78f4456c92b33683137c338c33a52ddc9ce (diff)
downloadvaadin-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.css16
-rw-r--r--theme-compiler/tests/resources/automatic/scss/selector_types.scss17
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;
}