diff options
author | Dodji Seketeli <dodji@gnome.org> | 2003-12-14 15:31:54 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2003-12-14 15:31:54 +0000 |
commit | 6460e61fb325bcc0f14f245450ae1a7c00096100 (patch) | |
tree | 26646c05963e551620450a9e8a10bd25631c486f /docs | |
parent | fc3c35e2b52e4146d06d1d4c34989393bfc88b38 (diff) | |
download | libcroco-6460e61fb325bcc0f14f245450ae1a7c00096100.tar.gz |
added a test case for the A + B type of selectors. added added these
2003-12-14 Dodji Seketeli <dodji@gnome.org>
* docs/examples/selection-example-1.c:
* docs/examples/selection-example-1.xml:
* docs/examples/selection-example-1.css: added a test case
for the A + B type of selectors.
added
* src/seleng/cr-sel-eng.c:
(get_next_element_node)
(get_prev_element_node)
(get_next_parent_element_node): added these helper functions
to help ignore non element nodes in the selector matcher.
(sel_matches_node_real): Do not consider non element nodes
when evaluating a selector.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/selection-example-1.c | 2 | ||||
-rw-r--r-- | docs/examples/selection-example-1.css | 4 | ||||
-rw-r--r-- | docs/examples/selection-example-1.xml | 4 |
3 files changed, 8 insertions, 2 deletions
diff --git a/docs/examples/selection-example-1.c b/docs/examples/selection-example-1.c index ab94492..4932a86 100644 --- a/docs/examples/selection-example-1.c +++ b/docs/examples/selection-example-1.c @@ -5,7 +5,7 @@ * * To compile it using gcc, type * - * gcc `croco-config --cflags` `croco-config --libs` -o selection-example-1 selection-example-1.c + * gcc -g `croco-config --cflags` `croco-config --libs` -o selection-example-1 selection-example-1.c * * @author Stefan Seefeld <seefeld@sympatico.ca> */ diff --git a/docs/examples/selection-example-1.css b/docs/examples/selection-example-1.css index a50fdb4..044e053 100644 --- a/docs/examples/selection-example-1.css +++ b/docs/examples/selection-example-1.css @@ -35,3 +35,7 @@ entry[type=notice] note[id=bar] { padding : 5px; } + +note + notea { + color: notea-color ; +} diff --git a/docs/examples/selection-example-1.xml b/docs/examples/selection-example-1.xml index 90724d3..4c3f558 100644 --- a/docs/examples/selection-example-1.xml +++ b/docs/examples/selection-example-1.xml @@ -2,11 +2,13 @@ <report> <entry type="notice"> <note id="foo"/> + <notea/> <note id="bar"/> </entry> <entry> + <notea/> <note/> <note id="foo"/> <note id="bar"/> </entry> -</report>
\ No newline at end of file +</report> |