Skip to content

Commit cc8f0fb

Browse files
Swarup Ukilmoz-wptsync-bot
authored andcommitted
Fix test failure with attr-case-sensitivity-003.html.
Differential Revision: https://phabricator.services.mozilla.com/D300498 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2039319 gecko-commit: 2f3cb1148a83ec7442d7775ad83ed449199b7d20 gecko-commit-git: 146161b5bba1f0a9c246a18cd30701d7d5081849 gecko-reviewers: emilio, firefox-style-system-reviewers
1 parent 95c44ef commit cc8f0fb

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>attr() with SVG attributes</title>
4+
<link rel="help" href="https://drafts.csswg.org/css-values-5/#attr-notation">
5+
<link rel="match" href="/css/css-content/attr-case-sensitivity-ref-004.html">
6+
<meta name="assert" content="This test checks that SVG attribute names specified in the attr() function are case-sensitive.">
7+
<style>
8+
svg { width: 100px; height: 100px; }
9+
#casematch { background-color: attr(testCase type(<color>), white); }
10+
#lowercase { background-color: attr(testcase type(<color>), white); }
11+
</style>
12+
<svg id="casematch"></svg>
13+
<svg id="lowercase"></svg>
14+
<script>
15+
document.getElementById("casematch").setAttribute("testCase", "red");
16+
document.getElementById("lowercase").setAttribute("testCase", "green");
17+
</script>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<meta charset=utf-8>
3+
<title>attr() with SVG attributes</title>
4+
<style>
5+
svg { width: 100px; height: 100px; }
6+
#casematch { background-color: red; }
7+
</style>
8+
<svg id="casematch"></svg>

0 commit comments

Comments
 (0)