summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-03 19:32:07 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-03 21:46:04 +0100
commit017490aa7f987841297ec75748f0268836fdb81c (patch)
treef300641993930d97700ed63673f570d4e7c2931a
parentf35b406dfb2be5efb9e99c38972f4f3c93088203 (diff)
downloadserenity-017490aa7f987841297ec75748f0268836fdb81c.zip
Base: Add a little web test page for inline elements with CSS padding
-rw-r--r--Base/res/html/misc/padding-inline.html15
-rw-r--r--Base/res/html/misc/welcome.html1
2 files changed, 16 insertions, 0 deletions
diff --git a/Base/res/html/misc/padding-inline.html b/Base/res/html/misc/padding-inline.html
new file mode 100644
index 0000000000..8a67eeb46c
--- /dev/null
+++ b/Base/res/html/misc/padding-inline.html
@@ -0,0 +1,15 @@
+<style>
+span {
+ padding-left: 20px;
+ padding-right: 40px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ background-color: red;
+ border: 3px solid black;
+ color: white;
+}
+</style>
+<div>
+ <span>Hello friends!</span>
+ <span>This span has padding!</span>
+</div>
diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html
index 7232e383b7..5e3987c380 100644
--- a/Base/res/html/misc/welcome.html
+++ b/Base/res/html/misc/welcome.html
@@ -35,6 +35,7 @@ span#loadtime {
<p>This page loaded in <b><span id="loadtime"></span></b> ms</p>
<p>Some small test pages:</p>
<ul>
+ <li><a href="padding-inline.html">inline elements with padding</a></li>
<li><a href="event-bubbling-and-multiple-listeners.html">event bubbling and multiple listeners</a></li>
<li><a href="checkbox.html">checkbox</a></li>
<li><a href="canvas-rotate.html">canvas rotate()</a></li>