[csswg-drafts] [css-scroll-snap-1] Clarify whether to use the DOM tree order or the flat tree order (#13832)

hiikezoe has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-scroll-snap-1] Clarify whether to use the DOM tree order or the flat tree order ==
Emilio pointed me out the the spec should use the flat tree rather than DOM tree. I agree with him, the flat tree would be more intuitive for web developers.

I've written [a wpt](https://phabricator.services.mozilla.com/D295751), it's testing the selection algorithm uses the flat tree order. As of now the test fails on Chrome, the test passes on Firefox. I am not sure whether it passes on Safari.

CC @emilio @flackr @DevMila

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13832 using your GitHub account


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

Received on Wednesday, 22 April 2026 05:24:17 UTC