Skip to content

Commit 194cf51

Browse files
committed
[css-images-4] Fix grammar and railroad diagram for color stop hints (related: #976)
1 parent 16882dc commit 194cf51

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

css-images-4/Overview.bs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,13 @@ Gradient Color-Stops</h3>
821821

822822
<pre class=prod>
823823
<dfn>&lt;color-stop-list></dfn> =
824-
[ <<linear-color-stop>> , <<linear-color-hint>>? ]# , <<linear-color-stop>>
824+
[ <<linear-color-stop>> [, <<linear-color-hint>>]? ]# , <<linear-color-stop>>
825825
<dfn>&lt;linear-color-stop></dfn> = <<color>> && <<color-stop-length>>
826826
<dfn>&lt;linear-color-hint></dfn> = <<length-percentage>>
827827
<dfn>&lt;color-stop-length></dfn> = <<length-percentage>>{1,2}
828828
829829
<dfn>&lt;angular-color-stop-list></dfn> =
830-
[ <<angular-color-stop>> , <<angular-color-hint>>? ]# , <<angular-color-stop>>
830+
[ <<angular-color-stop>> [, <<angular-color-hint>>]? ]# , <<angular-color-stop>>
831831
<dfn>&lt;angular-color-stop></dfn> = <<color>> && <<color-stop-angle>>?
832832
<dfn>&lt;angular-color-hint></dfn> = <<angle-percentage>>
833833
<dfn>&lt;color-stop-angle></dfn> = <<angle-percentage>>{1,2}
@@ -839,11 +839,13 @@ Gradient Color-Stops</h3>
839839
Plus:
840840
Sequence:
841841
N: <color-stop>
842-
T: ,
843842
Choice: 1
844-
N: <color-hint>
843+
Sequence:
844+
T: ,
845+
N: <color-hint>
845846
Skip:
846847
T: ,
848+
T: ,
847849
N: <color-stop>
848850
</pre>
849851

0 commit comments

Comments
 (0)