mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Layout all math elements using InternalDummy context
Always create a new formatting context for <math> elements. Previously that didn't happen if they only had inline children, e.g. mtable. This fixes a crash in the WPT MathML test mathml/crashtests/children-with-negative-block-sizes.html
This commit is contained in:
parent
4408ea7c9b
commit
e7c209820d
Notes:
github-actions[bot]
2024-10-16 17:52:28 +00:00
Author: https://github.com/stendavid
Commit: e7c209820d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1831
3 changed files with 16 additions and 0 deletions
11
Tests/LibWeb/Text/input/math-with-inline-child.html
Normal file
11
Tests/LibWeb/Text/input/math-with-inline-child.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<math>
|
||||
<mtable></mtable>
|
||||
</math>
|
||||
<script src="include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println("PASS (didn't crash)");
|
||||
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue