Skip to content
Permalink
Browse files
Pseudo-elements not treated as ASCII case-insensitive
https://bugs.webkit.org/show_bug.cgi?id=202885

Reviewed by Antti Koivisto.

Match pseudo element case insensitively.

* LayoutTests/fast/css/before-after-pseudo-element-case-insensitivity-expected.html: Added.
* LayoutTests/fast/css/before-after-pseudo-element-case-insensitivity.html: Added.
* Source/WebCore/css/makeSelectorPseudoElementsMap.py:

Canonical link: https://commits.webkit.org/253631@main
  • Loading branch information
rniwa committed Aug 21, 2022
1 parent c05d71c commit 2f1268f7d8b21623706c08cdc2495c04e24a173c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
@@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<div style="width: 100px; height: 100px; background: green;"></div>
</body>
</html>
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<style>
div::before { content: "FAIL"; display: block; width: 100px; height: 50px; background: red; }
div::BEFORE { content: "PASS"; background: green; color: green; }
div::after { content: "FAIL"; display: block; width: 100px; height: 50px; background: red; }
div::AfTEr { content: "PASS"; background: green; color: green; }
</style>
</head>
<body>
<div></div>
</body>
</html>
@@ -113,6 +113,7 @@ def expand_ifdef_condition(condition):
%readonly-tables
%global-table
%compare-strncmp
%ignore-case
%enum
struct SelectorPseudoTypeEntry;

0 comments on commit 2f1268f

Please sign in to comment.