WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
18095
minor layout problem because of insufficient width of inner <div>s
https://bugs.webkit.org/show_bug.cgi?id=18095
Summary
minor layout problem because of insufficient width of inner <div>s
jasneet
Reported
2008-03-25 18:03:25 PDT
I Steps: Go to
http://www.pcpop.com/
II Issue: At the right side of the webpage, the 3rd section with search bar at the top (after login form and 2nd section) has incorrect layout. III Conclusion: The issue is caused by the insufficient width of the <div> with green borders. In the testcase, it is set to 146px. If I change it to 156px, then Safari renders correctly. IV Other browsers: IE7: ok FF3: ok Opera9.24: ok V Nightly tested: 31238
Attachments
screenshot
(311.21 KB, image/gif)
2008-03-25 18:04 PDT
,
jasneet
no flags
Details
reduction
(1.01 KB, text/html)
2008-03-25 18:04 PDT
,
jasneet
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
jasneet
Comment 1
2008-03-25 18:04:20 PDT
Created
attachment 20067
[details]
screenshot
jasneet
Comment 2
2008-03-25 18:04:59 PDT
Created
attachment 20068
[details]
reduction
Sylvan Korvus
Comment 3
2008-03-25 18:34:54 PDT
I'm not sure this is a bug. Below is an excerpt of the section of the page in question. There are no linebreaks (<br>/<p>), it just wraps where it happens to wrap, which will depend entirely on the size of the text being rendered. You can see this by increasing/decreasing the font size in Firefox & Safari. HOWEVER, what Firefox is doing differently, is not wrapping the text in the middle of a word. Safari appears to be breaking words in the middle. I'm unsure of whether that's correct in Chinese typography; if it isn't, that may warrant a separate bug. <DIV class=pop_3_right_content2 style="PADDING-TOP: 3px"><A href="
http://product.pcpop.com/Mobile/00000_1.html
">手机</A> <A href="
http://product.pcpop.com/DC/00000_1.html
">数码相机</A> <A href="
http://product.pcpop.com/Camera/00000_1.html
">摄像头</A> <A href="
http://product.pcpop.com/MP3/00000_1.html
">MP3</A>  <A href="
http://product.pcpop.com/DV/00000_1.html
">DV摄像机</A> <A href="
http://product.pcpop.com/Flash/00000_1.html
">闪存卡</A> <A href="
http://product.pcpop.com/MP4/00000_1.html
">MP4</A>  <A href="
http://product.pcpop.com/UDisk/00000_1.html
">移动U盘</A>  <A href="
http://product.pcpop.com/Record_pen/00000_1.html
">录音笔</A> <A href="
http://product.pcpop.com/GPS/00000_1.html
">GPS</A>  <A href="
http://product.pcpop.com/MobileHDD/00000_1.html
">移动硬盘</A> <A href="
http://product.pcpop.com/Digital.html
">更多>></A></DIV>
Tab Atkins
Comment 4
2011-10-20 01:17:46 PDT
It appears that this is simply a natural result of different browsers using different linebreaking algorithms. This is allowed by the relevant specifications. This could be easily fixed by either manually linebreaking the text, or using CSS to *prevent* linebreaking in the search form to avoid the button wrapping underneath the text field. PCPop seems to have revamped their HTML anyway, so the problem no longer exists. If our Chinese linebreaking is bad, please feel free to file another bug specifically about that.
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