[wpt-sync] Sync PR 44573 - Use scroll margin for iframes' lazy loader.
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox125 fixed)
Tracking | Status | |
---|---|---|
firefox125 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 44573 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/44573
Details from upstream follow.
Yotam Hacohen <yotha@chromium.org> wrote:
Use scroll margin for iframes' lazy loader.
When creating an intersection observer for an iframe lazy loader we use
the margin values we get from GetLazyLoadingFrameMarginPx as the value
for the scroll margin and not for the root margin, to allow lazy
loading for iframes.(Also including fix to the test expectations and a minor fix for one of
the tests)Spec:
https://html.spec.whatwg.org/#lazy-load-root-marginBug: 40943726
Change-Id: Ifc15d79ced91e5e00d6c736907ea1feaa56a5532
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5293006
Auto-Submit: Yotam Hacohen \<yotha@chromium.org>
Commit-Queue: Yotam Hacohen \<yotha@chromium.org>
Reviewed-by: Traian Captan \<tcaptan@chromium.org>
Reviewed-by: Xianzhu Wang \<wangxianzhu@chromium.org>
Commit-Queue: Traian Captan \<tcaptan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1260177}
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/embedded-content/the-iframe-element/iframe-loading-lazy-in-scroller-nested-2.html [wpt.fyi]
- Test that lazy-loaded iframes load when near viewport.:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- Test that lazy-loaded iframes load when near viewport.:
Comment 5•1 year ago
|
||
bugherder |
Description
•