Skip to content

Commit f88344e

Browse files
authored
[css-gaps-1] Use commas instead of slashes for *-rule shorthands. #11496 (#12051)
1 parent 9549bb8 commit f88344e

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

css-gaps-1/Overview.bs

+8-13
Original file line numberDiff line numberDiff line change
@@ -844,28 +844,23 @@ Gap decoration shorthands: The 'column-rule' and 'row-rule' properties {#gap-dec
844844
</pre>
845845

846846
<pre class='prod'>
847-
<dfn>&lt;gap-rule-list&gt;</dfn> = <<gap-rule-or-repeat>> [ / <<gap-rule-or-repeat>> ]*
847+
<dfn>&lt;gap-rule-list&gt;</dfn> = <<gap-rule-or-repeat>>#
848848
849-
<dfn>&lt;gap-auto-rule-list&gt;</dfn> = [ [ <<gap-rule-or-repeat>> ] / ]*
850-
<<gap-auto-repeat-rule>>
851-
[ / [ <<gap-rule-or-repeat>> ] ]*
849+
<dfn>&lt;gap-auto-rule-list&gt;</dfn> = <<gap-rule-or-repeat>>#? ,
850+
<<gap-auto-repeat-rule>> ,
851+
<<gap-rule-or-repeat>>#?
852852
853-
<dfn>&lt;gap-rule-or-repeat&gt;</dfn> = [ <<gap-rule>> | <<gap-repeat-rule>> ]
853+
<dfn>&lt;gap-rule-or-repeat&gt;</dfn> = <<gap-rule>> | <<gap-repeat-rule>>
854854
855-
<dfn>&lt;gap-repeat-rule&gt;</dfn> = repeat( [ <<integer [1,∞]>> ] , [ <<gap-rule>> ]# )
855+
<dfn>&lt;gap-repeat-rule&gt;</dfn> = repeat( <<integer [1,∞]>> , <<gap-rule>># )
856856
857-
<dfn>&lt;gap-auto-repeat-rule&gt;</dfn> = repeat( auto , [ <<gap-rule>> ]# )
857+
<dfn>&lt;gap-auto-repeat-rule&gt;</dfn> = repeat( auto , <<gap-rule>># )
858858
859-
<dfn>&lt;gap-rule&gt;</dfn> = [ <<line-width>> || <<line-style>> || <<color>> ]
859+
<dfn>&lt;gap-rule&gt;</dfn> = <<line-width>> || <<line-style>> || <<color>>
860860
</pre>
861861

862862
These shorthands set the corresponding width, style, and color properties as a set.
863863

864-
Issue: Are the slashes to separate values into tuples the right way to structure this?
865-
Or would it be safe to allow free-form mixing, for example 'column-rule: 1px 5px solid black'?
866-
Note that commas are reserved for future extension of the grammar to support
867-
<a href="https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/CSSGapDecorations/explainer.md#placement-of-gap-decorations">gap decoration areas</a>.
868-
869864
Bi-directional gap decoration shorthands: The 'rule-color', 'rule-style', 'rule-width', and 'rule' properties {#rule-bi-directional}
870865
------------------------------------------------------------------------------------------------------------------------------------
871866

0 commit comments

Comments
 (0)