@@ -511,13 +511,12 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
511
511
: <dfn><<length-percentage>></dfn>
512
512
::
513
513
Defines an inward offset from the corresponding edge of the [=scrollport=] .
514
- When the scrollport is the root scroller, the offset is relative to the layout viewport.
514
+ When applied to the root viewport,
515
+ the offset is calculated and applied relative to the layout viewport
516
+ (rather than the visual viewport);
517
+ the [=optimal viewing region=] is the remaining area
518
+ that intersects with the visual viewport.
515
519
516
- <div class="note">
517
- Though the [=scrollport=] is defined as the visual viewport of the scroll container,
518
- scroll padding offsets are relative to the layout viewport when the scroll container is
519
- the root scroller.
520
- </div>
521
520
: <dfn>auto</dfn>
522
521
::
523
522
Indicates that the offset for the corresponding edge of the [=scrollport=] is UA-determined.
@@ -1262,6 +1261,35 @@ Changes Since 19 March 2019 CR {#changes-20190319}
1262
1261
in order to create the illusion of not scrolling.
1263
1262
</ins></p>
1264
1263
</blockquote>
1264
+ <li id="change-2019-propagation">
1265
+ Defined explicitly that 'scroll-snap-type' and 'scroll-padding' values
1266
+ are propagated from the root element to the document viewport
1267
+ as would be expected.
1268
+ (<a href="https://github.com/w3c/csswg-drafts/issues/3740">Issue 3740</a> )
1269
+ <blockquote>
1270
+ <p><ins> UAs must apply the 'scroll-snap-type' value set on the root element
1271
+ to the document viewport.
1272
+ Note that, unlike 'overflow' ,
1273
+ 'scroll-snap-type' values are <em> not</em> propagated from HTML <{body}> .</ins></p>
1274
+ </blockquote>
1275
+ <blockquote>
1276
+ <p><ins> UAs must apply the 'scroll-padding' values set on the root element
1277
+ to the document viewport.
1278
+ (Note that, unlike 'overflow' ,
1279
+ 'scroll-padding' values are <em> not</em> propagated from HTML <{body}> .)</ins></p>
1280
+ </blockquote>
1281
+ <li id="change-2019-padding-viewport">
1282
+ Clarified that while snap alignment is relative to the visual viewport,
1283
+ 'scroll-padding' is resolved against the layout viewport.
1284
+ (<a href="https://github.com/w3c/csswg-drafts/issues/4393">Issue 4393</a> )
1285
+ <blockquote>
1286
+ <p> Defines an inward offset from the corresponding edge of the [=scrollport=] .
1287
+ <ins> When applied to the root viewport,
1288
+ the offset is calculated and applied relative to the layout viewport
1289
+ (rather than the visual viewport);
1290
+ the [=optimal viewing region=] is the remaining area
1291
+ that intersects with the visual viewport.</ins></p>
1292
+ </blockquote>
1265
1293
</ul>
1266
1294
1267
1295
Changes Since 31 January 2019 CR {#changes-20190131}
@@ -1302,23 +1330,6 @@ Changes Since 31 January 2019 CR {#changes-20190131}
1302
1330
<em> even when snapping is off
1303
1331
or not applied on this element</em></ins> .</p>
1304
1332
</blockquote>
1305
- <li id="change-2019-propagation">
1306
- Defined explicitly that 'scroll-snap-type' and 'scroll-padding' values
1307
- are propagated from the root element to the document viewport
1308
- as would be expected.
1309
- (<a href="https://github.com/w3c/csswg-drafts/issues/3740">Issue 3740</a> )
1310
- <blockquote>
1311
- <p><ins> UAs must apply the 'scroll-snap-type' value set on the root element
1312
- to the document viewport.
1313
- Note that, unlike 'overflow' ,
1314
- 'scroll-snap-type' values are <em> not</em> propagated from HTML <{body}> .</ins></p>
1315
- </blockquote>
1316
- <blockquote>
1317
- <p><ins> UAs must apply the 'scroll-padding' values set on the root element
1318
- to the document viewport.
1319
- (Note that, unlike 'overflow' ,
1320
- 'scroll-padding' values are <em> not</em> propagated from HTML <{body}> .)</ins></p>
1321
- </blockquote>
1322
1333
</ul>
1323
1334
1324
1335
Changes Since 14 August 2018 CR {#changes-20180814}
0 commit comments