Hi Michael,

Oxygen supports the has() pseudo class selector and this is documented:

https://www.oxygenxml.com/doc/ug-editor/topics/has-selector.html

From what I tested in your case a selector like this should work in Oxygen:

entry:has(styled-content)
but if an extra ">" is prepended inside the has() pseudo class it stops working with Oxygen.

From what I tested a web browser supports both has() value styles (with or without the > prefix).

I also looked in the CSS specification and I added an internal issue to also support in Oxygen the selector if it has a leading ">".

Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 11/1/22 23:09, Michael Boudreau wrote:

Hello,

Is there any chance that a future version of Oxygen will support the CSS pseudo-class :has() ? I tried the following rule in a stylesheet

entry:has(>styled-content){
background-color:#DDEEFF;
}

but the table cell (<entry>) with a child <styled-content> element didn’t get the expected light blue background.

--

Michael R. Boudreau

Electronic Publishing Technology Manager

The University of Chicago Press

1427 E. 60^th Street

Chicago, IL 60637

www.journals.uchicago.edu


_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to