From 0d01097a5400bcbc0f0bd011b78a0b12a979f60f Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 17 Mar 2022 15:15:35 +0000 Subject: [PATCH] Base: Add a test page for the CSS :is() selector --- Base/res/html/misc/is-selector.html | 38 +++++++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 39 insertions(+) create mode 100644 Base/res/html/misc/is-selector.html diff --git a/Base/res/html/misc/is-selector.html b/Base/res/html/misc/is-selector.html new file mode 100644 index 0000000000..96b1cb6bda --- /dev/null +++ b/Base/res/html/misc/is-selector.html @@ -0,0 +1,38 @@ + + + + + :is() test + + + +

:is() test

+
+

Nothing

+

These should have no background.

+
+
+
+

.special :is(h2, p)

+

These should have a green background.

+
+
+
+

.forgiving :is(&&&fakhsdaskjhd, h2, p)

+

These should have a green background. :is() takes a "permissive selector list", + so even though part of it is invalid, this does not make the whole selector-list invalid.

+
+ + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 79b19629b1..9181d6e737 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -96,6 +96,7 @@
  • :nth-last-of-type
  • :empty
  • :root
  • +
  • :is
  • :not
  • :hover
  • Properties