summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scroll-snap/support/common.css
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-scroll-snap/support/common.css')
-rw-r--r--testing/web-platform/tests/css/css-scroll-snap/support/common.css44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-scroll-snap/support/common.css b/testing/web-platform/tests/css/css-scroll-snap/support/common.css
new file mode 100644
index 0000000000..f49c7cbacd
--- /dev/null
+++ b/testing/web-platform/tests/css/css-scroll-snap/support/common.css
@@ -0,0 +1,44 @@
+body {
+ margin: 0;
+}
+
+#scroller {
+ position: absolute;
+ width: 400px;
+ height: 400px;
+ overflow: scroll;
+ padding: 0;
+
+ scroll-snap-type: both mandatory;
+}
+
+.snap {
+ position: absolute;
+ width: 200px;
+ height: 200px;
+ background-color: blue;
+
+ scroll-snap-align: start;
+}
+
+#space {
+ position: absolute;
+ width: 1000px;
+ height: 1000px;
+}
+
+.left {
+ left: 0;
+}
+
+.top {
+ top: 0;
+}
+
+.right {
+ left: 400px;
+}
+
+.bottom {
+ top: 400px;
+} \ No newline at end of file