[Webkit-unassigned] [Bug 183029] Safari's intrinsic inline-size calculations don't account for whitespace before empty child with nonzero margins (which causes unnecessary wrapping in intrinsically-sized element)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 21 23:33:29 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=183029

Daniel Holbert <dholbert at mozilla.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Safari's intrinsic          |Safari's intrinsic
                   |inline-size calculations    |inline-size calculations
                   |don't account for nonzero   |don't account for
                   |margins on empty children   |whitespace before empty
                   |                            |child with nonzero margins
                   |                            |(which causes unnecessary
                   |                            |wrapping in
                   |                            |intrinsically-sized
                   |                            |element)

--- Comment #1 from Daniel Holbert <dholbert at mozilla.com> ---
Actually, sorry -- Safari and Chrome *do* account for the margins!  The thing they're not accounting for is the *whitespace character* just before the empty element.

Here's a testcase that demonstrates that (comparing an inline-block *with* whitespace before an empty element with a margin, vs. an inline-block *without* that whitespace character): https://jsfiddle.net/u1Lbz9oz/

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180222/09b837d9/attachment.html>


More information about the webkit-unassigned mailing list