Automatic update from web-platform-tests css/selectors: Automate a part of legacy selectors tests (120 to 139) Change-Id: I1c7bbb9a3287c068c6cd711e481f137d2914db1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8022122 Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Kent Tamura <tkent@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@{#1655098} -- wpt-commits: 58970eced72cb32f9ecb6aac8475afdd44424a98 wpt-pr: 60992
39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>NEGATED universal selector with declared namespace</title>
|
|
<style type="text/css"><![CDATA[@namespace html url(http://www.w3.org/1999/xhtml);
|
|
@namespace a url(http://www.example.org/a);
|
|
@namespace b url(http://www.example.org/b);
|
|
div.stub > *|* { color : red ; display : block ;
|
|
margin-bottom : 1em }
|
|
div.stub > *|*:not(a|*) { color : green }
|
|
div.stub v { color : green }
|
|
]]></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 -->
|
|
<meta name="flags" content=" namespace" />
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="common.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="stub">
|
|
<address id="t1">This address should be in green characters.</address>
|
|
<s id="t2" xmlns="http://www.example.org/b">This paragraph should be in green characters.</s>
|
|
<t id="t3" xmlns="">This paragraph should be in green characters.</t>
|
|
<u xmlns="http://www.example.org/a">
|
|
<v id="t4">This paragraph should be in green characters.</v>
|
|
</u>
|
|
</div>
|
|
<script><![CDATA[
|
|
test(function() {
|
|
assert_color('t1', GREEN);
|
|
assert_color('t2', GREEN);
|
|
assert_color('t3', GREEN);
|
|
assert_color('t4', GREEN);
|
|
}, 'NEGATED universal selector with declared namespace');
|
|
]]></script>
|
|
</body>
|
|
</html>
|