Skip to content

Commit 0103e8a

Browse files
lahmatiytabatkins
authored andcommitted
[css-content] Fix syntaxes according to CSS Values and Units grammar (#1381)
* [css-content] Fix syntaxes according to CSS Values and Units grammar * PR review fixes
1 parent a518110 commit 0103e8a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

css-content/Overview.bs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Inserting and replacing content with the 'content' property</h2>
164164
Equal to:
165165

166166
<pre class=prod>
167-
[ <<string>> | contents | <<image>> | <<quote>> | <<target>> | ''leader()'' ]+
167+
[ <<string>> | contents | <<image>> | <<quote>> | <<target>> | <<leader()>> ]+
168168
</pre>
169169

170170
Replaces the element's contents with one or more anonymous inline boxes
@@ -378,7 +378,7 @@ Specifying quotes with the 'quotes' property</h4>
378378

379379
<pre class='propdef'>
380380
Name: quotes
381-
Value: [ <<string>> <<string>> ]+ | none
381+
Value: none | [ <<string>> <<string>> ]+
382382
Initial: depends on user agent
383383
Applies To: all elements
384384
Inherited: yes
@@ -422,7 +422,7 @@ Specifying quotes with the 'quotes' property</h4>
422422
The *-quote values of the content property</h4>
423423

424424
<pre class="prod">
425-
<dfn><<quote>></dfn> = [open-quote | close-quote | no-open-quote | no-close-quote]
425+
<dfn><<quote>></dfn> = open-quote | close-quote | no-open-quote | no-close-quote
426426
</pre>
427427

428428
<dl dfn-for="content, <content-list>, <quote>" dfn-type=value>
@@ -601,7 +601,8 @@ The ''leader()'' function</h4>
601601
</dl>
602602

603603
<pre class="prod">
604-
<dfn><<leader-type>></dfn> = leader( dotted | solid | space | <<string>>);
604+
<dfn>leader()</dfn> = leader( <<leader-type>> )
605+
<dfn><<leader-type>></dfn> = dotted | solid | space | <<string>>
605606
</pre>
606607

607608
Three keywords are shorthand values for common strings:
@@ -758,7 +759,7 @@ Cross references and the target-* functions</h3>
758759
Each of these displays information obtained from the target end of a link.
759760

760761
<pre class="prod">
761-
<dfn><<target>></dfn> = [ ''target-counter()'' | ''target-counters()'' | ''target-text()'' ]
762+
<dfn><<target>></dfn> = <<target-counter()>> | <<target-counters()>> | <<target-text()>>
762763
</pre>
763764

764765
See sections below for details on each of these.
@@ -769,7 +770,7 @@ Cross references and the target-* functions</h3>
769770
The ''target-counter()'' function</h4>
770771

771772
<pre class="prod">
772-
<dfn>target-counter()</dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> [ , <<counter-style>> ]? )
773+
<dfn>target-counter()</dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> , <<counter-style>>? )
773774
</pre>
774775

775776
The ''target-counter()'' function retrieves the value
@@ -851,7 +852,7 @@ The ''target-counters()'' function
851852
and formats them by inserting a given string between the value of each nested counter.
852853

853854
<pre class="prod">
854-
<dfn>target-counters()</dfn> = target-counter( [ <<string>> | <<url>> ] , <<custom-ident>> , <<string>> [ , <<counter-style>> ]? )
855+
<dfn>target-counters()</dfn> = target-counters( [ <<string>> | <<url>> ] , <<custom-ident>> , <<string>> , <<counter-style>>? )
855856
</pre>
856857

857858
<div class="example">
@@ -871,7 +872,7 @@ The ''target-text()'' function</h4>
871872
using the same values as the 'string-set' property above.
872873

873874
<pre class="prod">
874-
<dfn id="target-text-function">target-text()</dfn> = target-text( [ <<string>> | <<url>> ] [ , [ content | before | after | first-letter] ]? )
875+
<dfn id="target-text-function">target-text()</dfn> = target-text( [ <<string>> | <<url>> ] , [ content | before | after | first-letter ]? )
875876
</pre>
876877

877878

@@ -938,7 +939,7 @@ The string-set property</h4>
938939

939940
<pre class="propdef">
940941
Name: string-set
941-
Value: [ <<custom-ident>> <<string>>+ ]# | none
942+
Value: none | [ <<custom-ident>> <<string>>+ ]#
942943
Initial: none
943944
Applies to: all elements, but not pseudo-elements
944945
Inherited: no
@@ -1087,7 +1088,7 @@ The ''string()'' function</h4>
10871088
The ''content()'' function</h4>
10881089

10891090
<pre class="prod">
1090-
<dfn>content()</dfn> = content( [text | before | after | first-letter | marker ]? )
1091+
<dfn>content()</dfn> = content( [ text | before | after | first-letter | marker ]? )
10911092
</pre>
10921093

10931094
<dl dfn-type="value" dfn-for="content()">

0 commit comments

Comments
 (0)