Skip to content

Commit

Permalink
Merge pull request w3c#19 from ewilligers/shorthand-syntax
Browse files Browse the repository at this point in the history
Shorthand syntax when -x and -y values distinct
  • Loading branch information
majido committed Sep 11, 2017
2 parents 2d039ab + 465f39e commit f5a04ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions index.bs
Expand Up @@ -175,8 +175,8 @@ axis should be considered independently.

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

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.

Values have the following meanings:

<dl dfn-for="scroll-boundary-behavior, scroll-boundary-behavior-x, scroll-boundary-behavior-y" dfn-type="value">
Expand Down
10 changes: 6 additions & 4 deletions index.html
Expand Up @@ -1617,10 +1617,10 @@ <h2 class="heading settled" data-level="5" id="scroll-boundary-behavior-properti
<td><dfn class="dfn-paneled css" data-dfn-type="property" data-export="" id="propdef-scroll-boundary-behavior">scroll-boundary-behavior</dfn>
<tr class="value">
<th>Value:
<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
<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>
<tr>
<th>Initial:
<td>auto
<td>auto auto
<tr>
<th>Applies to:
<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
Expand All @@ -1643,6 +1643,7 @@ <h2 class="heading settled" data-level="5" id="scroll-boundary-behavior-properti
<th>Animatable:
<td>no
</table>
<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>
<p>Values have the following meanings:</p>
<dl>
<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>
Expand Down Expand Up @@ -1840,6 +1841,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<li>
<a data-link-type="biblio">[css-values-4]</a> defines the following terms:
<ul>
<li><a href="https://drafts.csswg.org/css-values-4/#mult-num-range">{a,b}</a>
<li><a href="https://drafts.csswg.org/css-values-4/#comb-one">|</a>
</ul>
</ul>
Expand Down Expand Up @@ -1869,8 +1871,8 @@ <h2 class="no-num no-ref heading settled" id="property-index"><span class="conte
<tbody>
<tr>
<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>
<td>contain | none | auto
<td>auto
<td>[ contain | none | auto ]{1,2}
<td>auto auto
<td>scroll container elements
<td>no
<td>n/a
Expand Down

0 comments on commit f5a04ab

Please sign in to comment.