From d502de118110eccf135cca563f8c535759f743e4 Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Wed, 24 Dec 2003 18:56:27 +0000 Subject: some light cosmetic changes. several fixes. Managed to make the pluggable 2003-12-24 Dodji Seketeli * src/parser/cr-additional-sel.h,src/parser/cr-pseudo.h, src/parser/cr-utils.h: some light cosmetic changes. * src/seleng/cr-sel-eng.c: several fixes. Managed to make the pluggable handler for pseudo class selectors evaluation work. Wrote a handler for the ":first-child" pseudo class selector. This class is now officially supported. --- tests/test-inputs/test5.1.css | 1 + tests/test-output-refs/test5.1.css.out | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'tests') diff --git a/tests/test-inputs/test5.1.css b/tests/test-inputs/test5.1.css index e5f2009..8847471 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} +:first-child {first-child-prop: first-child-value} E2[attr2=val2] {prop8: val8} E0 {prop0: val0} E0+E1{pro1:val1} diff --git a/tests/test-output-refs/test5.1.css.out b/tests/test-output-refs/test5.1.css.out index bb1d76f..b29f30e 100644 --- a/tests/test-output-refs/test5.1.css.out +++ b/tests/test-output-refs/test5.1.css.out @@ -1,8 +1,24 @@ ''''''''''''''''''''''''' +xml start element: document + + + + :first-child { + first-child-prop : first-child-value + } + +xml end element: document +''''''''''''''''''''''''' +''''''''''''''''''''''''' xml start element: E0 + :first-child { + first-child-prop : first-child-value + } + + E0 { prop0 : val0 } @@ -25,6 +41,11 @@ xml start element: E1-1 + :first-child { + first-child-prop : first-child-value + } + + E1 E1-1 { prop2 : val2 } -- cgit v1.2.1