dymokomi/luce-browser-engine
Source of release 0.6.1
0.6.1 / src / web / generated / svg_style_sheet_source.lucb
#==============================================================================================
#
# svg_style_sheet_source - SVG/Default.css, embedded
#
# DESCRIPTION:
# Generated by tools/embed_css from data/css/SVG/Default.css; do not edit.
# The C++ it stands for, at Ladybird 47c82b38d0, is
# Build/Libraries/LibWeb/SVG/SVGStyleSheetSource.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::svg_stylesheet_source (SVG/SVGStyleSheetSource.cpp): the text of SVG/Default.css.
pub let css_svg_stylesheet_source: str = """
/* https://svgwg.org/svg2-draft/styling.html#UAStyleSheet */
@namespace url(http://www.w3.org/2000/svg);
@namespace xml url(http://www.w3.org/XML/1998/namespace);
svg:not(:root), image, marker, pattern, symbol { overflow: hidden; }
*:not(svg),
*:not(foreignObject) > svg {
transform-origin: 0 0;
}
*[xml|space=preserve] {
white-space-collapse: preserve-spaces;
}
/* NOTE: These rules are in the SVG spec, but don't match how other engines behave.
So we simply comment them out for now.
defs,
clipPath, mask, marker,
desc, title, metadata,
pattern, linearGradient, radialGradient,
script, style,
symbol {
display: none !important;
}
:host(use) > symbol {
display: inline !important;
}
*/
:link, :visited {
cursor: pointer;
}
foreignObject {
display: block;
overflow: hidden;
}
"""