Automatic update from web-platform-tests Avoid red reference for `attr-case-sensitivity-004.html` -- wpt-commits: 98e5609dd56654bbf7ab3308dbc16522f8ba4edd wpt-pr: 60048
19 lines
871 B
HTML
19 lines
871 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>attr() with SVG attributes</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-values-5/#attr-notation">
|
|
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
|
|
<meta name="assert" content="This test checks that SVG attribute names specified in the attr() function are case-sensitive.">
|
|
<style>
|
|
svg { width: 100px; height: 100px; }
|
|
#casematch { background-color: attr(testCase type(<color>), white); }
|
|
#lowercase { background-color: attr(testcase type(<color>), white); }
|
|
</style>
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<svg id="casematch"></svg>
|
|
<svg id="lowercase"></svg>
|
|
<script>
|
|
document.getElementById("casematch").setAttribute("testCase", "green");
|
|
document.getElementById("lowercase").setAttribute("testCase", "red");
|
|
</script>
|