mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Tests: Import SVG-in-iframe sizing tests from WPT
This commit is contained in:
parent
e602578501
commit
630028daa5
Notes:
github-actions[bot]
2024-11-27 13:48:10 +00:00
Author: https://github.com/awesomekling
Commit: 630028daa5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2608
7 changed files with 783 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This file is generated by gen-svgsizing-tests.py -->
|
||||
<html>
|
||||
<head>
|
||||
<title>SVG sizing: <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>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This file is generated by gen-svgsizing-tests.py -->
|
||||
<html>
|
||||
<head>
|
||||
<title>SVG sizing: <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>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This file is generated by gen-svgsizing-tests.py -->
|
||||
<html>
|
||||
<head>
|
||||
<title>SVG sizing: <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>
|
Loading…
Add table
Add a link
Reference in a new issue