Bug 46481

Summary: Some line break opportunities ignored after a character styled with first-letter, affecting Japanese vertical title layout
Product: WebKit Reporter: hm <koko0351>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ap, bfulgham, darin, glenn, hyatt, kojii, mitz
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://hamu86.web.fc2.com/reading/novel/ss/yugioh/
Bug Depends on: 89235    
Bug Blocks:    
Attachments:
Description Flags
test case
none
test case none

Description hm 2010-09-24 10:35:32 PDT
http://hamu86.web.fc2.com/reading/novel/ss/yugioh/index.html
The title of this site is not correctly display by webkit. 
I think that the cause is h1:first-letter.
If I don't write 'h1:first-letter',The title is correct display.
In case 'h1:first-letter' is included in css file, the title's second letter, alone, is not allowed to start a new line.
Comment 1 Alexey Proskuryakov 2010-09-25 15:49:48 PDT
Could you please clarify what problem that you are observing? This page looks almost exactly the same in Firefox as in Safari 5.0.2 (on Mac).
Comment 2 hm 2010-09-25 16:57:20 PDT
Certainly.I open the screen shots compared by Firefox and Safari to my site.
(safari5.0.2 win)http://hamu86.web.fc2.com/program/images/safari.jpg
(firefox3.6.10)http://hamu86.web.fc2.com/program/images/firefox.jpg
Comment 3 hm 2010-09-25 17:54:23 PDT
I made a (cheep) verification page.
http://hamu86.web.fc2.com/verification.html
Comment 4 Alexey Proskuryakov 2010-09-25 19:16:19 PDT
Created attachment 68839 [details]
test case

Thank you for the screenshots. Turns out that I couldn't reproduce this issue because I was using a default style for the page, while the problem only occurs with a different one.
Comment 5 mitz 2010-09-25 20:00:26 PDT
This is not specific to the anonymous first-letter inline. It also happens in this case:

<p style="width:1em;"><span>あ</span>いうえお</p>

However, it shouldn’t affect CSS vertical text, once implemented.
Comment 6 hm 2010-09-26 06:27:58 PDT
Thank you for comments.
Verification page updated.
First-line is no problem(?)
Comment 7 hm 2010-10-15 06:29:06 PDT
Created attachment 70863 [details]
test case
Comment 8 hm 2010-10-15 06:38:01 PDT
Is this bug corrected?
Presumably,The after character(2byte(japanese,korean,chinese...)) of < tag >A</ tag > is not to change line.
Comment 9 Brent Fulgham 2022-07-12 13:43:40 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Comment 10 Alexey Proskuryakov 2022-07-12 19:51:21 PDT
The original page looks good, too.