[wpt-sync] Sync PR 63865 - [iframe] Allow responsive iframes to shrink
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63865 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63865
Details from upstream follow.
Koji Ishii <kojii@chromium.org> wrote:
[iframe] Allow responsive iframes to shrink
LocalFrameView::layout_overflow_size_always unites its own
padding_rect_, which prevents responsive iframes to shrink.This patch adds
layout_overflow_size_without_padding_box_,
which is computed during the existing single pass in
ScrollableOverflowCalculator(), and uses it in
LocalFrameView::RecordNaturalDimensions().This change is guarded by the runtime feature flag
ResponsiveIframesShrink, enabled by default.Fixed: 570579609
Change-Id: Id735425797219a24700272fcfca3f29b7cf44c8cReviewed-on: https://chromium-review.googlesource.com/8584857
WPT-Export-Revision: 7d97a9e909557f425be00549c5a7d82801750839
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=107934
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 64 tests
Status Summary
Firefox
OK : 14[GitHub] 46[Gecko-linux2404-64-opt] 47[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[GitHub] 15[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 22[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 13[GitHub] 41[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 50[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 1
ERROR : 1[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 2[Gecko-linux2404-64-opt]
Chrome
OK : 14
PASS : 7
FAIL : 7
Safari
OK : 14
PASS : 1
FAIL : 13
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-sizing/responsive-iframe/parsing/frame-sizing-computed.html [wpt.fyi]
- Property frame-sizing value 'auto':
FAIL - Property frame-sizing value 'content-width':
FAIL - Property frame-sizing value 'content-height':
FAIL - Property frame-sizing value 'content-inline-size':
FAIL - Property frame-sizing value 'content-block-size':
FAIL
- Property frame-sizing value 'auto':
- /css/css-sizing/responsive-iframe/parsing/frame-sizing-valid.html [wpt.fyi]
- e.style['frame-sizing'] = "auto" should set the property value:
FAIL - e.style['frame-sizing'] = "content-width" should set the property value:
FAIL - e.style['frame-sizing'] = "content-height" should set the property value:
FAIL - e.style['frame-sizing'] = "content-inline-size" should set the property value:
FAIL - e.style['frame-sizing'] = "content-block-size" should set the property value:
FAIL
- e.style['frame-sizing'] = "auto" should set the property value:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=cross,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=cross, allow=parent:
FAIL
- Allow origins check: container=parent, origin=cross, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=http,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=http:
FAIL
- Allow origins check: container=parent, origin=same, allow=http:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=star:
FAIL
- Allow origins check: container=parent, origin=same, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=subdomain,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=subdomain, allow=parent:
FAIL
- Allow origins check: container=parent, origin=subdomain, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=subdomain,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=subdomain, allow=star:
FAIL
- Allow origins check: container=parent, origin=subdomain, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=cross,allow=star,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=cross, allow=star:
FAIL
- Allow origins check: container=parent, origin=cross, allow=star:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=cross,allow=wildcard,expect=400 [wpt.fyi]
- Allow origins check: container=subdomain, origin=cross, allow=wildcard:
FAIL
- Allow origins check: container=subdomain, origin=cross, allow=wildcard:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=parent,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=parent:
FAIL
- Allow origins check: container=parent, origin=same, allow=parent:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?container=subdomain,origin=same,allow=wildcard,expect=400 [wpt.fyi]
- Allow origins check: container=subdomain, origin=same, allow=wildcard:
FAIL
- Allow origins check: container=subdomain, origin=same, allow=wildcard:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=multiple,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=multiple:
FAIL
- Allow origins check: container=parent, origin=same, allow=multiple:
- /css/css-sizing/responsive-iframe/responsive-iframe-allow-origins.html?origin=same,allow=self,expect=400 [wpt.fyi]
- Allow origins check: container=parent, origin=same, allow=self:
FAIL
- Allow origins check: container=parent, origin=same, allow=self:
- /css/css-sizing/responsive-iframe/responsive-iframe-dom-content-loaded.html [wpt.fyi]:
ERRORDOMContentLoadedtriggers resizing:TIMEOUT
- /css/css-sizing/responsive-iframe/responsive-iframe-icb.html [wpt.fyi]
- IFRAME content should use the initial ICB to measure the natural size:
FAIL
- IFRAME content should use the initial ICB to measure the natural size:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation-unsized.html?origin=cross [wpt.fyi]
- Responsive iframe clears size during navigation to non-responsive page:
FAIL
- Responsive iframe clears size during navigation to non-responsive page:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation-unsized.html?origin=same [wpt.fyi]
- Responsive iframe clears size during navigation to non-responsive page:
FAIL
- Responsive iframe clears size during navigation to non-responsive page:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation.html?origin=cross [wpt.fyi]
- Responsive iframe preserves size during navigation:
FAIL
- Responsive iframe preserves size during navigation:
- /css/css-sizing/responsive-iframe/responsive-iframe-navigation.html?origin=same [wpt.fyi]:
ERROR[Gecko-linux2404-64-opt],OK[Gecko-android-em-14-x86_64-debug-geckoview,Gecko-android-em-14-x86_64-lite-opt-geckoview,Gecko-android-em-14-x86_64-opt-geckoview,Gecko-linux2404-64-debug,Gecko-windows11-32-25h2-debug,Gecko-windows11-32-25h2-opt,Gecko-windows11-64-25h2-debug,Gecko-windows11-64-25h2-opt]- Responsive iframe preserves size during navigation:
FAIL
- Responsive iframe preserves size during navigation:
- /css/css-sizing/responsive-iframe/responsive-iframe-request-resize-error.html [wpt.fyi]
window.requestResize()from the parent frame throws DOM NotAllowedError:FAILwindow.requestResize()from iframe withoutresponsive-embedded-sizingmeta tag throws DOM NotAllowedError:FAIL
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,200,150 [wpt.fyi]
- Measure target with value=content-inline-size and wm=undefined:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-inline-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,400,150 [wpt.fyi]
- Measure target with value=content-inline-size and wm=undefined:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-inline-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,300,200,vertical-rl [wpt.fyi]
- Measure target with value=content-inline-size and wm=vertical-rl:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-inline-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-width,200,150,,vertical-rl [wpt.fyi]
- Measure target with value=content-width and wm=:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-width and wm=:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-inline-size,300,100,vertical-rl [wpt.fyi]
- Measure target with value=content-inline-size and wm=vertical-rl:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-inline-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-height,300,100 [wpt.fyi]
- Measure target with value=content-height and wm=undefined:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-height and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-height,300,200 [wpt.fyi]
- Measure target with value=content-height and wm=undefined:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-height and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-width,400,150 [wpt.fyi]
- Measure target with value=content-width and wm=undefined:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-width and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,400,150,vertical-rl [wpt.fyi]
- Measure target with value=content-block-size and wm=vertical-rl:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-block-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,200,150,vertical-rl [wpt.fyi]
- Measure target with value=content-block-size and wm=vertical-rl:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-block-size and wm=vertical-rl:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,300,200 [wpt.fyi]
- Measure target with value=content-block-size and wm=undefined:
FAIL(Chrome:PASS, Safari:FAIL)
- Measure target with value=content-block-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-width,200,150 [wpt.fyi]
- Measure target with value=content-width and wm=undefined:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-width and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-value.html?value=content-block-size,300,100 [wpt.fyi]
- Measure target with value=content-block-size and wm=undefined:
FAIL(Chrome:FAIL, Safari:FAIL)
- Measure target with value=content-block-size and wm=undefined:
- /css/css-sizing/responsive-iframe/responsive-iframe-cross-origin.sub.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-after-head.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-append-to-doc.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-append.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-name-change.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-remove.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-meta-dynamic-write.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe-request-resize.html [wpt.fyi]:
FAIL - /css/css-sizing/responsive-iframe/responsive-iframe.html [wpt.fyi]:
FAIL
Comment 4•24 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/162ab8791f74
https://hg.mozilla.org/mozilla-central/rev/5f745a6b7afc
Description
•