commit deccfee41350b049f1e3d17d253cebdbbe3d6f8c
parent f1cbe516271b0abf2b94f7641abf4e7414be8bf7
Author: Ahmad Saleem <52317531+Ahmad-S792@users.noreply.github.com>
Date: Fri, 14 Nov 2025 10:24:20 +0000
Bug 2000141 [wpt PR 56028] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=273759, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=273759 (#56028)
--
wpt-commits: 73a7f2e3313d5451d72d1dcb231a0bd631dec0f5
wpt-pr: 56028
Diffstat:
2 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/svg/coordinate-systems/out-of-flow-svg-root-ref.html b/testing/web-platform/tests/svg/coordinate-systems/out-of-flow-svg-root-ref.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+<link rel="help" href="https://www.w3.org/TR/SVG2/coords.html">
+<style>
+ section { margin-bottom: 10px; }
+ div { background: rgba(255, 0, 0, 0.15) }
+ svg { background: rgba(0, 0, 255, 0.15) }
+</style>
+<body>
+ <section>
+ <div style="position: relative; width: 240px; height: 340px;">
+ <svg style="position: absolute;" width="240" height="240"
+ xmlns="http://www.w3.org/2000/svg"></svg>
+ </div>
+ </section>
+ <section>
+ <div style="position: relative; width: 300px; height: 200px">
+ <div style="position: absolute; width: 300px; height: 200px;">
+ <svg style="position: absolute;" width="200" height="200"
+ xmlns="http://www.w3.org/2000/svg"></svg>
+ </div>
+ </div>
+ </section>
+</body>
+</html>
diff --git a/testing/web-platform/tests/svg/coordinate-systems/out-of-flow-svg-root.html b/testing/web-platform/tests/svg/coordinate-systems/out-of-flow-svg-root.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<link rel="help" href="https://www.w3.org/TR/SVG2/coords.html">
+<link rel="match" href="out-of-flow-svg-root-ref.html">
+<style>
+ section { margin-bottom: 10px; }
+ div { background: rgba(255, 0, 0, 0.15) }
+ svg { background: rgba(0, 0, 255, 0.15) }
+</style>
+<body>
+ <section>
+ <div style="position: relative; width: 200px; height: 300px; padding: 20px">
+ <svg style="position: absolute; top: 0; left: 0; right: 0" viewBox="0 0 1 1"
+ xmlns="http://www.w3.org/2000/svg"></svg>
+ </div>
+ </section>
+ <section>
+ <div style="position: relative; width: 300px; height: 200px">
+ <div style="position: absolute; top: 0; left: 0; bottom: 0; right: 0; padding: 20px;">
+ <svg style="position: absolute; top: 0; left: 0; height: 100%" viewBox="0 0 1 1"
+ xmlns="http://www.w3.org/2000/svg"></svg>
+ </div>
+ </div>
+ </section>
+</body>
+</html>