<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Michael,</p>
<p>Oxygen supports the has() pseudo class selector and this is
documented:</p>
<p><a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/doc/ug-editor/topics/has-selector.html">https://www.oxygenxml.com/doc/ug-editor/topics/has-selector.html</a></p>
<p>From what I tested in your case a selector like this should work
in Oxygen:</p>
<p>
<blockquote type="cite"><span
style="font-size:12.0pt;font-family:Courier">entry</span><span
class="s1"><span style="font-size:12.0pt;font-family:Courier">:</span></span><span
style="font-size:12.0pt;font-family:Courier">has</span><span
class="s2"><span style="font-size:12.0pt;font-family:Courier">(</span></span><span
style="font-size:12.0pt;font-family:Courier">styled-content</span><span
class="s2"><span style="font-size:12.0pt;font-family:Courier">)</span></span><span
class="s3"><span style="font-size:12.0pt;font-family:Courier"></span></span></blockquote>
but if an extra ">" is prepended inside the has() pseudo class
it stops working with Oxygen. <br>
</p>
<p>From what I tested a web browser supports both has() value styles
(with or without the > prefix). <br>
</p>
<p>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
">".<br>
</p>
<p>Regards,</p>
<p>Radu</p>
<pre class="moz-signature" cols="72">Radu Coravu
Oxygen XML Editor</pre>
<p></p>
<div class="moz-cite-prefix">On 11/1/22 23:09, Michael Boudreau
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CH0PR11MB55089A30DA2412897B4F36E2CF369@CH0PR11MB5508.namprd11.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:Courier;
panose-1:0 0 0 0 0 0 0 0 0 0;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:"Times New Roman \(Body CS\)";
panose-1:2 11 6 4 2 2 2 2 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;
font-weight:normal;
font-style:normal;}p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0in;
font-size:9.0pt;
font-family:Helvetica;
color:#640050;}span.s1
{mso-style-name:s1;
color:#640032;}span.s2
{mso-style-name:s2;
color:#960000;}span.s3
{mso-style-name:s3;
color:black;}span.s4
{mso-style-name:s4;
color:#1E6496;}span.s5
{mso-style-name:s5;
color:#000096;}span.apple-converted-space
{mso-style-name:apple-converted-space;}.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="p1" style="margin-left:.5in"><span
style="font-size:12.0pt;font-family:Courier">entry</span><span
class="s1"><span
style="font-size:12.0pt;font-family:Courier">:</span></span><span
style="font-size:12.0pt;font-family:Courier">has</span><span
class="s2"><span
style="font-size:12.0pt;font-family:Courier">(</span></span><span
class="s1"><span
style="font-size:12.0pt;font-family:Courier">></span></span><span
class="s3"><span
style="font-size:12.0pt;font-family:Courier">
</span></span><span
style="font-size:12.0pt;font-family:Courier">styled-content</span><span
class="s2"><span
style="font-size:12.0pt;font-family:Courier">)</span></span><span
class="s3"><span
style="font-size:12.0pt;font-family:Courier">
</span></span><span class="s2"><span
style="font-size:12.0pt;font-family:Courier">{</span></span><span
style="font-size:12.0pt;font-family:Courier;color:black"><br>
<span class="apple-converted-space"> </span></span><span
class="s4"><span
style="font-size:12.0pt;font-family:Courier">background-color</span></span><span
class="s1"><span
style="font-size:12.0pt;font-family:Courier">:</span></span><span
class="s3"><span
style="font-size:12.0pt;font-family:Courier">
</span></span><span class="s5"><span
style="font-size:12.0pt;font-family:Courier">#DDEEFF</span></span><span
class="s1"><span
style="font-size:12.0pt;font-family:Courier">;</span></span><span
style="font-size:12.0pt;font-family:Courier;color:black"><br>
</span><span class="s2"><span
style="font-size:12.0pt;font-family:Courier">}</span></span><span
style="font-size:12.0pt;font-family:Courier"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">but the table cell (<entry>) with a
child <styled-content> element didn’t get the expected
light blue background.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal">Michael R. Boudreau<o:p></o:p></p>
<p class="MsoNormal">Electronic Publishing Technology Manager<o:p></o:p></p>
<p class="MsoNormal">The University of Chicago Press<o:p></o:p></p>
<p class="MsoNormal">1427 E. 60<sup>th</sup> Street<o:p></o:p></p>
<p class="MsoNormal">Chicago, IL 60637<o:p></o:p></p>
<p class="MsoNormal"><a class="moz-txt-link-abbreviated" href="http://www.journals.uchicago.edu">www.journals.uchicago.edu</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="https://www.oxygenxml.com/mailman/listinfo/oxygen-user">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>