blob: 39ba432a73d4eae5fb56de3d71027c72a001fa86 [file] [edit]
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>HTML attribute names are ASCII-case-insensitive</title>
<link rel="help" href="https://drafts.csswg.org/css-values-5/#typedef-attr-name">
<link rel="help" href="https://html.spec.whatwg.org/multipage/syntax.html#syntax">
<link rel="match" href="html-attr-case-insensitivity-ref.html"/>
<style>
div.a {
color: attr(color-attr type(<color>), red);
}
div.b {
color: attr(CoLoR-attr type(<color>), red);
}
div.c {
color: attr(CØLØR-ÅTTR type(<color>), green);
}
div.d {
color: attr(CØLØR-ÅTTR type(<color>), red);
}
</style>
<div class="a" coLor-attr="green">This should be green.</div>
<div class="a" CoLoR-attr="green">This should be green.</div>
<div class="a" COLOR-ATTR="green">This should be green.</div>
<div class="b" coLor-attr="green">This should be green.</div>
<div class="b" CoLoR-attr="green">This should be green.</div>
<div class="b" COLOR-ATTR="green">This should be green.</div>
<div class="c" cølørttr="red">This should be green.</div>
<div class="c" CøLøRttr="red">This should be green.</div>
<div class="d" CØLØRTTR="green">This should be green.</div>