[WebKit-devel] [Bug 295788] New: Konqueror/webkit adds linebreaks in the middle of short words with word-wrap: break-word;

Christian Boltz kde-bugs at cboltz.de
Sun Mar 11 19:47:56 UTC 2012


https://bugs.kde.org/show_bug.cgi?id=295788

            Bug ID: 295788
          Severity: normal
           Version: 1.2.0
          Priority: NOR
          Assignee: webkit-devel at kde.org
           Summary: Konqueror/webkit adds linebreaks in the middle of
                    short words with word-wrap: break-word;
    Classification: Unclassified
                OS: Linux
          Reporter: kde-bugs at cboltz.de
          Hardware: Other
            Status: NEW
         Component: general
           Product: kwebkitpart

I'm using the latest openSUSE RPMs of KDE 4.8.1. The most relevant package for
this bugreport is probably kwebkitpart-1.2.0git20111019-29.2.x86_64

Konqueror with webkit does linebreaks in the middle of a word when using
"white-space: pre-wrap;" even for short words:

Konqueror with webki
t does hard linebrea
ks for whitespace:pr
e-wrap, only based o
n the number of char
acters in a line.

Needless to say that this makes the text very hard to read.

Expected result: only very long words should be broken into multible lines.
Example:

Konqueror with
webkit should do
linebreaks only at
word boundaries
(spaces etc.) or
ifsomeoneforgetstoty
peaspace.

This is also the expected behaviour by W3C, see
http://www.w3.org/TR/2011/WD-css3-text-20110215/#word-wrap

Quoting from there: (__highlighting__ added by me)
    break-word
An unbreakable "word" may be broken at an arbitrary point __if there are no
otherwise-acceptable break points__ in the line.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the WebKit-devel mailing list