From 2a2efdedf73cbc6b23f5b24e29f715fff09707cd Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 8 Oct 2021 15:34:51 +0100 Subject: [PATCH] Base: Add CSS.supports / `@supports {}` test-page --- Base/res/html/misc/supports.html | 147 +++++++++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 148 insertions(+) create mode 100644 Base/res/html/misc/supports.html diff --git a/Base/res/html/misc/supports.html b/Base/res/html/misc/supports.html new file mode 100644 index 0000000000..0940b51c2d --- /dev/null +++ b/Base/res/html/misc/supports.html @@ -0,0 +1,147 @@ + + + + + CSS.supports() + + + +

These should all be green

+

@supports (color: green)

+

@supports (color: green) and (width: 50px)

+

@supports (color: green) or (flogwizzle: purple)

+

@supports (not (flogwizzle: purple))

+ +

These should all be red

+

@supports (not (color: green))

+

@supports (color: green) and (width: 50px) or (color: green)

+

@supports (width: yellow) or (height: green)

+

@supports (flogwizzle: purple)

+ +

Testing CSS.supports(property, value)

+ + + +

Testing CSS.supports(string)

+

These should all be green, meaning they returned true

+ +

These should all be red, meaning they returned false

+ + + + + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 30225b9023..e5e57ba8c8 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -76,6 +76,7 @@