[Webkit-unassigned] [Bug 198543] [css-text] line-break: anywhere takes chars of zero-width related classes as forced breaks

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 6 04:59:39 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198543

--- Comment #6 from Javier Fernandez <jfernandez at igalia.com> ---
After debugging the test case, I've got new information regarding this issue. 

First of all, this is not affecting the SimpleLineLayout codepath at all, which is not executed if the value of the line-break property is different than 'auto'. Hence, the bug is affecting the BreakingContext path.

Additionally, since other ports also use the BreakingContext path, why this bug is not reproducible in WebKitGtk+ ? The reason seems to be that the root cause of this issue is the #196169 bug (maybe duplicated ?)

Debugging the attached test case, I've got the following data:

* Mac platform
  - availableWidth (1ch) =  7.796875
  - charWidth = 7.80126953

* Gtk platform
  - availableWidth (1ch) =  8
  - charWidth = 8

The consequence of having a charWidth bigger than the availableWidth is that the line breaking logic may have to break just after the char, even that theoretically the single char should fit. 

Hence, the problem is not related to the line-break: anywhere feature, but more with how WebKit deals with the monospace font and the 'ch' sizing unit.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190606/42251ed2/attachment-0001.html>


More information about the webkit-unassigned mailing list