fune/testing/web-platform/tests/css/css-flexbox/flexbox_object-ref.html
Khushal Sagar 875d636641 Bug 1779062 [wpt PR 34748] - blink: Switch embedded elements to use overflow properties., a=testonly
Automatic update from web-platform-tests
blink: Switch embedded elements to use overflow properties.

This change switches embedded elements to clip to content box using
existing platform primitives (overflow and overflow-clip-margin) instead
of a custom code-path in paint and hit testing.

Note that as opposed to other replaced elements, embedded elements are
still not allowed to have ink overflow using rules enforced in UA CSS.

R=pdr@chromium.org, vmpstr@chromium.org

Bug: 1321217
Change-Id: Ifafacd936bfd0d76816f9460a310fa92ae32250a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3747336
Commit-Queue: Philip Rogers <pdr@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Auto-Submit: Khushal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1022811}

--

wpt-commits: 8c410d74ae3aa1731bddf901492beab76eaf35d9
wpt-pr: 34748
2022-07-14 16:18:13 +00:00

23 lines
419 B
HTML

<!DOCTYPE html>
<title>flexbox | object fallback as a flex item</title>
<link rel="author" href="http://opera.com" title="Opera Software">
<style>
div {
background: #ffcc00;
justify-content: space-around;
display: flex;
}
div>* {
background: #3366cc;
margin: 0;
}
.clip {
overflow: clip;
}
</style>
<div>
<p class="clip">this is supposed to be a flex item</p>
<p>this is supposed to be a flex item</p>
</div>