1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

LibWeb: Use a BFC for MathML

While this is not correct, it makes MathML text render atleast
This commit is contained in:
stelar7 2025-06-05 11:58:14 +02:00 committed by Sam Atkins
parent 5a1c73d7e2
commit 7f2362643c
Notes: github-actions[bot] 2025-06-05 11:38:59 +00:00
2 changed files with 19 additions and 16 deletions

View file

@ -148,8 +148,8 @@ Optional<FormattingContext::Type> FormattingContext::formatting_context_type_cre
return Type::Grid;
if (display.is_math_inside())
// HACK: Instead of crashing, create a dummy formatting context that does nothing.
return Type::InternalDummy;
// FIXME: We should create a MathML-specific formatting context here, but for now use a BFC, so _something_ is displayed
return Type::Block;
if (creates_block_formatting_context(box))
return Type::Block;