Skip to content

Commit 92fc322

Browse files
committed
[css-scroll-snap-1] Explicitly tie together the behavior of fixedpos elements and scroll-padding, since that was the goal, and UAs do fiddly things with fixedpos on mobile. w3c#4393
1 parent e22b022 commit 92fc322

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css-scroll-snap-1/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,9 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
513513
Defines an inward offset from the corresponding edge of the [=scrollport=].
514514
When applied to the root viewport,
515515
the offset is calculated and applied relative to the layout viewport
516-
(rather than the visual viewport);
516+
(rather than the visual viewport)
517+
the same way as the corresponding [=inset properties=]
518+
on [=fixed-positioned boxes=];
517519
the [=optimal viewing region=] is the remaining area
518520
that intersects with the visual viewport.
519521

@@ -1280,13 +1282,16 @@ Changes Since 19 March 2019 CR {#changes-20190319}
12801282
</blockquote>
12811283
<li id="change-2019-padding-viewport">
12821284
Clarified that while snap alignment is relative to the visual viewport,
1283-
'scroll-padding' is resolved against the layout viewport.
1285+
'scroll-padding' is resolved against the layout viewport,
1286+
so that 'scroll-padding' and 'inset' are consistent on the root viewport.
12841287
(<a href="https://github.com/w3c/csswg-drafts/issues/4393">Issue 4393</a>)
12851288
<blockquote>
12861289
<p>Defines an inward offset from the corresponding edge of the [=scrollport=].
12871290
<ins>When applied to the root viewport,
12881291
the offset is calculated and applied relative to the layout viewport
1289-
(rather than the visual viewport);
1292+
(rather than the visual viewport)
1293+
the same way as the corresponding [=inset properties=]
1294+
on [=fixed-positioned boxes=];
12901295
the [=optimal viewing region=] is the remaining area
12911296
that intersects with the visual viewport.</ins></p>
12921297
</blockquote>

0 commit comments

Comments
 (0)