mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48:12 +00:00
LibWeb: Use SVGPresentationAttribute mode for SVG attributes
This replaces the previous TemporarilyEnableQuirksMode hack, which has now been removed. :^)
This commit is contained in:
parent
79a30c209d
commit
28dbe8eb10
3 changed files with 2 additions and 29 deletions
|
@ -118,10 +118,7 @@ Gfx::AffineTransform SVGGraphicsElement::get_transform() const
|
|||
|
||||
void SVGGraphicsElement::apply_presentational_hints(CSS::StyleProperties& style) const
|
||||
{
|
||||
// FIXME: Hack to ensure unitless SVG properties (such as font-size) are parsed.
|
||||
FIXME::TemporarilyEnableQuirksMode enable_quirks(document());
|
||||
|
||||
CSS::Parser::ParsingContext parsing_context { document() };
|
||||
CSS::Parser::ParsingContext parsing_context { document(), CSS::Parser::ParsingContext::Mode::SVGPresentationAttribute };
|
||||
for_each_attribute([&](auto& name, auto& value) {
|
||||
if (name.equals_ignoring_ascii_case("fill"sv)) {
|
||||
// FIXME: The `fill` attribute and CSS `fill` property are not the same! But our support is limited enough that they are equivalent for now.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue