You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="note" role="note">Note: Historically (and at the time of writing)
506
506
only <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-color-3/#color0">color</a> and <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">background-color</a> have been interoperably supported.</p>
507
507
<p>If <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-color-3/#color0">color</a> is not specified, the text (and text decoration)'s
508
-
unselected color must be used for the highlight.
508
+
unselected color must be used for the highlighted text.
509
509
(As usual, the initial <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">background-color</a> is <aclass="css" data-link-type="maybe" href="https://drafts.csswg.org/css-color-4/#valdef-color-transparent">transparent</a>.)
510
510
Issue: Can we reuse <spanclass="css">currentColor</span> for this, now that it computes to itself?</p>
511
511
<p>The UA should use the OS-default highlight colors
Note: Because <aclass="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-decor-3/#propdef-text-emphasis-color">text-emphasis-color</a> defaults to <spanclass="css">currrentColor</span>,
521
521
it will by default also set the color of the the emphasis marks.</p>
522
522
<h3class="heading settled" data-level="3.3" id="highlight-bounds"><spanclass="secno">3.3. </span><spanclass="content"> Area of a Highlight</span><aclass="self-link" href="#highlight-bounds"></a></h3>
523
-
<p>For each type of highlighting
524
-
there exists a <dfndata-dfn-type="dfn" data-noexport="" id="highlight-overlay">highlight overlay<aclass="self-link" href="#highlight-overlay"></a></dfn>,
523
+
<p>For each type of highlighting (see <ahref="#highlight-selectors">§3.1 Selecting Highlighted Content: the ::selection, ::spelling-error, and ::grammar-error pseudo-elements</a>)
524
+
there exists a single <dfndata-dfn-type="dfn" data-noexport="" id="highlight-overlay">highlight overlay<aclass="self-link" href="#highlight-overlay"></a></dfn> for the entire document,
525
525
the active portions of which are represented
526
526
by the corresponding <adata-link-type="dfn" href="#highlight-pseudo-elements">highlight pseudo-element</a>.
527
-
Each box owns a piece of the overlay corresponding to any text or replaced content
527
+
Each box owns the piece of the overlay corresponding to any text or replaced content
528
528
directly contained by the box. </p>
529
529
<ul>
530
530
<li> For text, the corresponding overlay must cover at least the entire em box
<p>Each element draws its own portion of the <adata-link-type="dfn" href="#highlight-overlay">highlight overlay</a>,
544
544
which receives the styles specified by the <adata-link-type="dfn" href="#highlight-pseudo-elements">highlight pseudo-element</a> styles
545
-
for which it or one of its ancestors is the <i>originating element</i>.
545
+
for which that element or one of its ancestors is the <adata-link-type="dfn" href="https://drafts.csswg.org/selectors-4/#originating-element">originating element</a>.
546
546
When multiple styles conflict,
547
547
the winning style is the one belonging to the innermost element
<dd>S. Bradner. <ahref="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <ahref="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
0 commit comments