blob: 34f226cccc066ccf9a031e58b919f2e1f1fe8674 [file] [log] [blame]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<style>
target {
display: block;
height: 20px;
min-width: 20px;
float: left;
margin: 2px;
}
target:matches([data-Foo], [data-Æøå], [data-Foo-Æøå]) {
background-color: green;
}
target:matches([data-FOO], [data-ÆØÅ], [data-FOO-ÆØÅ]) {
color: blue;
}
target:matches([data-foo], [data-æøå], [data-foo-æøå]) {
border: 2px dashed red;
}
</style>
</head>
<body>
<p data-Foo="" data-ÆØÅ="" data-foo-æøå="">In XHTML, attribute name matching is always case-sensitive.</p>
<p data-foo="" data-Foo-Æøå="" data-Æøå="">If the test succeed, each block should be styled as described.</p>
<target data-Foo="">Green background color.</target>
<target data-FOO="">Blue text.</target>
<target data-foo="">Dashed red border.</target>
<target data-Æøå="">Green background color.</target>
<target data-ÆØÅ="">Blue text.</target>
<target data-æøå="">Dashed red border.</target>
<target data-Foo-Æøå="">Green background color.</target>
<target data-FOO-ÆØÅ="">Blue text.</target>
<target data-foo-æøå="">Dashed red border.</target>
</body>
</html>