In brief
The setting belongs to the container being scrolled.
Useful to know
scroll-padding-top determines the distance from the top edge of the optimal visible area of a scrolling container. It can detect a fixed tape that obscures part of the panel. [1]
Example: .panel { overflow: auto; scroll-padding-top: 4rem; }. Children remain in their usual arrangement; this is not a substitute for padding for the interior design. When many targets in a panel have the same requirement, setting on the container is convenient . scroll-margin-top is the other side of the task - extra space around the specific target.
Sources
For further detail and to check the information: