Bug 1527273 [wpt PR 15312] - [css-box] Inheritance, initial values, a=testonly
☠☠ backed out by 749b314d6c28 ☠ ☠
authorEric Willigers <ewilligers@users.noreply.github.com>
Tue, 19 Feb 2019 14:39:20 +0000
changeset 460340 70750463a84e4b2ded9be1536e4d6002282a89aa
parent 460339 11e5c7e2782179f1af2ef32fa1f9b01a915156d6
child 460341 9128147cb4f186e32ab8c6e57ae69a5333f5bbdb
push id112074
push userwptsync@mozilla.com
push dateThu, 21 Feb 2019 19:59:15 +0000
treeherdermozilla-inbound@a15983fcecca [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1527273, 15312
milestone67.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 1527273 [wpt PR 15312] - [css-box] Inheritance, initial values, a=testonly Automatic update from web-platform-tests [css-box] Inheritance, initial values (#15312) Test that CSS Box Model properties do not inherit. https://drafts.csswg.org/css-box-3/#property-index -- wpt-commits: 35bd69423b10a361a969139ba0271896dced9691 wpt-pr: 15312
testing/web-platform/tests/css/css-box/inheritance.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-box/inheritance.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>Inheritance of CSS Box Model properties</title>
+<link rel="help" href="https://drafts.csswg.org/css-box-3/#property-index">
+<meta name="assert" content="Properties do not inherit.">
+<meta name="assert" content="length-percentage properties have initial value 0.">
+<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('margin-bottom', '0px', '10px');
+assert_not_inherited('margin-left', '0px', '10px');
+assert_not_inherited('margin-right', '0px', '10px');
+assert_not_inherited('margin-top', '0px', '10px');
+assert_not_inherited('margin-trim', 'none', 'all');
+assert_not_inherited('padding-bottom', '0px', '10px');
+assert_not_inherited('padding-left', '0px', '10px');
+assert_not_inherited('padding-right', '0px', '10px');
+assert_not_inherited('padding-top', '0px', '10px');
+</script>
+</body>
+</html>