Page 1 of 1

Workaround for CSS Limitations

Posted: Wed Jan 31, 2024 6:21 pm
by Johann
Hello,

We are using Author Web version 26.0.

We are aware of the CSS limitations in Author Web: https://www.oxygenxml.com/doc/versions/ ... tions.html

We'd like to know your recommendations for working around the limitations concerning the :has selector, for example.

In Author (Desktop), we have many display rules based on this selector. They are not taken into account in Web Author. How can we reintegrate them?

Do we need to write javascript rules to add classes to the html elements representing the author node elements? Add CSS rules at another level (outside the framework?)?

Can you help us solve this problem?

Thank you,

Johann

Re: Workaround for CSS Limitations

Posted: Fri Feb 02, 2024 11:37 am
by cosminef
Hello,

Indeed, :has selector have certain limitations in Web Author, but you can set pseudo-classes using our API. [1]

[1] https://www.oxygenxml.com/oxygen_sdk/do ... ource-code

Best,
Cosmin