Tests: Import SVG-in-iframe sizing tests from WPT

This commit is contained in:
Andreas Kling 2024-11-27 10:56:14 +01:00 committed by Andreas Kling
commit 630028daa5
Notes: github-actions[bot] 2024-11-27 13:48:10 +00:00
7 changed files with 783 additions and 0 deletions

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<!-- This file is generated by gen-svgsizing-tests.py -->
<html>
<head>
<title>SVG sizing: &lt;iframe></title>
<meta name=timeout content=long>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<script src="../resources/svg-sizing.js"></script>
<style>
#testContainer {
position: absolute;
left: 0;
top: 0;
width: 800px;
height: 600px
}
iframe { border: 0 }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width">
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-height">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#replaced-elements">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-dim-width">
<link rel="help" href="http://www.w3.org/TR/SVG/coords.html#ViewportSpace">
</head>
<body>
<div id="log"></div>
<div id="testContainer"></div>
<div id="demo"></div>
<script src="svg-embedded-sizing.js"></script>
<script>testPlaceholderWithHeight("iframe", null)</script>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<!-- This file is generated by gen-svgsizing-tests.py -->
<html>
<head>
<title>SVG sizing: &lt;iframe></title>
<meta name=timeout content=long>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<script src="../resources/svg-sizing.js"></script>
<style>
#testContainer {
position: absolute;
left: 0;
top: 0;
width: 800px;
height: 600px
}
iframe { border: 0 }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width">
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-height">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#replaced-elements">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-dim-width">
<link rel="help" href="http://www.w3.org/TR/SVG/coords.html#ViewportSpace">
</head>
<body>
<div id="log"></div>
<div id="testContainer"></div>
<div id="demo"></div>
<script src="svg-embedded-sizing.js"></script>
<script>testPlaceholderWithHeight("iframe", '100px')</script>
</body>
</html>

View file

@ -0,0 +1,33 @@
<!DOCTYPE html>
<!-- This file is generated by gen-svgsizing-tests.py -->
<html>
<head>
<title>SVG sizing: &lt;iframe></title>
<meta name=timeout content=long>
<script src="../../../../resources/testharness.js"></script>
<script src="../../../../resources/testharnessreport.js"></script>
<script src="../resources/svg-sizing.js"></script>
<style>
#testContainer {
position: absolute;
left: 0;
top: 0;
width: 800px;
height: 600px
}
iframe { border: 0 }
</style>
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-width">
<link rel="help" href="http://www.w3.org/TR/CSS2/visudet.html#inline-replaced-height">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#replaced-elements">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-dim-width">
<link rel="help" href="http://www.w3.org/TR/SVG/coords.html#ViewportSpace">
</head>
<body>
<div id="log"></div>
<div id="testContainer"></div>
<div id="demo"></div>
<script src="svg-embedded-sizing.js"></script>
<script>testPlaceholderWithHeight("iframe", '100%')</script>
</body>
</html>