Page 1 of 1

Css Condition Not working

Posted: Thu Dec 09, 2021 2:01 pm
by Srinarayan
Hi Team,

We are having a hard time figuring out why our css code is not working properly.

I have attached a piece of code of css, xml and as well as an image. According to the css condition the "workflow status" element should be visible. But when when we see our oxygen web author it is not visible (please refer the image in the attached zip). The logic of the code is fine and the element workflow status should be visible but it is not.

It would be great if you guys can offer some insight.
css.zip
(6.45 KiB) Downloaded 116 times
Regards,
Srinarayan

Re: Css Condition Not working

Posted: Thu Dec 09, 2021 6:47 pm
by mihaela
Hi,

The :first-of-type pseudoclass is not supported [1] in Web Author.
You can try something similar:

Code: Select all

bookevent ~ bookevent bookeventtype{
    display:none !important;
}
[1] https://www.oxygenxml.com/doc/versions/ ... tions.html

Best Regards,
Mihaela