Automatic update from web-platform-tests css/selectors: Automate a part of legacy selectors tests (80 to 98) Change-Id: I05bd12a6f0d26ddad01c56a6720750a90e0bc514 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8002655 Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/main@{#1652917} -- wpt-commits: f629b57316ea082e808c963d230a91b0e423c371 wpt-pr: 60921
30 lines
1.2 KiB
XML
30 lines
1.2 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>NEGATED :only-of-type pseudo-class</title>
|
|
<style type="text/css"><![CDATA[.red { background-color : red }
|
|
.t1 *:not(:only-of-type) { background-color : lime }
|
|
]]></style>
|
|
<link rel="author" title="Daniel Glazman" href="http://glazman.org/"/>
|
|
<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>
|
|
<div class="t1">
|
|
<p id="t1" class="red">This paragraph should have green background.</p>
|
|
<address id="t3">But this address should be unstyled.</address>
|
|
<p id="t2" class="red">This paragraph should have green background.</p>
|
|
</div>
|
|
<script><![CDATA[
|
|
test(function() {
|
|
assert_background_color('t1', LIME);
|
|
assert_background_color('t2', LIME);
|
|
assert_not_background_color('t3', LIME);
|
|
}, 'NEGATED :only-of-type pseudo-class');
|
|
]]></script>
|
|
</body>
|
|
</html>
|