Andreas Kemkes wrote:
> 
> Maybe I'm just a bit confused here:
> 
> This works:
> graphic:before {
>     display: block;
>     content: paragraph(content(image(attr(src), -400,
> -100, smooth), xpath("./alt")));
> }
> 
> and this works - the text is red:
> 
> graphic:before {
>     display: block;
>     content: paragraph(content(image(attr(src), -400,
> -100, smooth), xpath("./alt")));
> }
> graphic {
>     color: red;
> }
> 
> but this doesn't - no alt text:
> graphic {
>     display: block;
>     content: paragraph(content(image(attr(src), -400,
> -100, smooth), xpath("./alt")));
> }

I've tested the last rule with this sample:
---
http://www.pixware.fr/_download/Andreas/test.zip
1931bytes, Fri Apr 28 10:45:14 AM CEST 2006
---
And it works fine with v3.2.



> Also, can the two rules tag:first-of-type:before
> {...content:...} and tag:before {...content:...}
> co-exist?  

Yes.

Excerpts of the DocBook CSS style sheets:
---
paramdef:before {
    content: ", ";
    color: gray;
}

paramdef:first-of-type:before {
    content: " (";
}

paramdef:last-of-type:after {
    content: ")";
    color: gray;
}
---


> It appears that the first <tag> is only
> matched by the first selector, whereas all other
> <tag>s are matched by the latter.  Is this expected
> behavior?

This is not a precise description of the expected behavior, but the
answer is yes.

Reply via email to