summaryrefslogtreecommitdiffstats
path: root/theme-compiler/tests
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2012-11-29 14:44:39 +0200
committerHenri Sara <hesara@vaadin.com>2012-11-29 14:45:15 +0200
commitbcd31a6bad53d0fc76a18c8aef0588f31e55f996 (patch)
tree2770c65f170c1f99705d318202a5448fa2920425 /theme-compiler/tests
parent393a5faf1e0e21212ee0f9fed756244d7c3dc807 (diff)
downloadvaadin-framework-bcd31a6bad53d0fc76a18c8aef0588f31e55f996.tar.gz
vaadin-framework-bcd31a6bad53d0fc76a18c8aef0588f31e55f996.zip
Eliminate ambiguity between pseudos and properties (#10406)
Change-Id: I339548272ad12d961f2f81a2922f8ec58828629f
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r--theme-compiler/tests/resources/automatic/css/first_selector_with_pseudo.css9
-rw-r--r--theme-compiler/tests/resources/automatic/scss/first_selector_with_pseudo.scss16
2 files changed, 25 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/automatic/css/first_selector_with_pseudo.css b/theme-compiler/tests/resources/automatic/css/first_selector_with_pseudo.css
new file mode 100644
index 0000000000..bfe9832266
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/css/first_selector_with_pseudo.css
@@ -0,0 +1,9 @@
+.root {
+ input: focus;
+ input-focus: c;
+ a: b;
+}
+
+.root input:focus {
+ background-color: #d5e6fd;
+}
diff --git a/theme-compiler/tests/resources/automatic/scss/first_selector_with_pseudo.scss b/theme-compiler/tests/resources/automatic/scss/first_selector_with_pseudo.scss
new file mode 100644
index 0000000000..cd318ca30a
--- /dev/null
+++ b/theme-compiler/tests/resources/automatic/scss/first_selector_with_pseudo.scss
@@ -0,0 +1,16 @@
+.root {
+ // selector not starting with a dot etc. inside a block or a mixin
+
+ // pseudo
+ input:focus {
+ background-color: #d5e6fd;
+ }
+ // simple property
+ input: focus;
+ // nested properties
+ input: {
+ focus: c;
+ }
+ // simple property
+ a:b;
+}