Re: CSS layout and line breaking
Karl Tomlinson <[email protected]> Tue, 05 Mar 2013 17:14:57 +1300
| Newsgroups | gmane.comp.mozilla.devel.mathml |
|---|---|
| Message-ID | <[email protected]> |
David Carlisle writes: > On 04/03/2013 06:37, Karl Tomlinson wrote: >>> <mpadded width="height">...</mpadded> >>>> >>>> can make width depends on height is a problem with our curent >>>> approach but that could probably be removed from the MathML spec >>>> (I don't think computing horizontal metrics from vertical metrics >>>> is used in practice). >> Yes, this adds considerable complexity to the algorithm. >> > > In some layout systems (TeX for example) this is no complexity at all > and is exactly the same as accessing the width, similarly in the spec it > just fell out naturally by giving all "length" based attributes the same > syntax. > > That said, it is I would guess, never used in real documents other > than test files. If it is used somewhere, I guess Ojan's algorithm could work if we just did no automatic line breaking of descendants of mpadded. I haven't studied the layout algorithm of TeX. When I used TeX, I think I only noticed automatic line-breaking for text paragraphs, and used manual line breaks for equations.