Skip to content

Commit 89d61c1

Browse files
committed
[css-pseudo-4][editorial] Clarify note, fix markup
1 parent 588363b commit 89d61c1

File tree

1 file changed

+10
-46
lines changed

1 file changed

+10
-46
lines changed

css-pseudo-4/Overview.bs

+10-46
Original file line numberDiff line numberDiff line change
@@ -437,18 +437,21 @@ First Letters and Associated Punctuation</h4>
437437
</ul>
438438

439439
<div class="note">
440-
Informally represented, the [=first-letter text=]’s pattern here
440+
Informally, the [=first-letter text=]’s pattern here
441441
can be roughly
442-
(ignoring the exclusion of word separators from <code>Zs</code>)
443-
represented as
442+
(ignoring the exclusions from <code>Zs</code>)
443+
represented as the regular expression
444444
<code highlight="bnf" style="font-family: inherit">
445-
(P (Zs|P)*)? (L\|N\|S) ((Zs|P−(Ps|Pd))* (P−(Ps|Pd))?</code>
445+
(P (Zs|P)*)? (L&#x7c;N|S) ((Zs|P−(Ps|Pd))* (P−(Ps|Pd))?</code>--
446446
or, alternatively,
447447
<code highlight="bnf" style="font-family: inherit">
448-
(&#91;P] [Zs P]*)? [L N S] ([Zs [P--[Ps Pd]]]* [P--[Ps Pd]])?</code>
448+
(&#91;P] [Zs P]*)? [L N S] ([Zs [P--[Ps Pd]]]* [P--[Ps Pd]])?</code>--
449+
where the Unicode category abbreviation represents the set
450+
of all [=typographic character units=] belonging to that category.
451+
449452
<!-- this is not actually BNF, but it highlights better that way -->
450453

451-
<!-- Bikeshed is <a href="https://github.com/tabatkins/bikeshed/issues/2202">eating punctuation</a> in this note (unless escaped with undocumented escape sequences), which is not helpful. -->
454+
<!-- Bikeshed is <a href="https://github.com/tabatkins/bikeshed/issues/2202">eating punctuation</a> in this note (unless escaped with undocumented escape sequences), which is not helpful. -->
452455

453456
<pre class=railroad>
454457
Optional:
@@ -815,45 +818,6 @@ Selecting Highlighted Content: the ''::selection'', ''::search-text'', ''::targe
815818
identified by the given [=custom highlight name=].
816819
The <<custom-ident>> argument is required.
817820
See [[CSS-HIGHLIGHT-API-1]] for details.
818-
<wpt>
819-
css/css-highlight-api/painting/custom-highlight-painting-001.html
820-
css/css-highlight-api/painting/custom-highlight-painting-002.html
821-
css/css-highlight-api/painting/custom-highlight-painting-003.html
822-
css/css-highlight-api/painting/custom-highlight-painting-004.html
823-
css/css-highlight-api/painting/custom-highlight-painting-005.html
824-
css/css-highlight-api/painting/custom-highlight-painting-006.html
825-
css/css-highlight-api/painting/custom-highlight-painting-007.html
826-
css/css-highlight-api/painting/custom-highlight-painting-008.html
827-
css/css-highlight-api/painting/custom-highlight-painting-009.html
828-
css/css-highlight-api/painting/custom-highlight-painting-010.html
829-
css/css-highlight-api/painting/custom-highlight-painting-011.html
830-
css/css-highlight-api/painting/custom-highlight-painting-012.html
831-
css/css-highlight-api/painting/custom-highlight-painting-013.html
832-
css/css-highlight-api/painting/custom-highlight-painting-014.html
833-
css/css-highlight-api/painting/custom-highlight-painting-015.html
834-
css/css-highlight-api/painting/custom-highlight-painting-iframe-001.html
835-
css/css-highlight-api/painting/custom-highlight-painting-iframe-002.html
836-
css/css-highlight-api/painting/custom-highlight-painting-iframe-003.html
837-
css/css-highlight-api/painting/custom-highlight-painting-iframe-004.html
838-
css/css-highlight-api/painting/custom-highlight-painting-iframe-005.html
839-
css/css-highlight-api/painting/custom-highlight-painting-iframe-006.html
840-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-001.html
841-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-002.html
842-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-003.html
843-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-004.html
844-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-005.html
845-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-006.html
846-
css/css-highlight-api/painting/custom-highlight-painting-invalidation-007.html
847-
css/css-highlight-api/painting/custom-highlight-painting-prioritization-001.html
848-
css/css-highlight-api/painting/custom-highlight-painting-prioritization-002.html
849-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-001.html
850-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-002.html
851-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-003.html
852-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-004.html
853-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-005.html
854-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-006.html
855-
css/css-highlight-api/painting/custom-highlight-painting-staticrange-007.html
856-
</wpt>
857821
</dl>
858822

859823
The <a>highlight pseudo-elements</a>
@@ -934,7 +898,7 @@ Styling Highlights</h3>
934898

935899
<ul>
936900
<li>'forced-color-adjust' (used in [=forced colors mode=] to resolve colors)
937-
and 'color-scheme' (used to resolve [=system colors=])
901+
and 'color-scheme' (used to resolve <<system-color>> values)
938902
<li>'font-size', 'font-family', etc. (used to resolve ''em'' and other [=font-relative lengths=]).
939903
<li>'line-height' (used to resolve ''lh'' units)
940904
<li>[=custom properties=] [[!CSS-VARIABLES-1]] (used in ''var()'' substitutions)

0 commit comments

Comments
 (0)