Bug 14907 - table is not centered at http://blog.cnfol.com
Summary: table is not centered at http://blog.cnfol.com
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://blog.cnfol.com/list/1457.html
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2007-08-08 18:16 PDT by Jungshik Shin
Modified: 2008-01-19 11:36 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jungshik Shin 2007-08-08 18:16:47 PDT
Observed both on Windows and Mac OS X.
Comment 1 Alexey Proskuryakov 2007-08-09 04:36:45 PDT
I'm getting the same result from Firefox, but IE 7 works as expected.
Comment 2 Jungshik Shin 2007-08-09 14:33:57 PDT
On Windows, my copy of FF (2.0.6) does not have the problem. Neither does Opera on Windows. To the right of the second text input box, there are two buttons. On Safari on Windows, there is no room for the second button and it is pushed down, which , in turn, appears to push the table toward right (some interactions between 'float'd elements?).  

If you compare the width of two text input boxes (next to '帐号' and '密码'), Safari assigns noticeably larger values to them than FF, Opera and IE, which leaves smaller room for two image buttons.




Comment 3 Jungshik Shin 2007-08-09 14:35:43 PDT
I forgot to set the encoding to UTF-8 before posting. The second paragraph should read (set the encoding to UTF-8):

If you compare the width of two text input boxes (next to '帐号' and '密码'), Safari assigns noticeably larger values to them than FF, Opera and IE, which leaves smaller room for two image buttons.
Comment 4 Eric Seidel (no email) 2008-01-17 03:03:00 PST
This looks fine to me, but maybe I'm not looking in the right place.

The only problem I see with this page is mangled chars in the boxes along the left hand side.  Some sort of encoding-auto-detection behavior in IE that this site is depending on I bet.
Comment 5 Jungshik Shin 2008-01-17 14:44:11 PST
The site changed and this bug is not reproducible any more. The way Webkit calculates the width of a text field and a text area is still different from that of FF and IE and it breaks layouts in some Chinese web sites. Perhaps, a separate bug needs to be filed to track that issue (if not already filed).



Comment 6 David Kilzer (:ddkilzer) 2008-01-19 11:36:23 PST
(In reply to comment #5)
> The site changed and this bug is not reproducible any more. The way Webkit
> calculates the width of a text field and a text area is still different from
> that of FF and IE and it breaks layouts in some Chinese web sites. Perhaps, a
> separate bug needs to be filed to track that issue (if not already filed).

It's helpful to have a local copy (or reduction) of pages for this very reason.  Sometimes it's as easy as:

- Saving a web page a "source" and adding a <base> tag (this method is still susceptible to the web site changing CSS or images or other resources, but may preserve enough to reproduce the bug)

- Saving a webarchive of the original page (make sure the bug reproduces with no network connection, though, as webarchives don't always contain every resource they should)

- Saving a web page as "Web page, complete" from Firefox, then loading it in Safari to make sure the issue reproduces (sometimes different content will be served to Firefox, which is why it's important to test the issue reproduces)

Once you're sure the issue reproduces, attach the source file, the webarchive file, or a zip of the Firefox "web page, complete" files to the bug.