From 06f084feddfb406ff98ce118e96ce67d89d5cbc8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 16 Oct 2019 20:33:00 +0200 Subject: [PATCH] LibHTML: Add the
element This is really just "center { display: block; text-align: center; }" in the default stylesheet, but it totally works! --- Base/home/anon/www/images.html | 2 ++ Libraries/LibHTML/CSS/Default.css | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/Base/home/anon/www/images.html b/Base/home/anon/www/images.html index a22986397c..928169a9b1 100644 --- a/Base/home/anon/www/images.html +++ b/Base/home/anon/www/images.html @@ -3,6 +3,7 @@ Pretty pictures! +

Look, pictures!

serenity logo (squished) serenity logo (normal) @@ -14,5 +15,6 @@ invalid path (100x100) invalid path (unspecified size) +
diff --git a/Libraries/LibHTML/CSS/Default.css b/Libraries/LibHTML/CSS/Default.css index a03583a6e6..0a81854f6a 100644 --- a/Libraries/LibHTML/CSS/Default.css +++ b/Libraries/LibHTML/CSS/Default.css @@ -53,6 +53,10 @@ dir, hr, menu, pre { display: block; } +center { + text-align: center; +} + h1, h2, h3 { margin-top: 8; margin-bottom: 8;