From bf8aa33b685c5ecc6ced894b6280efa863874d14 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 31 Aug 2023 12:42:14 +0100 Subject: [PATCH] LibWeb: Add tests for basic attr() behavior and fallback values --- Tests/LibWeb/Ref/css-attr-basic.html | 7 +++++++ Tests/LibWeb/Ref/css-attr-fallback.html | 7 +++++++ Tests/LibWeb/Ref/css-attr-ref.html | 2 ++ Tests/LibWeb/Ref/manifest.json | 2 ++ 4 files changed, 18 insertions(+) create mode 100644 Tests/LibWeb/Ref/css-attr-basic.html create mode 100644 Tests/LibWeb/Ref/css-attr-fallback.html create mode 100644 Tests/LibWeb/Ref/css-attr-ref.html diff --git a/Tests/LibWeb/Ref/css-attr-basic.html b/Tests/LibWeb/Ref/css-attr-basic.html new file mode 100644 index 0000000000..c5088fcf3b --- /dev/null +++ b/Tests/LibWeb/Ref/css-attr-basic.html @@ -0,0 +1,7 @@ + + +
diff --git a/Tests/LibWeb/Ref/css-attr-fallback.html b/Tests/LibWeb/Ref/css-attr-fallback.html new file mode 100644 index 0000000000..cdeb17dfef --- /dev/null +++ b/Tests/LibWeb/Ref/css-attr-fallback.html @@ -0,0 +1,7 @@ + + +
diff --git a/Tests/LibWeb/Ref/css-attr-ref.html b/Tests/LibWeb/Ref/css-attr-ref.html new file mode 100644 index 0000000000..7486fd8a21 --- /dev/null +++ b/Tests/LibWeb/Ref/css-attr-ref.html @@ -0,0 +1,2 @@ + +
Well, hello friends!
diff --git a/Tests/LibWeb/Ref/manifest.json b/Tests/LibWeb/Ref/manifest.json index 369d8751cc..fe5d303f0c 100644 --- a/Tests/LibWeb/Ref/manifest.json +++ b/Tests/LibWeb/Ref/manifest.json @@ -2,6 +2,8 @@ "clip.html": "clip-ref.html", "clip-abspos-children.html": "clip-abspos-children-ref.html", "css-any-link-selector.html": "css-any-link-selector-ref.html", + "css-attr-basic.html": "css-attr-ref.html", + "css-attr-fallback.html": "css-attr-ref.html", "css-gradient-currentcolor.html": "css-gradient-currentcolor-ref.html", "css-gradients.html": "css-gradients-ref.html", "css-invalid-var.html": "css-invalid-var-ref.html",