Bug 24658

Summary: Space reserved by tab character broken if the text contains characters in Hangul Jamo block
Product: WebKit Reporter: xlyuan
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ahmad.saleem792, ap, jshin, mitz
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
Reduced test file.
none
Screenshot
none
Complex Script test file none

xlyuan
Reported 2009-03-17 16:26:45 PDT
Build: WebKit nightly build r41759 OS: Windows, not test on Mac Other Browsers: Firefox3.0.7: OK IE8: OK Chrome trunk: Fail Steps: 1. Launch Safari 2. Open the attached test file >>Tab_in_Pre_Tag_Contains_Hangul-Jamo.html 3. Observe the second line Result: The space reserved by tab is broken compared with first line. Expected: The space should not be broken, so the first column and the second column could have same layout Notes: 1. This issue happens when use tab in "pre" tag, if the text contains characters in Hangul Jamo (U+1100 – U+11FF) block, then the space reserved by tab will be broken. 2. It is OK for characters in Hangul Compatibility Jamo block and Hangul Syllables block.
Attachments
Reduced test file. (218 bytes, text/html)
2009-03-17 16:28 PDT, xlyuan
no flags
Screenshot (374.06 KB, image/jpeg)
2009-03-20 17:34 PDT, xlyuan
no flags
Complex Script test file (384 bytes, text/html)
2009-03-20 17:34 PDT, xlyuan
no flags
xlyuan
Comment 1 2009-03-17 16:28:21 PDT
Created attachment 28710 [details] Reduced test file.
xlyuan
Comment 2 2009-03-17 16:31:45 PDT
This is also tracked in Chromium as crbug.com/8492
Alexey Proskuryakov
Comment 3 2009-03-18 13:57:04 PDT
If I understood this correctly, it also happens on the Mac, and that's because ATSUI is used for one line, but not another. But on Windows, the mechanism has to be different, obviously.
mitz
Comment 4 2009-03-18 14:02:46 PDT
On Mac, the bug reproduces on Tiger and Leopard because the ATSUI code path does not handle tabs correctly. It does not seem to happen in the newer, Core Text-based code path. I don't remember the details of tab handling in the Uniscribe-based code path on Windows.
Jungshik Shin
Comment 5 2009-03-20 16:32:52 PDT
This should be P3. Hangul Jamos in U+1100 block is not so widely used. They're only used for archaic Korean representation.
mitz
Comment 6 2009-03-20 16:38:26 PDT
Don't you get the same problem with anything else that triggers the complex text code path?
xlyuan
Comment 7 2009-03-20 17:34:11 PDT
Created attachment 28812 [details] Screenshot
xlyuan
Comment 8 2009-03-20 17:34:58 PDT
Created attachment 28813 [details] Complex Script test file
xlyuan
Comment 9 2009-03-20 17:35:57 PDT
Seems complex scripts have the same problem as Hangul Jamos. Attaching a test file including Devanagari, Tamil, Telugu, Thai and compared with Chinese.
Ahmad Saleem
Comment 10 2022-12-30 16:11:22 PST
I am not able to reproduce this issue in Safari 16.2 and it does respect space and does not depict issue similar to reference image and matches with the "Internet Explorer" from the screenshot. All other browsers (Chrome Canary 111 and Firefox Nightly 110) also matches with Safari. Marking this as "RESOLVED CONFIGURATION CHANGED". Thanks! Please reopen, if it is still an issue, I test both "Complex" and "Reduced" and it is same across all browsers.
Note You need to log in before you can comment on or make changes to this bug.