Skip to content

Commit f5a04ab

Browse files
authored
Merge pull request w3c#19 from ewilligers/shorthand-syntax
Shorthand syntax when -x and -y values distinct
2 parents 2d039ab + 465f39e commit f5a04ab

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

index.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ axis should be considered independently.
175175

176176
<pre class=propdef>
177177
Name: scroll-boundary-behavior
178-
Value: contain | none | auto
179-
Initial: auto
178+
Value: [ contain | none | auto ]{1,2}
179+
Initial: auto auto
180180
Applies to: <a>scroll container</a> elements
181181
Inherited: no
182182
Media: visual
@@ -185,6 +185,8 @@ Animatable: no
185185
Canonical order: <abbr title="follows order of property value definition">per grammar</abbr>
186186
</pre>
187187

188+
The two values specify the behavior in the horizontal and vertical direction, respectively. If only one value is specified, the second value defaults to the same value.
189+
188190
Values have the following meanings:
189191

190192
<dl dfn-for="scroll-boundary-behavior, scroll-boundary-behavior-x, scroll-boundary-behavior-y" dfn-type="value">

index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,10 +1617,10 @@ <h2 class="heading settled" data-level="5" id="scroll-boundary-behavior-properti
16171617
<td><dfn class="dfn-paneled css" data-dfn-type="property" data-export="" id="propdef-scroll-boundary-behavior">scroll-boundary-behavior</dfn>
16181618
<tr class="value">
16191619
<th>Value:
1620-
<td class="prod">contain <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②">|</a> none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③">|</a> auto
1620+
<td class="prod">[ contain <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②">|</a> none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③">|</a> auto ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-num-range" id="ref-for-mult-num-range">{1,2}</a>
16211621
<tr>
16221622
<th>Initial:
1623-
<td>auto
1623+
<td>auto auto
16241624
<tr>
16251625
<th>Applies to:
16261626
<td><a data-link-type="dfn" href="https://drafts.csswg.org/css-overflow-3/#scroll-container" id="ref-for-scroll-container①⑤">scroll container</a> elements
@@ -1643,6 +1643,7 @@ <h2 class="heading settled" data-level="5" id="scroll-boundary-behavior-properti
16431643
<th>Animatable:
16441644
<td>no
16451645
</table>
1646+
<p>The two values specify the behavior in the horizontal and vertical direction, respectively. If only one value is specified, the second value defaults to the same value.</p>
16461647
<p>Values have the following meanings:</p>
16471648
<dl>
16481649
<dt><dfn class="dfn-paneled css" data-dfn-for="scroll-boundary-behavior, scroll-boundary-behavior-x, scroll-boundary-behavior-y" data-dfn-type="value" data-export="" id="valdef-scroll-boundary-behavior-contain">contain</dfn>
@@ -1840,6 +1841,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
18401841
<li>
18411842
<a data-link-type="biblio">[css-values-4]</a> defines the following terms:
18421843
<ul>
1844+
<li><a href="https://drafts.csswg.org/css-values-4/#mult-num-range">{a,b}</a>
18431845
<li><a href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
18441846
</ul>
18451847
</ul>
@@ -1869,8 +1871,8 @@ <h2 class="no-num no-ref heading settled" id="property-index"><span class="conte
18691871
<tbody>
18701872
<tr>
18711873
<th scope="row"><a class="css" data-link-type="property" href="#propdef-scroll-boundary-behavior" id="ref-for-propdef-scroll-boundary-behavior⑤">scroll-boundary-behavior</a>
1872-
<td>contain | none | auto
1873-
<td>auto
1874+
<td>[ contain | none | auto ]{1,2}
1875+
<td>auto auto
18741876
<td>scroll container elements
18751877
<td>no
18761878
<td>n/a

0 commit comments

Comments
 (0)