From 78757845bbc63180dfdede38754f3cd9880b8790 Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Thu, 22 Jul 2021 22:22:07 +0200 Subject: [PATCH] Base: Add a test page for CSS 'calc()' values --- Base/res/html/misc/calc.html | 73 +++++++++++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 74 insertions(+) create mode 100644 Base/res/html/misc/calc.html diff --git a/Base/res/html/misc/calc.html b/Base/res/html/misc/calc.html new file mode 100644 index 0000000000..7061578557 --- /dev/null +++ b/Base/res/html/misc/calc.html @@ -0,0 +1,73 @@ + + + + + Calc + + + + +

CSS calc() Tests

+

The boxes change their width property.

+

calc(100px)

+
+
+
+ +

calc(100px + 30% - (2rem * 3 + 20px))

+
+
+
+ +

calc(100px + 30% - (120px / (2*4 + 3 )))

+
+
+
+ +

calc(50% + 60px)

+
+
+
+ +

calc(50% + -60px)

+
+
+
+ +

calc(50% + 60px - 10px)

+
+
+
+ +

calc(50% + 3*20px)

+
+
+
+ +

calc(50% + 3 * 20px)

+
+
+
+ +

calc(50% + 10.5pt)

+
+
+
+ +

calc(50% + .5pt)

+
+
+
+ + + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 8d102c83d7..8f34b1298e 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -46,6 +46,7 @@

This page loaded in ms

Some small test pages: