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:
David Smith 2024-10-15 18:53:19 +02:00 committed by Alexander Kalenik
commit e7c209820d
Notes: github-actions[bot] 2024-10-16 17:52:28 +00:00
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<math>
<mtable></mtable>
</math>
<script src="include.js"></script>
<script>
test(() => {
println("PASS (didn't crash)");
});
</script>