[csswg-drafts] Pull Request: [cssom-view-1] Extend 'scroll into view' steps to Ranges

bokand has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [cssom-view-1] Extend 'scroll into view' steps to Ranges ==
[cssom-view-1] Extend 'scroll into view' steps to Ranges

Generalizes The `scroll an element into view` algorithm to work also work for a Range as well as an Element. This is trivial as the only use of Element is to call `getBoundingClientRect` which Range also defines.

Additionally exports this algorithm for use in https://github.com/whatwg/html/issues/8282.

Nit: also fixes erroneous reference to a non-existent `box` variable where `scrolling box` was intended.

See https://github.com/w3c/csswg-drafts/pull/8254


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

Received on Thursday, 22 December 2022 18:26:40 UTC