Closed Bug 1906895 Opened 10 months ago Closed 10 months ago

Text-Fragments: Scroll the start container of the range into view instead of its common ancestor

Categories

(Core :: DOM: Navigation, task)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: jjaschke, Assigned: jjaschke)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file closest-ancestor.html

Currently, the spec requires the closest common ancestor to be scrolled to, which is currently implemented in Gecko. This can lead to unwanted results if the common ancestor is not in the same view port as the text directive range (see example). Therefore, it makes more sense to scroll to the start container of the text directive range.

See Also: → 1907808
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/91c93776446c Text Fragments: Scroll the start container of a range into view instead of its common ancestor. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47125 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Upstream PR merged by moz-wptsync-bot
Component: Layout → DOM: Navigation
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: