@@ -511,13 +511,12 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
511511 : <dfn><<length-percentage>></dfn>
512512 ::
513513 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.
515519
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>
521520 : <dfn>auto</dfn>
522521 ::
523522 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}
12621261 in order to create the illusion of not scrolling.
12631262 </ins></p>
12641263 </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>
12651293 </ul>
12661294
12671295Changes Since 31 January 2019 CR {#changes-20190131}
@@ -1302,23 +1330,6 @@ Changes Since 31 January 2019 CR {#changes-20190131}
13021330 <em> even when snapping is off
13031331 or not applied on this element</em></ins> .</p>
13041332 </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>
13221333 </ul>
13231334
13241335Changes Since 14 August 2018 CR {#changes-20180814}
0 commit comments