From b6feca3324b400e7abf870515ec8213715187c71 Mon Sep 17 00:00:00 2001 From: Haijian Wang Date: Tue, 26 Feb 2013 13:32:28 +0200 Subject: Fixed several problems related to @extend directive (Ticket #10976) Change-Id: I5e409856601aa514965319453c11946028b08dda --- .../resources/automatic/css/extend-in-nested-block.css | 7 +++++++ .../automatic/css/extend-selector-in-different-levels.css | 15 +++++++++++++++ .../extending-non-exist-selector-with-same-beginning.css | 7 +++++++ .../resources/automatic/css/extending-same-selector.css | 7 +++++++ .../css/extending-selector-with-same-beginning.css | 7 +++++++ 5 files changed, 43 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/css/extend-in-nested-block.css create mode 100644 theme-compiler/tests/resources/automatic/css/extend-selector-in-different-levels.css create mode 100644 theme-compiler/tests/resources/automatic/css/extending-non-exist-selector-with-same-beginning.css create mode 100644 theme-compiler/tests/resources/automatic/css/extending-same-selector.css create mode 100644 theme-compiler/tests/resources/automatic/css/extending-selector-with-same-beginning.css (limited to 'theme-compiler/tests/resources/automatic/css') diff --git a/theme-compiler/tests/resources/automatic/css/extend-in-nested-block.css b/theme-compiler/tests/resources/automatic/css/extend-in-nested-block.css new file mode 100644 index 0000000000..29f1550dd7 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/extend-in-nested-block.css @@ -0,0 +1,7 @@ +.test .error, .test .seriousError { + border: 1px #f00; + background-color: #fdd; +} +.test .seriousError { + border-width: 3px; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/extend-selector-in-different-levels.css b/theme-compiler/tests/resources/automatic/css/extend-selector-in-different-levels.css new file mode 100644 index 0000000000..4de05d8d82 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/extend-selector-in-different-levels.css @@ -0,0 +1,15 @@ +.test .middle .error, .test .middle .seriousError { + border: 1px #f00; + background-color: #fdd; +} +.test .seriousError { + border-width: 3px; +} + +.test1 .error1, .test1 .middle1 .seriousError1 { + border: 1px #f00; + background-color: #fdd; +} +.test1 .middle1 .seriousError1 { + border-width: 3px; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/extending-non-exist-selector-with-same-beginning.css b/theme-compiler/tests/resources/automatic/css/extending-non-exist-selector-with-same-beginning.css new file mode 100644 index 0000000000..d138a79e4a --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/extending-non-exist-selector-with-same-beginning.css @@ -0,0 +1,7 @@ +.test1 { + color: blue; +} + +.test2 { + background: red; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/extending-same-selector.css b/theme-compiler/tests/resources/automatic/css/extending-same-selector.css new file mode 100644 index 0000000000..1a85c0c23e --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/extending-same-selector.css @@ -0,0 +1,7 @@ +.test { + color: blue; +} + +.test { + background: red; +} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/css/extending-selector-with-same-beginning.css b/theme-compiler/tests/resources/automatic/css/extending-selector-with-same-beginning.css new file mode 100644 index 0000000000..097d7a8655 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/extending-selector-with-same-beginning.css @@ -0,0 +1,7 @@ +.test1, .test2 { + color: blue; +} + +.test2 { + background: red; +} \ No newline at end of file -- cgit v1.2.3