summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-content/attr-case-sensitivity-002.html
blob: a1c4e88b8b99236e2fa07adf43335a6f3c319875 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<meta charset="utf-8">
<title>attr() with attributes containing uppercase letters</title>
<link rel="help" href="https://www.w3.org/TR/css-values-4/#attr-notation">
<link rel="match" href="/css/css-content/attr-case-sensitivity-ref-002.html">
<link rel="mismatch" href="/css/css-content/attr-case-sensitivity-ref-003.html">
<meta name="assert" content="This test checks that attribute names specified in the attr() function without a namespace are case-insensitive.">
<style>
    #casematch:before { content: attr(RESULT); }
    #lowercase:before { content: attr(RESULT); }
</style>
<p id="casematch"></p>
<p id="lowercase"></p>
<script>
    // Test uses the Element.setAttributeNS() to create an attribute in the HTML document with capital letters
    casematch.setAttributeNS('', 'RESULT', 'casematch');
    lowercase.setAttributeNS('', 'result', 'lowercase');
</script>