From a5412c02746a2cddc289b002cb6667bfc7028950 Mon Sep 17 00:00:00 2001 From: Mika Murtojarvi Date: Tue, 5 Nov 2013 11:20:21 +0200 Subject: Sass, the handling of selectors containing multiple #-symbols (#12832) After the first commit, a test case has been downloaded and added to w3ctests. The indentation of a production was also changed in an attempt to more clearly express its meaning. Change-Id: I32356d1fcbafada982a5d3e22f0821e554cc6c8a --- .../tests/resources/w3ctests/scss/css3-modsel-15b.0.scss | 9 +++++++++ .../src/com/vaadin/sass/testcases/scss/W3ConformanceTests.java | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 theme-compiler/tests/resources/w3ctests/scss/css3-modsel-15b.0.scss (limited to 'theme-compiler/tests') diff --git a/theme-compiler/tests/resources/w3ctests/scss/css3-modsel-15b.0.scss b/theme-compiler/tests/resources/w3ctests/scss/css3-modsel-15b.0.scss new file mode 100644 index 0000000000..b2fb3ac6ae --- /dev/null +++ b/theme-compiler/tests/resources/w3ctests/scss/css3-modsel-15b.0.scss @@ -0,0 +1,9 @@ +/* Source: http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-15b.html */ + +p { background: green; color: white; } +#test#fail { background: red; color: yellow; } +#fail#test { background: red; color: yellow; } +#fail { background: red; color: yellow; } +div { background: red; color: yellow; } +#pass#pass { background: green; color: white; } + diff --git a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/W3ConformanceTests.java b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/W3ConformanceTests.java index fcb8e9a70a..274ca382ca 100644 --- a/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/W3ConformanceTests.java +++ b/theme-compiler/tests/src/com/vaadin/sass/testcases/scss/W3ConformanceTests.java @@ -131,8 +131,6 @@ public class W3ConformanceTests extends AbstractDirectoryScanningSassTests { * required! */ final String[] excludelist = new String[] { - // Probable bug/limitation (filed as #12832) - "http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-15b.html", // Probable bug/limitation (filed as #12833) "http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-67.html", @@ -148,7 +146,7 @@ public class W3ConformanceTests extends AbstractDirectoryScanningSassTests { "http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-76b.html", "http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-83.html", - // Probable bug/limitation (files as #12835) + // Invalid CSS, although sass-lang compiler accepts (see #12835) "http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-154.html", // Invalid CSS? sass-lang compiler fails -- cgit v1.2.3