From 9241f37823f227ae94461a494c6f7ab4b6cd0e4e Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 11 Oct 2024 11:53:02 +0100 Subject: [PATCH] LibWeb: Add a CSS parsing test for selectors containing ':' in `@media` While updating the parser to the latest spec algorithms, this started parsing incorrectly as a declaration, and we had no tests covering it. --- ...arse-nested-pseudo-selectors-as-selectors.txt | 1 + ...rse-nested-pseudo-selectors-as-selectors.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Tests/LibWeb/Text/expected/css/parse-nested-pseudo-selectors-as-selectors.txt create mode 100644 Tests/LibWeb/Text/input/css/parse-nested-pseudo-selectors-as-selectors.html diff --git a/Tests/LibWeb/Text/expected/css/parse-nested-pseudo-selectors-as-selectors.txt b/Tests/LibWeb/Text/expected/css/parse-nested-pseudo-selectors-as-selectors.txt new file mode 100644 index 00000000000..818d9f935ce --- /dev/null +++ b/Tests/LibWeb/Text/expected/css/parse-nested-pseudo-selectors-as-selectors.txt @@ -0,0 +1 @@ +Color is: "rgb(0, 128, 0)", should be "rgb(0, 128, 0)" diff --git a/Tests/LibWeb/Text/input/css/parse-nested-pseudo-selectors-as-selectors.html b/Tests/LibWeb/Text/input/css/parse-nested-pseudo-selectors-as-selectors.html new file mode 100644 index 00000000000..22a36bdc9d0 --- /dev/null +++ b/Tests/LibWeb/Text/input/css/parse-nested-pseudo-selectors-as-selectors.html @@ -0,0 +1,16 @@ + + + +
This text should look green
+