From 160f434769d86a26e8c709cd7eba9eeaa9005b57 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 20 Aug 2021 12:29:11 +0100 Subject: [PATCH] Base: Add cascade-keywords.html test page for CSS cascade keyword values These are: - `initial` - `inherit` - `unset` Cascade4 and 5 also define `revert` and `revert-layer`, but let's not get ahead of ourselves. :^) --- Base/res/html/misc/cascade-keywords.html | 32 ++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 33 insertions(+) create mode 100644 Base/res/html/misc/cascade-keywords.html diff --git a/Base/res/html/misc/cascade-keywords.html b/Base/res/html/misc/cascade-keywords.html new file mode 100644 index 0000000000..e3b7a9589a --- /dev/null +++ b/Base/res/html/misc/cascade-keywords.html @@ -0,0 +1,32 @@ + + + + + Initial + + + +

+ This is some text. This text is bold, but this is not, since it's set to initial, and this is bold again. +

+

+ This is some text. This text is bold, and so is this, because it's set to inherit, and this is bold again. +

+

+ This is some text. This text is bold, and so is this, because it's set to unset and font-weight is inherited, and this is bold again. +

+ + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 50f717bc8e..fe1736503b 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -119,6 +119,7 @@
  • link elements with background box placed with z-index
  • Percentage values
  • position: absolute; for top and left
  • +
  • Cascade keywords (initial, inherit, unset)
  • JavaScript/WASM