Closed Bug 1966276 Opened 3 months ago Closed 3 months ago

Round the scroll position and getBoundingClientRect().height before using them in scroll-initial-target-with-text-fragment-navigation-target.html

Categories

(Core :: Layout: Scrolling and Overflow, task, P3)

task

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: hiro, Assigned: hiro)

References

Details

Attachments

(1 file)

The target element (top_box) height is defined by '60vh', the scroll
position also depends on vh-units values, thus these values would be
fractional on certain browser window sizes.

(It can be observable with the default headless mode browser window size,
1366x768.)

Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4fa6a18a0800 Round getBoundingClientRect()'s height and Element.scrollTop to avoid mis-comparison between double values and integer values. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/52524 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: