This patch specifies how a Range is used as the indicated part of the document. It refactors the "scroll rect into view" part of the CSSOM's scroll element into view algorithm so that it can be reused in an algorithm scrolling a Range into view. The indicated part of the document can now be specified as a Range in addition to an Element, where the element becomes the Document's target element and the Range is used for the scroll into view position.
This patch specifies how a Range is used as the indicated part of the document. It refactors the "scroll rect into view" part of the CSSOM's scroll element into view algorithm so that it can be reused in an algorithm scrolling a Range into view. The indicated part of the document can now be specified as a Range in addition to an Element, where the element becomes the Document's target element and the Range is used for the scroll into view position.
Fixes #66