<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        font-size:10.0pt;
        font-family:"Courier New";}
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.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
p.p1, li.p1, div.p1
        {mso-style-name:p1;
        margin:0in;
        font-size:9.0pt;
        font-family:Helvetica;
        color:#640050;}
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;}
span.EmailStyle29
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Thanks, Radu! I was following the example at <a href="https://w3c.github.io/csswg-drafts/selectors/#relational">
https://w3c.github.io/csswg-drafts/selectors/#relational</a> and assumed the leading “>” was required. Without it, my CSS rule works as I’d hoped.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<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">www.journals.uchicago.edu<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">oXygen-user <oxygen-user-bounces@oxygenxml.com> on behalf of Oxygen XML Editor Support (Radu Coravu) <support@oxygenxml.com><br>
<b>Date: </b>Wednesday, November 2, 2022 at 12:08 AM<br>
<b>To: </b>oxygen-user@oxygenxml.com <oxygen-user@oxygenxml.com><br>
<b>Subject: </b>Re: [oXygen-user] Support for CSS pseudo-class :has()<o:p></o:p></span></p>
</div>
<p>Hi Michael,<span style="font-size:11.0pt"><o:p></o:p></span></p>
<p>Oxygen supports the has() pseudo class selector and this is documented:<o:p></o:p></p>
<p><a href="https://urldefense.com/v3/__https:/www.oxygenxml.com/doc/ug-editor/topics/has-selector.html__;!!BpyFHLRN4TMTrA!-nWvGX_BF8uytD1leIWH_9T8cjz8EWGFQ6bS1Z5lKO1oVD0dztiLGllNULnO0Ah3Xhi060oh8bDzCgf0MBEiYETV$">https://www.oxygenxml.com/doc/ug-editor/topics/has-selector.html</a><o:p></o:p></p>
<p>From what I tested in your case a selector like this should work in Oxygen:<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="font-family:Courier">entry<span class="s1">:</span>has<span class="s2">(</span>styled-content<span class="s2">)</span></span><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">but if an extra ">" is prepended inside the has() pseudo class it stops working with Oxygen.
<o:p></o:p></p>
<p>From what I tested a web browser supports both has() value styles (with or without the > prefix).
<o:p></o:p></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 ">".<o:p></o:p></p>
<p>Regards,<o:p></o:p></p>
<p>Radu<o:p></o:p></p>
<pre>Radu Coravu<o:p></o:p></pre>
<pre>Oxygen XML Editor<o:p></o:p></pre>
<div>
<p class="MsoNormal">On 11/1/22 23:09, Michael Boudreau wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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><o:p></o:p></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 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>
<p class="MsoNormal"><span style="font-size:11.0pt"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>oXygen-user mailing list<o:p></o:p></pre>
<pre><a href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a><o:p></o:p></pre>
<pre><a href="https://urldefense.com/v3/__https:/www.oxygenxml.com/mailman/listinfo/oxygen-user__;!!BpyFHLRN4TMTrA!-nWvGX_BF8uytD1leIWH_9T8cjz8EWGFQ6bS1Z5lKO1oVD0dztiLGllNULnO0Ah3Xhi060oh8bDzCgf0MOysz46Q$">https://www.oxygenxml.com/mailman/listinfo/oxygen-user</a><o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
</div>
</body>
</html>