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:
parent
5a1c73d7e2
commit
7f2362643c
Notes:
github-actions[bot]
2025-06-05 11:38:59 +00:00
Author: https://github.com/stelar7
Commit: 7f2362643c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5004
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 19 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue