Skip to content

Commit 7140425

Browse files
committed
[css-snappoints] Oops, <percentage> is not a subset of length like I thought it was! Adding it back in explicitly
1 parent 05a47e0 commit 7140425

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

css-snappoints/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
240240

241241
<pre class="propdef">
242242
Name: scroll-snap-padding
243-
Value: <<length>>{1,4}
243+
Value: [ <<length>> | <<percentage>> ]{1,4}
244244
Initial: 0
245245
Applies to: scroll containers
246246
Inherited: no
@@ -251,7 +251,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
251251
</pre>
252252

253253
<dl dfn-type=value dfn-for="scroll-snap-padding">
254-
<dt><dfn><<length>>{1,4}</dfn>
254+
<dt><dfn>[ <<length>> | <<percentage>> ]{1,4}</dfn>
255255
<dd>
256256
Specifies the region inset from the visual viewport. Values are interpreted as for 'padding', and specify inward offsets from each edge of the visual viewport.
257257
</dl>
@@ -264,7 +264,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
264264

265265
<pre class="propdef">
266266
Name: scroll-snap-area
267-
Value: [ border-box | margin-box ]? <<length>>{1,4}
267+
Value: [ border-box | margin-box ]? [ <<length>> | <<percentage>> ]{1,4}
268268
Initial: 0
269269
Applies to: all elements
270270
Inherited: no
@@ -275,7 +275,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
275275
</pre>
276276

277277
<dl dfn-type=value dfn-for="scroll-snap-area">
278-
<dt><dfn>[ border-box | margin-box ]? <<length>>{1,4}</dfn>
278+
<dt><dfn>[ border-box | margin-box ]? [ <<length>> | <<percentage>> ]{1,4}</dfn>
279279
<dd>
280280
Specifies the outset of the element's snap area from the axis-aligned bounding box of the transformed specified box, in the <a>scroll container's</a> coordinate space. Outsets are applied to this bounding box, not the specified box. If the box argument is omitted it defaults to border-box.
281281

