summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-09-20 10:58:58 +0200
committerAndreas Kling <kling@serenityos.org>2022-09-20 14:48:07 +0200
commite4fd04204144b9ac40dc4791aab5562066e3f349 (patch)
tree2242377d2571d1293d1fd121b2b7fde2e056f948 /Userland
parent77d947b8ad623b6b1329ca8edb1ad457e699ee40 (diff)
downloadserenity-e4fd04204144b9ac40dc4791aab5562066e3f349.zip
LibWeb: Flesh out the default "quirks mode" style sheet
Import all the quirks mode rules from the HTML spec. There's more to quirks mode, of course, but it's nice that we can just copy these.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/CSS/QuirksMode.css40
1 files changed, 39 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/QuirksMode.css b/Userland/Libraries/LibWeb/CSS/QuirksMode.css
index 8e1aeb392b..ab19bd4444 100644
--- a/Userland/Libraries/LibWeb/CSS/QuirksMode.css
+++ b/Userland/Libraries/LibWeb/CSS/QuirksMode.css
@@ -1,3 +1,41 @@
+/* 15.3.3 Flow content
+ * https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
+ */
+
+form {
+ margin-bottom: 1em;
+}
+
+/* 15.3.8 Tables
+ * https://html.spec.whatwg.org/multipage/rendering.html#tables-2
+ */
+
table {
- text-align: left;
+ font-weight: initial;
+ font-style: initial;
+ font-variant: initial;
+ font-size: initial;
+ line-height: initial;
+ white-space: initial;
+ text-align: initial;
+}
+
+/* 15.3.10 Form controls
+ * https://html.spec.whatwg.org/multipage/rendering.html#form-controls
+ */
+
+input:not([type=image i]), textarea {
+ box-sizing: border-box;
+}
+
+/* 15.4.2 Images
+ * https://html.spec.whatwg.org/multipage/rendering.html#images-3
+ */
+
+img[align=left i] {
+ margin-right: 3px;
+}
+
+img[align=right i] {
+ margin-left: 3px;
}