Whitespace rules not correctly followed when white-space: pre is used inside flex/grid/table/... |
||||||||
Issue descriptionThis is pretty similar to issue 746437 . I fixed most of the issues there, but there's one nasty edge case that was missed (and that isn't quite trivial to fix). Basically, if you have something like: <!doctype html> <div id="target" style="display: flex; white-space: pre;"></div> <script> target.appendChild(document.createTextNode(" ")); target.appendChild(document.createTextNode("A")); target.appendChild(document.createTextNode(" ")); target.appendChild(document.createTextNode("B")); target.appendChild(document.createTextNode(" ")); </script> We won't properly preserve the first of the whitespace text-nodes. If we don't want to unconditionally generate whitespace layout objects in that case, we'd need some kind of knowledge about the whole text run, since you'd need to scan it all to be able to discard it because of being whitespace.
,
Aug 1 2017
Right.
,
Aug 1 2017
This case is so far out on the edge that I wouldn't spend too many cycles on it.
,
Aug 1 2017
,
Aug 1 2017
,
Oct 11 2017
Issue 249573 has been merged into this issue.
,
Oct 11 2017
,
Oct 30 2017
,
Oct 31
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Nov 5
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by r...@opera.com
, Aug 1 2017