summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-01 20:16:42 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-01 20:16:42 +0200
commit86b7dd6d5d866a5ce15edac42ceebeaa978ebabe (patch)
tree13d2fb1c8c38ae69fcd84db9f41157fad7fbc26a
parent53db492aba9c3155835b89417e6b8281ef9465ed (diff)
downloadserenity-86b7dd6d5d866a5ce15edac42ceebeaa978ebabe.zip
LibHTML: Tweak default CSS to bring it a bit closer to HTML4
-rw-r--r--Libraries/LibHTML/CSS/Default.css40
1 files changed, 30 insertions, 10 deletions
diff --git a/Libraries/LibHTML/CSS/Default.css b/Libraries/LibHTML/CSS/Default.css
index 50e64c71f7..b73d249a45 100644
--- a/Libraries/LibHTML/CSS/Default.css
+++ b/Libraries/LibHTML/CSS/Default.css
@@ -1,5 +1,4 @@
html {
- display: block;
font-family: Katica;
}
@@ -8,7 +7,6 @@ head, link, meta, script, style, title {
}
body {
- display: block;
margin-left: 8;
margin-top: 8;
margin-right: 8;
@@ -16,18 +14,15 @@ body {
}
h1, h2 {
- display: block;
font-family: Pebbleton;
font-weight: bold;
}
h3 {
- display: block;
font-weight: bold;
}
pre {
- display: block;
margin-bottom: 8;
margin-top: 8;
white-space: pre;
@@ -46,16 +41,41 @@ strong, b {
font-weight: bold;
}
-div, p {
+html, address,
+blockquote,
+body, dd, div,
+dl, dt, fieldset, form,
+frame, frameset,
+h1, h2, h3, h4,
+h5, h6, noframes,
+ol, p, ul, center,
+dir, hr, menu, pre {
display: block;
- margin-bottom: 8;
- margin-top: 8;
}
-ul, ol {
- display: block;
+h1, h2, h3 {
margin-top: 8;
margin-bottom: 8;
+ margin-left: 0;
+ margin-right: 0;
+}
+
+h4, p,
+blockquote, ul,
+fieldset, form,
+ol, dl, dir,
+menu {
+ margin-top: 4;
+ margin-bottom: 4;
+ margin-left: 0;
+ margin-right: 0;
+}
+
+h5, h6 {
+ margin-top: 2;
+ margin-bottom: 2;
+ margin-left: 0;
+ margin-right: 0;
}
li {