Automatic update from web-platform-tests css/selectors: Automate a part of legacy selectors tests (140 to 159) Change-Id: Ibceba8614b2775c048c627f643d89236e347cfcb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8028581 SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com> Reviewed-by: Koji Ishii <kojii@chromium.org> Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1655335} -- wpt-commits: f5b74ef7a94fde1b0423a6aa8c55bc002c8d4d72 wpt-pr: 61019
27 lines
1.1 KiB
XML
27 lines
1.1 KiB
XML
<!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>:empty pseudo-class and XML/SGML constructs</title>
|
|
<style type="text/css"><![CDATA[
|
|
address:empty { background: lime; }
|
|
address { background: red; margin: 0; height: 1em; }
|
|
.text { margin: -1em 0 0 0; }
|
|
]]></style>
|
|
<link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
|
|
<link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"/> <!-- bogus link to make sure it gets found -->
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="common.js"></script>
|
|
</head>
|
|
<body>
|
|
<address id="t1"><!-- --><?test random PI?></address>
|
|
<div class="text">This line should have a green background.</div>
|
|
<p>(Note: This test is based on unpublished errata.)</p>
|
|
<script><![CDATA[
|
|
test(function() {
|
|
assert_background_color('t1', LIME);
|
|
}, ':empty matches elements with only comments and PIs');
|
|
]]></script>
|
|
</body>
|
|
</html>
|