LibWeb/CSS: Use case insensitive tag and attribute name in ancestor hash

Fixes #4793.
This commit is contained in:
Veeti Paananen 2025-05-18 07:27:01 +03:00 committed by Alexander Kalenik
commit 7c4fd9f624
Notes: github-actions[bot] 2025-05-21 12:55:41 +00:00
6 changed files with 18 additions and 5 deletions

View file

@ -7,6 +7,10 @@
div[test=two] { /* 'test' is NOT a case-insensitive html attribute */
background: green;
}
[aB] div {
background: blue;
}
</style>
<div type="ONE">I have a red background</div>
<div type="TWO">I don't have a green background</div>
<div test="TWO">I don't have a green background</div>
<div ab><div>I have a blue background</div></div>