Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit aadbc0f

Browse files
CSS: Test inheritance of clear and float
clear and float are discussed in https://github.com/w3c/csswg-drafts/blob/master/css-box-3/block-layout.bs#L3158 https://github.com/w3c/csswg-drafts/blob/master/css-box-3/block-layout.bs#L2747 and in https://www.w3.org/TR/CSS2/ They have initial value 'none' and do not inherit. Change-Id: Iefbbc98de4acb6a1d581f4e1a9db1af51938fa0f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1741436 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Eric Willigers <[email protected]> Cr-Commit-Position: refs/heads/master@{#684734}
1 parent e3b9445 commit aadbc0f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css/css-box/inheritance.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8">
55
<title>Inheritance of CSS Box Model properties</title>
66
<link rel="help" href="https://drafts.csswg.org/css-box-3/#property-index">
7+
<link rel="help" href="https://www.w3.org/TR/CSS2/">
78
<meta name="assert" content="Properties do not inherit.">
89
<meta name="assert" content="length-percentage properties have initial value 0.">
910
<script src="/resources/testharness.js"></script>
@@ -15,6 +16,9 @@
1516
<div id="target"></div>
1617
</div>
1718
<script>
19+
assert_not_inherited('clear', 'none', 'right');
20+
assert_not_inherited('float', 'none', 'right');
21+
1822
assert_not_inherited('margin-bottom', '0px', '10px');
1923
assert_not_inherited('margin-left', '0px', '10px');
2024
assert_not_inherited('margin-right', '0px', '10px');

0 commit comments

Comments
 (0)