mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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
This commit is contained in:
parent
1117d86b63
commit
e9ebfb74fc
7 changed files with 801 additions and 130 deletions
33
resources/quirks-mode.css
Normal file
33
resources/quirks-mode.css
Normal file
|
@ -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; }
|
Loading…
Add table
Add a link
Reference in a new issue