mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
67 lines
No EOL
3.2 KiB
HTML
67 lines
No EOL
3.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Exclusions Test: wrap-through property set to none</title>
|
|
<link href="mailto:jacobg@adobe.com" rel="author" title="Jacob Goldstein" />
|
|
<link href="http://www.w3.org/TR/css3-exclusions/#wrap-through-property" rel="help" />
|
|
<meta content="ahem dom" name="flags" />
|
|
<meta content="The wrapping context should not be inheritted from the parent node when wrap-through is set to none" name="assert" />
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="resources/helper.js"></script>
|
|
<style>
|
|
* {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
.exclusion {
|
|
wrap-flow: both;
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 70px;
|
|
width: 60px;
|
|
height: 36px;
|
|
background: blue;
|
|
}
|
|
#content1, #content2 {
|
|
width: 400px;
|
|
line-height: 12px;
|
|
font: 12px Ahem;
|
|
}
|
|
#content2 {
|
|
wrap-through: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="myContainer">
|
|
<div class="exclusion"></div>
|
|
|
|
<div id="content1">
|
|
<span id="line1">ethical beer craft</span><br />
|
|
<span id="line2Left">jean </span><span id="line2Right">vegan</span><br />
|
|
<span id="line3Left">fund </span><span id="line3Right">selvage</span><br />
|
|
</div>
|
|
<div id="content2">
|
|
<span id="line4Left">swags </span><span id="line4Right">unami</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="log"></div>
|
|
|
|
<script type="text/javascript">
|
|
/* Line 1 */
|
|
test(function() {assert_equals(checkLinePos("line1",0,"top"), true)}, "Verify top of the first line above the exclusion");
|
|
test(function() {assert_equals(checkLinePos("line1",0,"left"), true)}, "Verify left of the first line above the exclusion");
|
|
/* Line 2 */
|
|
test(function() {assert_equals(checkLinePos("line2Left",12,"top"), true)}, "Verify top of the second line on the left of the exclusion");
|
|
test(function() {assert_equals(checkLinePos("line2Right",130,"left"), true)}, "Verify left of the second line on the right of the exclusion");
|
|
/* Line 3 */
|
|
test(function() {assert_equals(checkLinePos("line3Left",24,"top"), true)}, "Verify top of the third line on the left of the exclusion");
|
|
test(function() {assert_equals(checkLinePos("line3Right",130,"left"), true)}, "Verify left of the third line on the right of the exclusion");
|
|
/* Line 4 */
|
|
test(function() {assert_equals(checkLinePos("line4Left",36,"top"), true)}, "Verify top of the fourth line with no wrapping-through = none");
|
|
test(function() {assert_equals(checkLinePos("line4Right",72,"left"), true)}, "Verify left of the fourth line with wrapping-through = none");
|
|
</script>
|
|
|
|
|
|
</body></html> |