servo/tests/wpt/css-tests/css-style-attr-1_dev/xhtml1/chapter-3.xht

83 lines
No EOL
3.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Syntax and Parsing - CSS Style Attributes Level 1 CR Test Suite</title>
<style type="text/css">
@import "http://www.w3.org/StyleSheets/TR/base.css";
@import "../indices.css";
</style>
</head>
<body>
<h1>CSS Style Attributes Level 1 CR Test Suite</h1>
<h2>Syntax and Parsing (4 tests)</h2>
<table width="100%">
<col id="test-column"></col>
<col id="refs-column"></col>
<col id="flags-column"></col>
<col id="info-column"></col>
<thead>
<tr>
<th>Test</th>
<th><abbr title="Rendering References">Refs</abbr></th>
<th>Flags</th>
<th>Info</th>
</tr>
</thead>
<tbody id="s3">
<tr><th colspan="4" scope="rowgroup">
<a href="#s3">+</a>
<a href="https://www.w3.org/TR/css-style-attr/#syntax">3 Syntax and Parsing</a></th></tr>
<!-- 4 tests -->
<tr id="style-attr-braces-001-3" class="invalid">
<td>
<a href="style-attr-braces-001.xht">style-attr-braces-001</a></td>
<td><a href="reference/ref-green-on-green.xht">=</a> </td>
<td><abbr class="invalid" title="Tests invalid CSS">Invalid</abbr></td>
<td>Stray closing brace in style attribute
<ul class="assert">
<li>A mismatched close brace in a style attribute is treated as an invalid token: it causes that declaration to be dropped, but does not invalidate the whole style rule and does not terminate the style attribute's style data.</li>
</ul>
</td>
</tr>
<tr id="style-attr-braces-002-3" class="invalid">
<td>
<a href="style-attr-braces-002.xht">style-attr-braces-002</a></td>
<td><a href="reference/ref-green-on-green.xht">=</a> </td>
<td><abbr class="invalid" title="Tests invalid CSS">Invalid</abbr></td>
<td>Blocks in style attributes
<ul class="assert">
<li>Style attribute values are the content of a declaration block: the braces must not be included and are therefore invalid.</li>
</ul>
</td>
</tr>
<tr id="style-attr-braces-002-quirks-3" class="invalid">
<td>
<a href="style-attr-braces-002-quirks.xht">style-attr-braces-002-quirks</a></td>
<td><a href="reference/ref-green-on-green.xht">=</a> </td>
<td><abbr class="invalid" title="Tests invalid CSS">Invalid</abbr></td>
<td>Blocks in style attributes in quirks mode
<ul class="assert">
<li>Style attribute values are the content of a declaration block: the braces must not be included and are therefore invalid.</li>
</ul>
</td>
</tr>
<tr id="style-attr-braces-003-3" class="invalid">
<td>
<a href="style-attr-braces-003.xht">style-attr-braces-003</a></td>
<td><a href="reference/ref-green-on-green.xht">=</a> </td>
<td><abbr class="invalid" title="Tests invalid CSS">Invalid</abbr></td>
<td>Pairing braces in style attributes
<ul class="assert">
<li>Braces in a style attribute are treated as an invalid tokens, and must be paired when dropping declarations.</li>
</ul>
</td>
</tr>
</tbody>
</table>
</body>
</html>