servo/tests/wpt/css-tests/css-break-3_dev/xhtml1/regions-transforms-013.xht

48 lines
No EOL
2.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>
<meta charset="UTF-8" />
<title>CSS Regions: Transformed named flow (monolithic) content that breaks across multiple regions</title>
<link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck" />
<link href="mailto:dalcala@adobe.com" rel="author" title="David Alcala" />
<link href="mailto:mibalan@adobe.com" rel="reviewer" title="Mihai Balan" /> <!-- 2013-07-24 -->
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help" />
<link href="http://www.w3.org/TR/css-transforms-1/#two-d-transform-functions" rel="help" />
<link href="http://www.w3.org/TR/css3-break/#transforms" rel="help" />
<link href="http://www.w3.org/TR/css3-break/#breaking-rules" rel="help" />
<link href="http://www.w3.org/TR/css3-break/#monolithic" rel="help" />
<!-- This reference is for UAs that slice monolithic content -->
<link href="reference/regions-transforms-013-ref.xht" rel="match" />
<!-- This reference is for UAs that overflow monolithic content -->
<link href="reference/regions-transforms-013-alt-ref.xht" rel="match" />
<meta content="This test checks that the named flow content that is monolithic is transformed when it
breaks across multiple regions whether it is sliced or overflowed at the fragmentainer edge." name="assert" />
<style>
#named-flow {
width: 100px;
height: 100px;
background-color: green;
transform: scaleY(2);
transform-origin: top left;
flow-into: f;
}
.region {
width: 100px;
height: 100px;
margin-left: 10px;
float: left;
flow-from: f;
}
#region1 {
background-color: red;
}
</style>
</head>
<body>
<p>The test passes if you see either two green squares or one vertical green rectangle. There should be no red.</p>
<div id="named-flow"></div>
<div class="region" id="region1"></div>
<div class="region"></div>
</body></html>