mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Embed user agent stylesheets and media control resouces in libservo (#36803)
Embed user agent stylesheets and media control resouces in libservo as decided in https://github.com/servo/servo/pull/36788#issuecomment-2845332210 Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
7e2d2ed0ce
commit
3db0194e5a
11 changed files with 26 additions and 73 deletions
44
components/layout/stylesheets/quirks-mode.css
Normal file
44
components/layout/stylesheets/quirks-mode.css
Normal file
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
|
||||
https://html.spec.whatwg.org/multipage/#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; -- see FIXME below */
|
||||
}
|
||||
|
||||
/*
|
||||
* FIXME(pcwalton): Actually saying `text-align: initial` above breaks `<table>` inside `<center>`
|
||||
* in quirks mode. This is because we (following Gecko, WebKit, and Blink) implement the HTML5
|
||||
* align-descendants rules with a special `text-align: -moz-center`. `text-align: initial`, if
|
||||
* placed on the `<table>` element per the spec, would break this behavior. So we place it on
|
||||
* `<tbody>` instead.
|
||||
*/
|
||||
tbody {
|
||||
text-align: initial;
|
||||
}
|
||||
|
||||
|
||||
/* FIXME: https://html.spec.whatwg.org/multipage/#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