forked from mirrors/gecko-dev
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
18 lines
623 B
HTML
18 lines
623 B
HTML
<!doctype html>
|
|
<meta charset="utf-8">
|
|
<title>Verifies overflow allows scrolling when rendering alt test for img elements</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-non-replaced-ref.html">
|
|
<style>
|
|
img {
|
|
border: solid;
|
|
display: block;
|
|
width: 150px;
|
|
padding: 10px;
|
|
overflow: scroll;
|
|
}
|
|
</style>
|
|
<body>
|
|
<img src="about:invalid" alt="I have scrollbar ................................................................"></img>
|
|
</body>
|