-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Fix CSS tag seletor case sensitivity for SVG elements
They can appear in HTML documents but must not be matched according to the HTML spec.
- Loading branch information
Showing
7 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Tests/LibWeb/Ref/expected/css-tag-selector-case-sensitivity-html.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
<div style="color:green;"> | ||
This should be green. | ||
</div> |
6 changes: 6 additions & 0 deletions
6
Tests/LibWeb/Ref/expected/css-tag-selector-case-sensitivity-svg.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<svg viewBox="0 0 200 200"> | ||
<foreignObject width="200" height="200"> | ||
<span style="color:green;">This should be green.</span> | ||
</foreignObject> | ||
</svg> |
6 changes: 6 additions & 0 deletions
6
Tests/LibWeb/Ref/expected/css-tag-selector-case-sensitivity-xhtml.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<div> | ||
This should not be red. | ||
</div> | ||
</html> |
11 changes: 11 additions & 0 deletions
11
Tests/LibWeb/Ref/input/css-tag-selector-case-sensitivity-html.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="../expected/css-tag-selector-case-sensitivity-html.html" /> | ||
<style> | ||
DIV { | ||
color: green; | ||
} | ||
</style> | ||
|
||
<div> | ||
This should be green. | ||
</div> |
16 changes: 16 additions & 0 deletions
16
Tests/LibWeb/Ref/input/css-tag-selector-case-sensitivity-svg.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="../expected/css-tag-selector-case-sensitivity-svg.html" /> | ||
<style> | ||
foreignObject * { | ||
color: green; | ||
} | ||
foreignobject * { | ||
color: red; | ||
} | ||
</style> | ||
|
||
<svg viewBox="0 0 200 200"> | ||
<foreignObject width="200" height="200"> | ||
<span>This should be green.</span> | ||
</foreignObject> | ||
</svg> |
13 changes: 13 additions & 0 deletions
13
Tests/LibWeb/Ref/input/css-tag-selector-case-sensitivity-xhtml.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<link rel="match" href="../expected/css-tag-selector-case-sensitivity-xhtml.xhtml" /> | ||
<style> | ||
DIV { | ||
color: red; | ||
} | ||
</style> | ||
|
||
<div> | ||
This should not be red. | ||
</div> | ||
</html> |