Issue metadata
Sign in to add a comment
|
Intrinsic size and quirky line height calculation affected by collapsed whitespace before forced break |
||||||||||||||||||||||
Issue descriptionThis fails with the legacy layout engine, but not in LayoutNG: <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> <div style="width:fit-content; background:red;"> <div style="display:inline-block; vertical-align:top; width:100px; height:100px; background:green;"></div> <br> </div> Probably not worth fixing in the legacy engine.
,
Nov 21
Here's another very similar problem. I'm not 100% sure it's the same bug, but they do seem very similar, and I guess we have no intent to fix any of them.
,
Nov 21
Maybe because of issue 40634?
,
Nov 21
That's it! How could I forget about that one? I was involved with an other duplicate less than a month ago. Oh well, I'll mark it as a duplicate now. Thank you for pointing this out!
,
Nov 21
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f commit f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f Author: Morten Stenshorne <mstensho@chromium.org> Date: Wed Nov 21 21:19:26 2018 [LayoutNG] Rebaseline quirky test that actually passes. (writing-mode has nothing to do with it, FWIW) Legacy layout is buggy here, so the expected rendering was wrong. Also wrote a new wpt test for this. When calculating quirky line height, the legacy engine makes room for whitespace that is to be collapsed. Bug: 845902 Change-Id: I004d024578bb147d4f70c58fc1e3213a14174fd7 Reviewed-on: https://chromium-review.googlesource.com/c/1346465 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#610216} [modify] https://crrev.com/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f/third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG [modify] https://crrev.com/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f/third_party/WebKit/LayoutTests/TestExpectations [add] https://crrev.com/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f/third_party/WebKit/LayoutTests/external/wpt/quirks/line-height-trailing-collapsable-whitespace-ref.html [add] https://crrev.com/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f/third_party/WebKit/LayoutTests/external/wpt/quirks/line-height-trailing-collapsable-whitespace.html [add] https://crrev.com/f570d28fd1a34ea3c8ebe1bc7662e84713e5ba6f/third_party/WebKit/LayoutTests/flag-specific/enable-blink-features=LayoutNG/fast/writing-mode/fieldsets-expected.png |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bugdroid1@chromium.org
, May 24 2018