Files
sousa-gecko/testing/web-platform/tests/css/selectors/old-tests/css3-modsel-131.xml
T
Kent Tamura 9e899c3d77 Bug 2051540 [wpt PR 60992] - css/selectors: Automate a part of legacy selectors tests (120 to 139), a=testonly
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
2026-07-10 09:22:56 +00:00

38 lines
1.8 KiB
XML

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>NEGATED Attribute value selector with universal namespace</title>
<style type="text/css"><![CDATA[@namespace a url(http://www.example.org/a);
@namespace b url(http://www.example.org/b);
@namespace html url(http://www.w3.org/1999/xhtml);
*|p, *|q, *|r, *|s { display : block ; margin-bottom : 1em }
*|q { background-color : red }
div.stub *|*:not([*|title="si on chantait"]) { background-color : lime }
]]></style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="common.js"></script>
<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" />
</head>
<body xmlns:a="http://www.example.org/a" xmlns:b="http://www.example.org/b">
<div class="stub">
<q id="t1" xmlns="http://www.example.org/a" a:foo="si on chantait">This paragraph should have a green background.</q>
<q id="t2" xmlns="http://www.example.org/a" a:title="si nous chantions">This paragraph should have a green background.</q>
<r id="t3" xmlns="http://www.example.org/a" a:title="si on chantait">This paragraph should be unstyled.</r>
<s id="t4" xmlns="http://www.example.org/b" b:title="si on chantait">This paragraph should be unstyled.</s>
</div>
<script><![CDATA[
test(function() {
assert_background_color('t1', LIME);
assert_background_color('t2', LIME);
assert_not_background_color('t3', LIME);
assert_not_background_color('t3', RED);
assert_not_background_color('t4', LIME);
assert_not_background_color('t4', RED);
}, 'NEGATED Attribute value selector with universal namespace');
]]></script>
</body>
</html>