Re: [csswg-drafts] [scroll-animations-1] view timeline insets (#7243)

For `scroll-padding` is makes sense to have 4 values, as you could have 2D-scrolling and want to set all 4. As we’re only looking at one axis at a time here, only 2 values are needed: a start and an end inset _(for the targeted axis)_.

By having only 2 values:
- it’s easy to flip the axis without needing to re-order the insets
- it plays nice with scenarios where authors use an altered the direction or writing mode. The 4 values for `scroll-padding` are  `trbl` and are not affected by this change, whereas having only 2 inset values would always be one for start and one for the end inset.

Given this, one could say that `view-timeline-inset` is a shorthand for `view-timeline-inset-start` and `view-timeline-inset-end` – cfr. what @kevers-google [suggested earlier on](https://github.com/w3c/csswg-drafts/issues/7243#issue-1222982592)

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7243#issuecomment-1176786494 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 July 2022 21:51:55 UTC