Back to Chromium

Midword Break After Breakable Char

third_party/blink/web_tests/virtual/text-antialias/midword-break-after-breakable-char.html

150.0.7829.21.1 KB
Original Source

Test for http://bugs.webkit.org/show_bug.cgi?id=13156 REGRESSION (r19621): Pasting breakable content where wrapped line is too long to fit in a textarea fails to draw a horizontal scrollbar.

This tests that a line break will occur in the middle of the first word on a line if it’s too long to fit on the line. The behavior is tested after breakable characters (question mark and hyphen), after a space and after a soft hyphen.

The following blocks should be identical.

Curabiturpretium,quamquiss?empermalesuada,estliberofeugiatlibero,velfringillaorcinibhsedneque-Quisqueeunullanonnisimolestieaccumsan.Etiamtellusurna,laoreetac,laoreetnon suscipitsed,sapien.Phasellusvehicula,sematposuerevehicula,auguenibhmolestienisl­necullamcorperlacusantevulputatepede.Nasceturridiculusmus.

Curabiturpretium,quamquiss?
empermalesuada,estliberofeugiatlibero,velfringi
llaorcinibhsedneque-
Quisqueeunullanonnisimolestieaccumsan.Etiam
tellusurna,laoreetac,laoreetnon
suscipitsed,sapien.Phasellusvehicula,sematposu
erevehicula,auguenibhmolestienisl-
necullamcorperlacusantevulputatepede.Nascetu
rridiculusmus.