Description
Compat Issues: Maybe
Description:
2.1 stated to keep the whitespace if the element next to it would generate a table wrapper. Our proposal is to not care about whether a table wrapper would be created in further steps of the algorithm. Gecko behaves like that, Blink sort of does too but has other bugs in this space. Edge follows the 2.1 version and will need to adjust to match that of Gecko. That said, you can only see Edge's interop issue if you remove the UA defaults of white-space (because white-space:normal collapses the resulting white spaces anyway).
Proposed Option:
Accept new text that aligns with what Blink (although buggy) and Gecko already do.
Anonymous inline boxes which contain only white space, are the first and/or last child of a tabular container, and whose immediate sibling (if any) is a table-non-root box, are treated as if they had display: none.
Testcases:
https://jsfiddle.net/nbh4r9u8/1/
https://jsfiddle.net/nbh4r9u8/2/
https://jsfiddle.net/nbh4r9u8/3/
Browsers Passing Test:
Firefox passes
Chrome has an issue with whitespace collapsing