Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.1

0.6.1 / src / web / generated / quirks_mode_style_sheet_source.lucb

#==============================================================================================
#
#   quirks_mode_style_sheet_source - QuirksMode.css, embedded
#
#   DESCRIPTION:
#       Generated by tools/embed_css from data/css/QuirksMode.css; do not edit.
#       The C++ it stands for, at Ladybird 47c82b38d0, is
#       Build/Libraries/LibWeb/CSS/QuirksModeStyleSheetSource.cpp,
#       written by Meta/Generators/embed_as_string.py.
#
#       Copyright (c) 2018-2026, the Ladybird developers.
#       SPDX-License-Identifier: BSD-2-Clause (see data/css/LICENSE)
#
#==============================================================================================

## Web::CSS::quirks_mode_stylesheet_source (CSS/QuirksModeStyleSheetSource.cpp): the text of QuirksMode.css.
pub let css_quirks_mode_stylesheet_source: str = """
@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;
}
"""