Skip to content

Commit c21bd0d

Browse files
author
Nick Burris
authored
Clarify scroll-padding scrollport.
The [scrollport](https://www.w3.org/TR/css-overflow-3/#scrollport) refers to the visual viewport. Add clarification that the scroll-padding property is relative to the layout viewport when the scroll container is the root scroller.
1 parent 0a39585 commit c21bd0d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

css-scroll-snap-1/Overview.bs

+7-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,13 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
490490
: <dfn><<length-percentage>></dfn>
491491
::
492492
Defines an inward offset from the corresponding edge of the [=scrollport=].
493-
493+
When the scrollport is the root scroller, the offset is relative to the layout viewport.
494+
495+
<div class="note">
496+
Though the [=scrollport=] is defined as the visual viewport of the scroll container,
497+
scroll padding offsets are relative to the layout viewport when the scroll container is
498+
the root scroller.
499+
</div>
494500
: <dfn>auto</dfn>
495501
::
496502
Indicates that the offset for the corresponding edge of the [=scrollport=] is UA-determined.

0 commit comments

Comments
 (0)