Skip to content

Commit 92d4285

Browse files
committed
[css-values-4][css-backgrounds-3][editorial] Align grammar structure for <position> and <bg-position>
1 parent ed78c13 commit 92d4285

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

css-backgrounds-3/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,14 +508,15 @@ their initial position (after any <a href="#the-background-size">resizing</a>)
508508
within their corresponding <span>background positioning area.</span>
509509

510510
<p>Where
511-
<pre class=prod><dfn><<bg-position>></dfn> =
511+
<pre class=prod><dfn><<bg-position>></dfn> = [
512512
[ left | center | right | top | bottom | <<length-percentage>> ]
513513
|
514514
[ left | center | right | <<length-percentage>> ]
515515
[ top | center | bottom | <<length-percentage>> ]
516516
|
517517
[ center | [ left | right ] <<length-percentage>>? ] &amp;&amp;
518518
[ center | [ top | bottom ] <<length-percentage>>? ]
519+
]
519520
</pre>
520521

521522
<p>If only one value is specified, the second value is assumed to be

css-values-4/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,12 +2757,14 @@ Combination of <<image>></h4>
27572757

27582758
<pre class=prod>
27592759
<<position>> = [
2760-
[ left | center | right ] || [ top | center | bottom ]
2760+
[ left | center | right | top | bottom | <<length-percentage>> ]
2761+
|
2762+
[ left | center | right ] && [ top | center | bottom ]
27612763
|
27622764
[ left | center | right | <<length-percentage>> ]
2763-
[ top | center | bottom | <<length-percentage>> ]?
2765+
[ top | center | bottom | <<length-percentage>> ]
27642766
|
2765-
[ [ left | right ] <<length-percentage>> ] &amp;&amp;
2767+
[ [ left | right ] <<length-percentage>> ] &&
27662768
[ [ top | bottom ] <<length-percentage>> ]
27672769
]
27682770
</pre>

0 commit comments

Comments
 (0)