Skip to content

Commit

Permalink
[css-overflow] Inheritance and initial values
Browse files Browse the repository at this point in the history
Test that CSS Overflow properties inherit.
Test that they have the initial values given in the spec.
https://drafts.csswg.org/css-overflow/#property-index
  • Loading branch information
ericwilligers committed Sep 20, 2018
1 parent aff2500 commit fdaf91e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions css/css-overflow/inheritance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Inheritance of CSS Overflow properties</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow/#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_inherited('block-ellipsis', 'none', 'auto');
assert_not_inherited('continue', 'auto', 'discard');
assert_not_inherited('max-lines', 'none', '2');
assert_not_inherited('overflow-block', 'auto', 'scroll');
assert_not_inherited('overflow-inline', 'auto', 'scroll');
assert_not_inherited('overflow-x', 'visible', 'scroll');
assert_not_inherited('overflow-y', 'visible', 'scroll');
assert_not_inherited('text-overflow', 'clip', 'ellipsis');
</script>
</body>
</html>

0 comments on commit fdaf91e

Please sign in to comment.