Bug 279978
Summary: | Children of `display: math` elements should not be taken out-of-flow when `float` is set | ||
---|---|---|---|
Product: | WebKit | Reporter: | Harry Chen <hchen> |
Component: | MathML | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | fred.wang, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugzilla.mozilla.org/show_bug.cgi?id=1923581 | ||
Bug Depends on: | 278533 | ||
Bug Blocks: |
Harry Chen
According to the spec [1]:
> The float property does not create floating of elements whose parent's computed display value is block math or inline math, and does not take them out-of-flow.
[1]: https://w3c.github.io/mathml-core/#css-styling
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Frédéric Wang (:fredw)
Alternative, maybe we can temporarily do that "if the parent is a MathML element" but not sure how easy it will be.
Also for grid/flex we force computed value of float to none for flex and grid displays in the style adjuster, maybe we can temporarily do that for MathML too: https://github.com/WebKit/WebKit/pull/31676#discussion_r1741769280
Radar WebKit Bug Importer
<rdar://problem/136752023>