Created attachment 368228 [details] Test case to reproduce the issue What steps will reproduce the problem? (1) Load the attached test cas (2) (3) What is the expected result? The line is broken before the first word: "X |XX X" (expected.png) What happens instead? The line is broken just after the second word: "X XX| X" (actual.png)
Created attachment 368230 [details] Actual result
Created attachment 368231 [details] Expected result
This bug is related to a discussion [1] I held recently with the CSS WG regarding how different combinations of line breaking properties should handle the first space after a word as potential breaking opportunities. [1] https://github.com/w3c/csswg-drafts/issues/3701
Created attachment 368323 [details] Patch
Comment on attachment 368323 [details] Patch Attachment 368323 [details] did not pass mac-ews (mac): Output: https://webkit-queues.webkit.org/results/12006893 New failing tests: imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-before-first-char-001.html
Created attachment 368336 [details] Archive of layout-test-results from ews101 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-highsierra Platform: Mac OS X 10.13.6
Comment on attachment 368323 [details] Patch Attachment 368323 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/12007046 New failing tests: imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-before-first-char-001.html
Created attachment 368337 [details] Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Comment on attachment 368323 [details] Patch Attachment 368323 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/12007190 New failing tests: imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-before-first-char-001.html
Created attachment 368340 [details] Archive of layout-test-results from ews117 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews117 Port: mac-highsierra Platform: Mac OS X 10.13.6
Comment on attachment 368323 [details] Patch Attachment 368323 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/12007282 New failing tests: imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-before-first-char-001.html
Created attachment 368341 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Created attachment 368447 [details] Patch Patch rebased
Created attachment 368448 [details] Patch Fixed bugs in SimpleLayoutLine codepath
Created attachment 368449 [details] Patch Fixed errors in TestExpectations
Comment on attachment 368449 [details] Patch Clearing flags on attachment: 368449 Committed r244748: <https://trac.webkit.org/changeset/244748>
All reviewed patches have been landed. Closing bug.
<rdar://problem/50307483>