[Webkit-unassigned] [Bug 38222] "word-wrap: break-word" should not override "white-space: pre"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 2 04:51:37 PDT 2022


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

Ahmad Saleem <ahmad.saleem792 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ahmad.saleem792 at gmail.com

--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
Changing this:

https://github.com/WebKit/WebKit/blob/4032d1d4de923b3fa6b16e5174c4aa88041f0107/Source/WebCore/rendering/style/RenderStyle.h#L2334

Line:

```

    return wordBreak() == WordBreak::BreakWord || overflowWrap() == OverflowWrap::BreakWord || overflowWrap() == OverflowWrap::Anywhere;

```

to:

```

    return (wordBreak() == WordBreak::BreakWord || overflowWrap() == OverflowWrap::BreakWord || overflowWrap() == OverflowWrap::Anywhere) && whiteSpace() != WhiteSpace::Pre && whiteSpace() != WhiteSpace::NoWrap;

_____

Just wanted to update.

-- 
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/20221102/94d5d5ea/attachment.htm>


More information about the webkit-unassigned mailing list