Closed Bug 1513671 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 14481 - [LayoutNG] Exclude trailing preserved spaces when avoiding floats


(Core :: CSS Parsing and Computation, enhancement, P4)




Tracking Status
firefox66 --- fixed


(Reporter:, Unassigned)




(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 14481 into mozilla-central (this bug is closed when the sync is complete).

Details from upstream follow.

Koji Ishii <> wrote:
>  [LayoutNG] Exclude trailing preserved spaces when avoiding floats
>  This patch fixes an interoperability issue where trailing
>  preserved spaces should be excluded when avoiding floats.
>  All 4 implementations are interoperable on this regard.
>  This patch adds NGLineInfo::HasOverflow(), because knowing
>  whether the line has overflow or not is easy and fast,
>  while knowing the exact inline size excluding trailing
>  preserved spaces may involve reshaping.
>  Other cases also have interoperability problems, such as
>  `text-align` or `min-content`. I'll investigate them in
>  following patches.
>  Bug: 913995
>  Change-Id: Ibf13f1fcc28bbd99d44b56611141efa49d6d1c89
>  Reviewed-on:
>  WPT-Export-Revision: b97a8c9d9ab17309aa23528935417a6286806276
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 2 tests
PASS   : 2
Pushed by
[wpt PR 14481] - [LayoutNG] Exclude trailing preserved spaces when avoiding floats, a=testonly
[wpt PR 14481] - Update wpt metadata, a=testonly
You need to log in before you can comment on or make changes to this bug.