summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/overflow-canvas.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-overflow/overflow-canvas.html')
-rw-r--r--testing/web-platform/tests/css/css-overflow/overflow-canvas.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-overflow/overflow-canvas.html b/testing/web-platform/tests/css/css-overflow/overflow-canvas.html
new file mode 100644
index 0000000000..e9529cb0bc
--- /dev/null
+++ b/testing/web-platform/tests/css/css-overflow/overflow-canvas.html
@@ -0,0 +1,22 @@
+<!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>