css-snappoints/Overview.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ <h2 class="heading settled" data-level="6" id="scroll-snap-padding"><span class=
391391
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-scroll-snap-padding">scroll-snap-padding<a class="self-link" href="#propdef-scroll-snap-padding"></a></dfn>
392392
<tr class="value">
393393
<th>Value:
394-
<td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a>
394+
<td class="prod">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value">&lt;percentage></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a>
395395
<tr>
396396
<th>Initial:
397397
<td>0
@@ -415,7 +415,7 @@ <h2 class="heading settled" data-level="6" id="scroll-snap-padding"><span class=
415415
<td>yes
416416
</table>
417417
<dl>
418-
<dt><dfn class="css" data-dfn-for="scroll-snap-padding" data-dfn-type="value" data-export="" id="valdef-scroll-snap-padding-length1-4"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a>{1,4}<a class="self-link" href="#valdef-scroll-snap-padding-length1-4"></a></dfn>
418+
<dt><dfn class="css" data-dfn-for="scroll-snap-padding" data-dfn-type="value" data-export="" id="valdef-scroll-snap-padding--length--percentage-1-4">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a> | <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value">&lt;percentage></a> ]{1,4}<a class="self-link" href="#valdef-scroll-snap-padding--length--percentage-1-4"></a></dfn>
419419
<dd> Specifies the region inset from the visual viewport. Values are interpreted as for <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/box.html#propdef-padding">padding</a>, and specify inward offsets from each edge of the visual viewport.
420420
</dl>
421421
<p>This property is a shorthand property that sets all of the <a class="property" data-link-type="propdesc">scroll-snap-padding-*</a> longhands in one declaration.</p>
@@ -428,7 +428,7 @@ <h2 class="heading settled" data-level="7" id="scroll-snap-area0"><span class="s
428428
<td><dfn class="css" data-dfn-type="property" data-export="" id="propdef-scroll-snap-area">scroll-snap-area<a class="self-link" href="#propdef-scroll-snap-area"></a></dfn>
429429
<tr class="value">
430430
<th>Value:
431-
<td class="prod">[ border-box <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> margin-box ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a>
431+
<td class="prod">[ border-box <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> margin-box ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a> [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value">&lt;percentage></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-3/#mult-num-range">{1,4}</a>
432432
<tr>
433433
<th>Initial:
434434
<td>0
@@ -452,7 +452,7 @@ <h2 class="heading settled" data-level="7" id="scroll-snap-area0"><span class="s
452452
<td>yes
453453
</table>
454454
<dl>
455-
<dt><dfn class="css" data-dfn-for="scroll-snap-area" data-dfn-type="value" data-export="" id="valdef-scroll-snap-area--border-box--margin-box--length1-4">[ border-box | margin-box ]? <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a>{1,4}<a class="self-link" href="#valdef-scroll-snap-area--border-box--margin-box--length1-4"></a></dfn>
455+
<dt><dfn class="css" data-dfn-for="scroll-snap-area" data-dfn-type="value" data-export="" id="valdef-scroll-snap-area--border-box--margin-box---length--percentage-1-4">[ border-box | margin-box ]? [ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a> | <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#percentage-value">&lt;percentage></a> ]{1,4}<a class="self-link" href="#valdef-scroll-snap-area--border-box--margin-box---length--percentage-1-4"></a></dfn>
456456
<dd>
457457
Specifies the outset of the element’s snap area from the axis-aligned bounding box of the transformed specified box, in the <a data-link-type="dfn" href="#scroll-container">scroll container’s</a> coordinate space. Outsets are applied to this bounding box, not the specified box. If the box argument is omitted it defaults to border-box.
458458
<p class="note" role="note">Note: This ensures that the <a data-link-type="dfn" href="#scroll-snap-area">scroll snap area</a> is always rectangular and axis-aligned to the <a data-link-type="dfn" href="#scroll-container">scroll container’s</a> coordinate space.</p>
@@ -593,10 +593,10 @@ <h4 class="heading settled" id="conform-testing"><span class="content"> Implemen
593593
<h2 class="no-num heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
594594
<h3 class="no-num heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
595595
<ul class="indexlist">
596-
<li><a href="#valdef-scroll-snap-area--border-box--margin-box--length1-4">[ border-box | margin-box ]? &lt;length>{1,4}</a><span>, in §7</span>
596+
<li><a href="#valdef-scroll-snap-area--border-box--margin-box---length--percentage-1-4">[ border-box | margin-box ]? [ &lt;length> | &lt;percentage> ]{1,4}</a><span>, in §7</span>
597597
<li><a href="#valdef-scroll-snap-align-center">center</a><span>, in §8</span>
598598
<li><a href="#valdef-scroll-snap-align-end">end</a><span>, in §8</span>
599-
<li><a href="#valdef-scroll-snap-padding-length1-4">&lt;length>{1,4}</a><span>, in §6</span>
599+
<li><a href="#valdef-scroll-snap-padding--length--percentage-1-4">[ &lt;length> | &lt;percentage> ]{1,4}</a><span>, in §6</span>
600600
<li><a href="#valdef-scroll-snap-type-mandatory">mandatory</a><span>, in §5</span>
601601
<li>
602602
none
@@ -635,6 +635,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
635635
<a data-link-type="biblio" href="#biblio-css-values-3">[css-values]</a> defines the following terms:
636636
<ul>
637637
<li><a href="https://drafts.csswg.org/css-values-3/#length-value">&lt;length></a>
638+
<li><a href="https://drafts.csswg.org/css-values-3/#percentage-value">&lt;percentage></a>
638639
<li><a href="https://drafts.csswg.org/css-values-3/#mult-opt">?</a>
639640
<li><a href="https://drafts.csswg.org/css-values-3/#mult-num-range">{a,b}</a>
640641
<li><a href="https://drafts.csswg.org/css-values-3/#comb-one">|</a>
@@ -691,7 +692,7 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
691692
<td>as specified
692693
<tr>
693694
<th scope="row"><a class="css" data-link-type="property" href="#propdef-scroll-snap-padding">scroll-snap-padding</a>
694-
<td>&lt;length>{1,4}
695+
<td>[ &lt;length> | &lt;percentage> ]{1,4}
695696
<td>0
696697
<td>scroll containers
697698
<td>no
@@ -701,7 +702,7 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
701702
<td>as specified, with lengths made absolute
702703
<tr>
703704
<th scope="row"><a class="css" data-link-type="property" href="#propdef-scroll-snap-area">scroll-snap-area</a>
704-
<td>[ border-box | margin-box ]? &lt;length>{1,4}
705+
<td>[ border-box | margin-box ]? [ &lt;length> | &lt;percentage> ]{1,4}
705706
<td>0
706707
<td>all elements
707708
<td>no

0 commit comments

Comments
 (0)