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)
Core
Layout: Scrolling and Overflow
Tracking
()
RESOLVED
FIXED
140 Branch
Tracking | Status | |
---|---|---|
firefox140 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
Details
Attachments
(1 file)
The test uses these values to compare with integer value (clientHeight). The test will fail with the patch for bug 1674687.
Assignee | ||
Comment 1•3 months ago
|
||
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.)
Updated•3 months ago
|
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
Comment 4•3 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
status-firefox140:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Upstream PR merged by moz-wptsync-bot
Updated•3 months ago
|
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in
before you can comment on or make changes to this bug.
Description
•