You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I personally think it makes sense to support margin/border/padding my proposal would be to just inflate the content box with the corresponding margin/border/padding in order to deduce the metrics for the margin/border/padding boxes. And define the child offsets within the border box to match the CSS layout API.
For MathML-specific metrics:
ink-over/ink-under baselines would be set to the border box's line-over and lin-under edge if there is such a border.
top accent attachment would be increased by the line-left values of margin/border/padding.
similarly for italic correction, it would be increased by the line-left margin/border/padding. Maybe when there is a line-right border, italic correction should just be zero?
We should take into account the margin/border/padding values as that's something users will likely expect and can be handy.
They will affect the content box in the way defined by CSS but not the spacing/bars defined by MathML for the content (e.g. "radical extra ascender" or "space after script" ) as that's easier to implement and describe.
I updated the MathML Core specification to explain how the metrics of the margin/border/padding boxes are deduced from the one of the content box.
Activity
rwlbuis commentedon Mar 8, 2019
From my investigation (Firefox on Linux), only margin is taken into account for MathML.
fred-wang commentedon Jul 5, 2019
cc @bfgeek
fred-wang commentedon Jul 5, 2019
I think we are now ready to handle this, so I'll put this on the agenda of the nxt MathML CG meeting.
Currently, the metrics of the margin/border/padding are defined the same as the content box:
https://mathml-refresh.github.io/mathml-core/#layout-algorithms
I personally think it makes sense to support margin/border/padding my proposal would be to just inflate the content box with the corresponding margin/border/padding in order to deduce the metrics for the margin/border/padding boxes. And define the child offsets within the border box to match the CSS layout API.
For MathML-specific metrics:
Define metrics for margin/border/padding boxes by taking into account…
fred-wang commentedon Jul 10, 2019
Consensus from July 8 meeting:
I updated the MathML Core specification to explain how the metrics of the margin/border/padding boxes are deduced from the one of the content box.
MathML: Add tests for padding / margin / border-width
MathML: Add tests for padding / margin / border-width (#18046)
fred-wang commentedon Jul 30, 2019
We have tests for these:
https://w3c-test.org/mathml/relations/css-styling/padding-border-margin/
They probably need to be refined and extended later but I think we can close this issue.
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…
MathML: Add tests for padding / margin / border-width (web-platform-t…
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…
Bug 1568555 [wpt PR 18046] - MathML: Add tests for padding / margin /…