mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
35 lines
No EOL
1.3 KiB
HTML
35 lines
No EOL
1.3 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 http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<title>CSS Test: Region Styling</title>
|
|
<link rel="author" title="Alan Stearns" href="mailto:stearns@adobe.com" />
|
|
<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com" />
|
|
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" />
|
|
<link rel="help" href="http://www.w3.org/TR/css3-regions/#flow-from" />
|
|
<link rel="match" href="reference/region-styling-001-ref.xht" />
|
|
<meta name="flags" content="" />
|
|
<meta name="assert" content="Styling set in an @region rule overrides named flow element styling." />
|
|
<style type="text/css">
|
|
.content{
|
|
color: red;
|
|
flow-into: redContent;
|
|
}
|
|
.region{
|
|
flow-from: redContent;
|
|
}
|
|
@region .region{
|
|
div { color: green; }
|
|
}
|
|
.error{
|
|
color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="content">GREEN</div>
|
|
<p>This test passes if the word below is “GREEN” and is displayed in green.</p>
|
|
<div class="region">
|
|
<div class="error">FAIL</div>
|
|
</div>
|
|
</body>
|
|
</html> |