summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html')
-rw-r--r--testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html
new file mode 100644
index 0000000000..a219f7c57e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-005.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>CSS Test: Position an element with 'polar-origin' and 'polar-anchor'</title>
+ <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" />
+ <link rel="help" href="https://www.w3.org/TR/motion-1/#motion-paths-overview/">
+ <meta name="assert" content="Test checks that the position of an element specified with 'polar-origin' and 'polar-anchor'.">
+ <style type="text/css">
+ .container {
+ width: 200px;
+ height: 200px;
+ border: medium solid black;
+ }
+ .item {
+ position: absolute;
+ polar-origin: right bottom;
+ polar-anchor: left top;
+ polar-distance: 0px;
+ polar-angle: 90deg;
+ width: 50px;
+ height: 50px;
+ background-color: red;
+ }
+ </style>
+ </head>
+ <body>
+ <p>Test passes if the upper left corner of the red box is positioned at the lower right corner of the containing block's bottom edge.<br>
+ The element is positioned using polar coordinates.<br>
+ The origin of coordinates is at the lower right corner of the containing block.<br>
+ And the anchor point of the element is at its upper left corner.</p>
+ <div class="container">
+ <div class="item"></div>
+ </div>
+ </body>
+</html>