summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2003-12-12 16:29:49 +0000
committerDodji Seketeli <dodji@src.gnome.org>2003-12-12 16:29:49 +0000
commit4ca2e13f89429977fed7083e24ac9ac0b03eefbc (patch)
tree813db4eb2fd4abe16963f18105b8b5a6c62c37ae /tests
parent953b643be4a2d4fe4bbf7bed4f5c355d3756be45 (diff)
downloadlibcroco-4ca2e13f89429977fed7083e24ac9ac0b03eefbc.tar.gz
added this function to factorise the evaluation of additional selectors.
2003-12-12 Dodji Seketeli <dodji@gnome.org> * src/seleng/cr-sel-eng.c: (additional_selector_matches_node): added this function to factorise the evaluation of additional selectors. (sel_matches_node_real ): use additional_selector_matches_node(). This fixes a selector bug spotted by Stefan Seefeld.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-inputs/test5.1.css1
-rw-r--r--tests/test-output-refs/test5.1.css.out5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-inputs/test5.1.css b/tests/test-inputs/test5.1.css
index b557b26..e6468fd 100644
--- a/tests/test-inputs/test5.1.css
+++ b/tests/test-inputs/test5.1.css
@@ -3,6 +3,7 @@
[attr4|=val4] {prop7: val7}
[attr3~=val3_2] {prop6: val6}
[attr2=val2] {prop5: val5}
+E2[attr2=val2] {prop8: val8}
E0 {prop0: val0}
E0+E1{pro1:val1}
E1 E1-1 {prop2: val2}
diff --git a/tests/test-output-refs/test5.1.css.out b/tests/test-output-refs/test5.1.css.out
index b91b4fe..bb1d76f 100644
--- a/tests/test-output-refs/test5.1.css.out
+++ b/tests/test-output-refs/test5.1.css.out
@@ -50,6 +50,11 @@ xml start element: E2
prop5 : val5
}
+
+ E2[attr2="val2"] {
+ prop8 : val8
+ }
+
xml end element: E2
'''''''''''''''''''''''''
'''''''''''''''''''''''''