fune/testing/web-platform/tests/css/css-overflow/overflow-canvas.html
Khushal Sagar 5f1c526004 Bug 1775531 [wpt PR 34535] - blink: Enable overflow for canvas elements., a=testonly
Automatic update from web-platform-tests
blink: Enable overflow for canvas elements.

Enable the code-path to apply overflow, overflow-clip-margin and paint
containment to canvas elements similar to other elements.

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

Bug: 1321217
Change-Id: Ib616448bd7bd925ee1ae3b269709903d5cc18637
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3715313
Reviewed-by: Vladimir Levin <vmpstr@chromium.org>
Auto-Submit: Khushal Sagar <khushalsagar@chromium.org>
Commit-Queue: Khushal Sagar <khushalsagar@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: Juanmi Huertas <juanmihd@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1018308}

--

wpt-commits: 67b2eb4343f5dc33a2da9d2ac0cafff8657429a9
wpt-pr: 34535
2022-06-29 10:23:56 +00:00

22 lines
600 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>Verifies overflow applies to canvas 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-canvas-ref.html">
<script src="../css-images/support/testHelper.js"></script>
<style>
.default {
width: 25px;
height: 50px;
object-fit: none;
object-position: 0% 0%;
overflow: visible;
}
</style>
<body>
<canvas class=default></canvas>
</body>
<script>
paintCanvases();
</script>