mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 12:45:27 +00:00
200a23f376
Bug 1427292 broke display: contents on non-special MathML elements. Just for reference, I've manually audited calls to nsIFrame::GetContent() in MathML and turns out that MathML is pretty well-behaved in that sense (it inspects the frame tree, then gets the content), so it should work fine with display: contents / ShadowDOM. Only exception to that is[1], but that one seems harmless. [1]: https://searchfox.org/mozilla-central/rev/eeb7190f9ad6f1a846cd6df09986325b3f2c3117/layout/mathml/nsMathMLmactionFrame.cpp#301 So we can enable or implement when the CSSWG pleases. MozReview-Commit-ID: 8N6kiGyjE4i --HG-- extra : rebase_source : a80197e39b20bc6ab385a3d0b90628bc4ad81d92
10 lines
229 B
HTML
10 lines
229 B
HTML
<!doctype html>
|
|
<style>
|
|
div { display: contents; }
|
|
</style>
|
|
<math></math>
|
|
<script>
|
|
let div = document.createElementNS('http://www.w3.org/1998/Math/MathML', 'div');
|
|
document.querySelector('math').appendChild(div);
|
|
</script>
|