summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html b/testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html
new file mode 100644
index 0000000000..efe584bc88
--- /dev/null
+++ b/testing/web-platform/tests/css/css-position/sticky/position-sticky-padding-001-ref.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<style>
+ .block {
+ position: relative;
+ width: 300px;
+ height: 210px;
+ padding: 10px;
+ padding-top: 0;
+ margin: 10px;
+ float: left;
+ background-color: #ddd;
+ }
+
+ .col {
+ width: 100px;
+ background-color: blue;
+ height: 210px;
+ }
+
+ .abspos {
+ position: absolute;
+ width: 10px;
+ height: 10px;
+ background-color: cyan;
+ top: 210px;
+ }
+</style>
+<div class="block">
+ <div class="col"></div>
+ <div class="abspos"></div>
+</div>
+<div class="block">
+ <div class="col"></div>
+ <div class="abspos"></div>
+</div>