WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 165796
165873
text-align: justify and word-spacing combine to overflow with non-ascii content in paragraph
https://bugs.webkit.org/show_bug.cgi?id=165873
Summary
text-align: justify and word-spacing combine to overflow with non-ascii conte...
Brad West
Reported
2016-12-14 14:52:15 PST
Created
attachment 297129
[details]
HTML and CSS demonstrating the issue When text-align: justify is used in combination with word-spacing, the text of paragraphs that include non-ascii punctuation -- such as a curly quote, curly apostrophe, or em-dash -- will extend outside the bounds of the paragraph. Including emoji in the paragraph also triggers the issue. Attached is a simple bit of HTML+CSS to demonstrate the issue. In the screenshot, the pink is the background of the paragraph element, and therefore the expected bounds of the text. The first example paragraph contains only ascii characters, and the text lies within the bounds as of the paragraph, as expected. Subsequent paragraphs contain various characters that cause the text to extend past the bounds of the paragraph. Note that, even in the subsequent paragraphs, some lines are contained within the bounds as expected. Most, however, are not. This is similar to
bug 165796
in that it involves the combination of text-align: justify and word-spacing. As in that bug, the error seems to match the word-spacing value, but is consistent within a problematic paragraph. Unlike that bug, however, this issue appears without the use of columns. Also unlike that bug, paragraphs that only contain ascii content appear to be bounded as expected.
Attachments
HTML and CSS demonstrating the issue
(2.14 KB, text/html)
2016-12-14 14:52 PST
,
Brad West
no flags
Details
Screenshot of issue. Pink background is applied to <p> and represents expected bounds of text.
(145.20 KB, image/png)
2016-12-14 14:53 PST
,
Brad West
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brad West
Comment 1
2016-12-14 14:53:51 PST
Created
attachment 297131
[details]
Screenshot of issue. Pink background is applied to <p> and represents expected bounds of text.
zalan
Comment 2
2016-12-14 16:16:43 PST
Thanks for the report. I've got a patch on
bug 165796
and it fixes this issue too. -> dupe. *** This bug has been marked as a duplicate of
bug 165796
***
Brad West
Comment 3
2016-12-14 20:20:03 PST
Great! Not surprised these are related, but causes were just different enough that it seemed worth it to file this as well. Awesome that you were able to find a fix so quickly!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug