fune/testing/web-platform/tests/css/css-overflow/overflow-img-scroll-replaced.html
Khushal Sagar 0929333eed Bug 1779116 [wpt PR 34743] - blink: Switch overflow overrides for replaced elements to used value., a=testonly
Automatic update from web-platform-tests
blink: Switch overflow overrides for replaced elements to used value.

Replaced elements support only 2 configs for overflow: visible and clip.
Currently we apply this override at style resolution based on the
element tag to identify replaced elements. This misses cases where a
an element (like img) could be rendered as a non-replaced element if
fallback to alt text is used.

Avoid this by applying the override when using the value in
layout/paint when it's known whether the element will render as a replaced element.

See discussion at: https://github.com/w3c/csswg-drafts/issues/7435.

Bug: 1321217
Change-Id: Iadf653ea4a531a1ab313e2e797988d082d5ef1c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3750018
Auto-Submit: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1022859}

--

wpt-commits: e8138dce388f65c12feff54c07d07e5755962799
wpt-pr: 34743
2022-07-14 16:18:13 +00:00

20 lines
639 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow:scroll on a replaced element clips to content box but doesn't generate scrollbars</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#propdef-overflow">
<link rel="author" title="Khushal Sagar" href="mailto:khushalsagar@chromium.org">
<link rel="match" href="overflow-img-scroll-replaced-ref.html">
<style>
img {
padding: 10px;
background: grey;
object-fit: none;
width: 50px;
height: 50px;
object-position: 0% 0%;
overflow: scroll;
}
</style>
<body>
<img src="../css-images/support/exif-orientation-6-ru.jpg"></img>
</body>