Bug 1495824 [wpt PR 13319] - [css-scroll-snap] Inheritance and initial values, a=testonly
authorTab Atkins Jr <jackalmage@gmail.com>
Tue, 09 Oct 2018 04:12:45 +0000
changeset 495920 225d66a29feace04b955c671f0abb60c16547b28
parent 495919 49e9ff9024c647ff1f76d1dbd3e6b5d6f08e543d
child 495921 7a5fbc7c20518c2ba068bb0882af31ea095de5ef
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1495824, 13319
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1495824 [wpt PR 13319] - [css-scroll-snap] Inheritance and initial values, a=testonly Automatic update from web-platform-testsMerge pull request #13319 from ewilligers/scroll-snap-inheritance [css-scroll-snap] Inheritance and initial values -- wpt-commits: ae452389fc4c04f275f84e2c884fece8af12eb90 wpt-pr: 13319
testing/web-platform/tests/css/css-scroll-snap/inheritance.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-scroll-snap/inheritance.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Inheritance of CSS Scroll Snap properties</title>
+<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#property-index">
+<meta name="assert" content="Properties inherit or not according to the spec.">
+<meta name="assert" content="Properties have initial values according to the spec.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/inheritance-testcommon.js"></script>
+</head>
+<body>
+<div id="container">
+<div id="target"></div>
+</div>
+<script>
+assert_not_inherited('scroll-margin-block-end', '0px', '10px');
+assert_not_inherited('scroll-margin-block-start', '0px', '10px');
+assert_not_inherited('scroll-margin-bottom', '0px', '10px');
+assert_not_inherited('scroll-margin-inline-end', '0px', '10px');
+assert_not_inherited('scroll-margin-inline-start', '0px', '10px');
+assert_not_inherited('scroll-margin-left', '0px', '10px');
+assert_not_inherited('scroll-margin-right', '0px', '10px');
+assert_not_inherited('scroll-margin-top', '0px', '10px');
+assert_not_inherited('scroll-padding-block-end', 'auto', '10px');
+assert_not_inherited('scroll-padding-block-start', 'auto', '10px');
+assert_not_inherited('scroll-padding-bottom', '0px', '10px');
+assert_not_inherited('scroll-padding-inline-end', 'auto', '10px');
+assert_not_inherited('scroll-padding-inline-start', 'auto', '10px');
+assert_not_inherited('scroll-padding-left', '0px', '10px');
+assert_not_inherited('scroll-padding-right', '0px', '10px');
+assert_not_inherited('scroll-padding-top', '0px', '10px');
+assert_not_inherited('scroll-snap-align', 'none', 'start end');
+assert_not_inherited('scroll-snap-stop', 'normal', 'always');
+assert_not_inherited('scroll-snap-type', 'none', 'inline proximity');
+</script>
+</body>
+</html>