ladybird/Libraries/LibWeb/CSS/QuirksMode.css
Sam Atkins 2d3dea0770 LibWeb/CSS: Update quirks-mode styling for form elements
The current HTML spec uses margin-block-end instead of margin-bottom.
2025-03-26 09:47:45 +00:00

51 lines
1.1 KiB
CSS

@namespace "http://www.w3.org/1999/xhtml";
/* 15.3.3 Flow content
* https://html.spec.whatwg.org/multipage/rendering.html#flow-content-3
*/
form {
margin-block-end: 1em;
}
/* 15.3.7 Lists
* https://html.spec.whatwg.org/multipage/rendering.html#lists:quirks-mode
*/
li { list-style-position: inside; }
li :is(dir, menu, ol, ul) { list-style-position: outside; }
:is(dir, menu, ol, ul) :is(dir, menu, ol, ul, li) { list-style-position: unset; }
/* 15.3.8 Tables
* https://html.spec.whatwg.org/multipage/rendering.html#tables-2
*/
table {
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;
}