diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-round-display | |
parent | Initial commit. (diff) | |
download | firefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-round-display')
16 files changed, 489 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-round-display/META.yml b/testing/web-platform/tests/css/css-round-display/META.yml new file mode 100644 index 0000000000..bfc6b1d65c --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/META.yml @@ -0,0 +1,3 @@ +spec: https://drafts.csswg.org/css-round-display/ +suggested_reviewers: + - jihyerish diff --git a/testing/web-platform/tests/css/css-round-display/polar-anchor-center-001.html b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-001.html new file mode 100644 index 0000000000..2af9546a0c --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-001.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Anchor of the element</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property"> + <meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'."> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-anchor: center; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at the upper left corner of the containing block.<br> + The element is positioned using Cartesian coordinates and the anchor point is at its center.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-anchor-center-002.html b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-002.html new file mode 100644 index 0000000000..9648a7b3ac --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-002.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Anchor of the element</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property"> + <meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'."> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-anchor: center; + left: 50px; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at 50px far from the left edge of the containing block.<br> + The element is positioned using Cartesian coordinates and the anchor point is at its center.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-anchor-center-003.html b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-003.html new file mode 100644 index 0000000000..d8c71e3f26 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-anchor-center-003.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Anchor of the element</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property"> + <meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'."> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-anchor: center; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at the center of the containing block.<br> + The element is positioned using polar coordinates and the anchor point is at its center.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-anchor-left-top-001.html b/testing/web-platform/tests/css/css-round-display/polar-anchor-left-top-001.html new file mode 100644 index 0000000000..1e57f041a9 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-anchor-left-top-001.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Anchor of the element</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property"> + <meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'."> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-anchor: left top; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the upper left corner of a red box is positioned at the upper left corner of the containing block.<br> + The element is positioned using Cartesian coordinates and the anchor point is at its upper left corner.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-anchor-top-001.html b/testing/web-platform/tests/css/css-round-display/polar-anchor-top-001.html new file mode 100644 index 0000000000..8487070b2c --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-anchor-top-001.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Anchor of the element</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-anchor-property"> + <meta name="assert" content="Test checks that the representative point of the element specified with 'polar-anchor'."> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-anchor: top; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center point of the red box's top edge is positioned at the center of the containing block.<br> + The element is positioned using polar coordinates and the anchor point is at the center of its top edge.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-001.html b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-001.html new file mode 100644 index 0000000000..811a759e76 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-001.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: center; + polar-anchor: center; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of the red box is positioned at the center of the containing block.<br> + The element is positioned using polar coordinates.<br> + The origin of coordinates is the center point of the containing block.<br> + And the anchor point of the element is its center point.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-002.html b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-002.html new file mode 100644 index 0000000000..cb02361b35 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-002.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: center; + polar-anchor: left; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center point of the red box's left edge is positioned at the center of the containing block.<br> + The element is positioned using polar coordinates.<br> + The origin of coordinates is the center point of the containing block.<br> + And the anchor point of the element is the center point of its left edge.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-003.html b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-003.html new file mode 100644 index 0000000000..4ccbdd63d6 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-003.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: bottom; + polar-anchor: left; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center point of the red box's left edge is positioned at the center point of the containing block's bottom edge.<br> + The element is positioned using polar coordinates.<br> + The origin of coordinates is the center point of the containing block's bottom edge.<br> + And the anchor point of the element is the center point of its left edge.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-004.html b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-004.html new file mode 100644 index 0000000000..89bc44989c --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-and-anchor-004.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: 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 center point of the containing block's bottom edge.<br> + The element is positioned using polar coordinates.<br> + The origin of coordinates is the center point of the containing block's bottom edge.<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> 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> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-auto-001.html b/testing/web-platform/tests/css/css-round-display/polar-origin-auto-001.html new file mode 100644 index 0000000000..9227948f3b --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-auto-001.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Origin of Coordinates</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-origin-property" /> + <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." /> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-origin: auto; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the upper left corner of a red box is positioned at the upper left corner of the containing block.<br> + The element is positioned using Cartesian coordinates and the origin of coordinates is the upper left corner of the containing block.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-auto-002.html b/testing/web-platform/tests/css/css-round-display/polar-origin-auto-002.html new file mode 100644 index 0000000000..6d321253bd --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-auto-002.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Origin of Coordinates</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-origin-property" /> + <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." /> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-origin: auto; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at the center of the containing block.<br> + The element is positioned using polar coordinates and the origin of coordinates is the center of the containing block.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-center-001.html b/testing/web-platform/tests/css/css-round-display/polar-origin-center-001.html new file mode 100644 index 0000000000..0be9a8eca0 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-center-001.html @@ -0,0 +1,30 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Origin of Coordinates</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/motion-1/#polar-origin-property" /> + <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." /> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-origin: center; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the upper left corner of a red box is positioned at the center of the containing block.<br> + The element is positioned using Cartesian coordinates and the origin of coordinates is the center of the containing block.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-left-001.html b/testing/web-platform/tests/css/css-round-display/polar-origin-left-001.html new file mode 100644 index 0000000000..59ad21e310 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-left-001.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Origin of Coordinates</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-origin-property" /> + <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." /> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-origin: left; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at the center of the containing block's left edge.<br> + The element is positioned using polar coordinates and the origin of coordinates is the center of the containing block's left edge.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/css-round-display/polar-origin-left-bottom-001.html b/testing/web-platform/tests/css/css-round-display/polar-origin-left-bottom-001.html new file mode 100644 index 0000000000..7b6770c4a6 --- /dev/null +++ b/testing/web-platform/tests/css/css-round-display/polar-origin-left-bottom-001.html @@ -0,0 +1,32 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS Test: Origin of Coordinates</title> + <link rel="author" title="Jihye Hong" href="mailto:jh.hong@lge.com" /> + <link rel="help" href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-origin-property" /> + <meta name="assert" content="Test checks that the origin of the coordinate system specified with 'polar-origin'." /> + <style type="text/css"> + .container { + width: 200px; + height: 200px; + border: medium solid black; + } + .item { + position: absolute; + polar-origin: left bottom; + polar-distance: 0px; + polar-angle: 90deg; + width: 50px; + height: 50px; + background-color: red; + } + </style> + </head> + <body> + <p>Test passes if the center of a red box is positioned at the left-side bottom corner of the containing block.<br> + The element is positioned using polar coordinates and the origin of coordinates is the left-side bottom corner of the containing block's left edge.</p> + <div class="container"> + <div class="item"></div> + </div> + </body> +</html> |