diff options
author | Marc Englund <marc@vaadin.com> | 2012-11-22 16:02:27 +0200 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-11-22 16:18:13 +0200 |
commit | b913ab2907b9976e9844d77bb15ff14ac612d870 (patch) | |
tree | ec028314e00689671efb8f2b41959a9f6d0c9a2e /theme-compiler/tests | |
parent | a071e06d1e9d4db6e73390f2e2de897744632d61 (diff) | |
download | vaadin-framework-b913ab2907b9976e9844d77bb15ff14ac612d870.tar.gz vaadin-framework-b913ab2907b9976e9844d77bb15ff14ac612d870.zip |
Warns and removes if parent reference '&' is used w/o parent, fixes #10327
Change-Id: I58eaf3f2acd27a7627c8df31e411a75fc4a48016
Diffstat (limited to 'theme-compiler/tests')
-rw-r--r-- | theme-compiler/tests/resources/css/parent-selector.css | 4 | ||||
-rw-r--r-- | theme-compiler/tests/resources/scss/parent-selector.scss | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/theme-compiler/tests/resources/css/parent-selector.css b/theme-compiler/tests/resources/css/parent-selector.css index 1aa389f593..2a73313f0c 100644 --- a/theme-compiler/tests/resources/css/parent-selector.css +++ b/theme-compiler/tests/resources/css/parent-selector.css @@ -41,4 +41,8 @@ body.firefox a { .root2 .part .one, .root2 .part .non-parent, .root2 .part2 .one, .root2 .part2 .non-parent { color: blue; +} + +.drop-parent-reference { + color: green; }
\ No newline at end of file diff --git a/theme-compiler/tests/resources/scss/parent-selector.scss b/theme-compiler/tests/resources/scss/parent-selector.scss index c0ef46afb3..74f0e15b9e 100644 --- a/theme-compiler/tests/resources/scss/parent-selector.scss +++ b/theme-compiler/tests/resources/scss/parent-selector.scss @@ -46,4 +46,8 @@ a { color: blue; } } +} + +&.drop-parent-reference { + color: green; }
\ No newline at end of file |