aboutsummaryrefslogtreecommitdiffstats
path: root/resources/quirks-mode.css
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-10-10 13:52:46 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-10-10 17:27:38 +0100
commite9ebfb74fc6163a4fe7832c9ee8eec2cab9a370b (patch)
tree9593794e0558ff5ec570f8db200ee55884ec55ee /resources/quirks-mode.css
parent1117d86b63ecafeef302c85fb717de4753ac2639 (diff)
downloadservo-e9ebfb74fc6163a4fe7832c9ee8eec2cab9a370b.tar.gz
servo-e9ebfb74fc6163a4fe7832c9ee8eec2cab9a370b.zip
Rewrite the user-agent stysheet(s)
Based on https://html.spec.whatwg.org/multipage/rendering.html rather than http://dev.w3.org/csswg/css2/grammar.html
Diffstat (limited to 'resources/quirks-mode.css')
-rw-r--r--resources/quirks-mode.css33
1 files changed, 33 insertions, 0 deletions
diff --git a/resources/quirks-mode.css b/resources/quirks-mode.css
new file mode 100644
index 00000000000..4ba71bb6392
--- /dev/null
+++ b/resources/quirks-mode.css
@@ -0,0 +1,33 @@
+/*
+
+https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
+
+> In quirks mode, the following rules are also expected to apply:
+
+*/
+
+@namespace url(http://www.w3.org/1999/xhtml);
+
+
+form { margin-bottom: 1em; }
+
+
+table {
+ font-weight: initial;
+ font-style: initial;
+ font-variant: initial;
+ font-size: initial;
+ line-height: initial;
+ white-space: initial;
+ text-align: initial;
+}
+
+
+/* FIXME: https://html.spec.whatwg.org/multipage/rendering.html#margin-collapsing-quirks */
+
+
+input:not([type=image]), textarea { box-sizing: border-box; }
+
+
+img[align=left i] { margin-right: 3px; }
+img[align=right i] { margin-left: 3px; }