summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html
parentInitial commit. (diff)
downloadfirefox-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-position/position-fixed-at-bottom-right-on-viewport.html')
-rw-r--r--testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html b/testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html
new file mode 100644
index 0000000000..9184db028e
--- /dev/null
+++ b/testing/web-platform/tests/css/css-position/position-fixed-at-bottom-right-on-viewport.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<meta charset=utf-8>
+<meta name="viewport" content="width=device-width">
+<link rel="help" href="https://drafts.csswg.org/css-position/#fixed-pos">
+<meta name="assert" content="This test checks that `bottom` and `right` returned by getComputedStyle for position:fixed elements attached to right bottom of the layout viewport expaned to the minimum-scale size">
+<title></title>
+<script src=/resources/testharness.js></script>
+<script src=/resources/testharnessreport.js></script>
+<style>
+html, body {
+ margin: 0;
+ width: 100%;
+ height: 100%;
+}
+#target {
+ position: fixed;
+ bottom: 0;
+ right: 0;
+ background: green;
+ width: 100px;
+ height: 100px;
+}
+</style>
+<div style="width: 200%; height: 200%;"></div>
+<div id="target"></div>
+<script>
+test(() => {
+ assert_equals(getComputedStyle(target).bottom, "0px");
+ assert_equals(getComputedStyle(target).right, "0px");
+}, "position:fixed ");
+</script>