Skip to content

Commit ed29c24

Browse files
committed
[css-pseudo-4][css-highlight-api-1] Clean up redundancies in linkage. #6755
1 parent f15d687 commit ed29c24

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

css-highlight-api-1/Overview.bs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,12 @@ Styling Custom Highlights</h2>
304304
<h3 id=custom-highlight-pseudo>
305305
The Custom Highlight Pseudo-element: ''::highlight()''</h3>
306306

307-
The <dfn>::highlight(<<custom-highlight-name>>)</dfn> pseudo-element
307+
The ''::highlight()'' pseudo-element
308308
(also known as the <dfn>custom highlight pseudo-element</dfn>)
309309
represents the portion of a document that
310310
is being [=contained=] or [=partially contained=]
311311
in all the [=ranges=] of the [=registered=] [=custom highlight=]
312-
with the [=custom highlight name=] <<custom-highlight-name>>,
313-
if any.
314-
<dfn type><<custom-highlight-name>></dfn> must be a valid CSS <<ident-token>>.
315-
312+
with the [=custom highlight name=] specified as its argument.
316313

317314
<h3 id=processing-model>
318315
Processing Model</h3>

css-pseudo-4/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ Styling the First-Letter Pseudo-elements</h4>
640640
Highlight Pseudo-elements</h2>
641641

642642
<h3 id="highlight-selectors">
643-
Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight'' pseudo-elements</h3>
643+
Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spelling-error'', ''::grammar-error'', and ''::highlight()'' pseudo-elements</h3>
644644

645645
<wpt>
646646
grammar-spelling-errors-001.html
@@ -793,10 +793,12 @@ Selecting Highlighted Content: the ''::selection'', ''::target-text'', ''::spel
793793
grammar-error-003-manual.html
794794
</wpt>
795795

796-
<dt><dfn>::highlight()</dfn>
796+
<dt><dfn>::highlight(<<custom-ident>>)</dfn>
797797
<dd>
798-
The ''::highlight()'' [=functional pseudo-element=] represents content associated with [=custom highlights=].
799-
Each [=custom highlight name=] represents a different type of highlight.
798+
The ''::highlight()'' [=functional pseudo-element=] represents
799+
the portion of the document associated with the [=custom highlight=]
800+
identified by the given [=custom highlight name=].
801+
The <<custom-ident>> argument is required.
800802
See [[CSS-HIGHLIGHT-API-1]] for details.
801803
<wpt>
802804
css/css-highlight-api/painting/custom-highlight-painting-001.html

0 commit comments

Comments
 (0)