[oXygen-user] authormode css, first-child pseudo class

Andreas Wagner Andreas.Wagner at em.uni-frankfurt.de
Mon Oct 28 16:31:23 CDT 2013


Hi Radu,

you're right and your answer effectively provided the solution. I had to 
add some more stuff for <lb>s withing <note>s and such, but that was 
easy. Thank you a lot for your advice.

Regards,

Andreas

* Oxygen XML Editor Support dixit [2013-10-28 16:30]:
> The first-child selector does not work the way you think it does.
>
> A selector like this:
>
>> head:first-child:before
>
> matches a <head> element which is a first child of its parent 
> element.
> Specs here:
>
>> http://www.w3.org/TR/css3-selectors/#first-child-pseudo
>
> So your selectors should be like:
>
>>   lb{
>>    display:inline;
>>    -oxy-display-tags:none;
>> }
>> p lb:before, item lb:before, head lb:before{
>>    content:"\A? ";
>> }
>> p lb:first-child:before, item lb:first-child:before, head lb:first-child:before{
>>    content:"? ";
>> }



-- 
Dr. Andreas Wagner
Project "The School of Salamanca"
Academy of Sciences and Literature, Mainz
and Institute of Philosophy
Goethe University Frankfurt
http://salamanca.adwmainz.de

Grüneburgplatz 1 (Pf 116, R. 2.455)
60629 Frankfurt am Main
Tel. +49 (0)69/798-32774
Fax  +49 (0)69/798-32794


More information about the oXygen-user mailing list