Bug 21661 - content left aligned instead of center aligned
Summary: content left aligned instead of center aligned
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://esfang.zh.house.sina.com.cn/
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-16 14:08 PDT by Anantha Keesara
Modified: 2012-06-20 21:34 PDT (History)
2 users (show)

See Also:


Attachments
reduction.zip (426 bytes, application/octet-stream)
2008-10-16 14:09 PDT, Anantha Keesara
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anantha Keesara 2008-10-16 14:08:58 PDT
I Steps:
 Go to http://esfang.zh.house.sina.com.cn/
 
 II Issue:
 content left aligned instead of center aligned
 
 III Conclusion:
 In webkit/FF3 it's taking margin as 0 so it left align
 In IE and Opera it's taking table property align="center" so it center align.
 
 IV Other Browsers:
 IE7: ok
 FF3: not ok
 
 V Nightly tested: 37382
Comment 1 Anantha Keesara 2008-10-16 14:09:00 PDT
Created attachment 24412 [details]
reduction.zip
Comment 2 Luke Macpherson 2012-03-14 20:53:52 PDT
This bug is ~3 years old now. Is it still reproducible?
Comment 3 David Barr 2012-06-20 21:34:16 PDT
The attribute align=center is mapped to {-webkit-margin-start:auto; -webkit-margin-end:auto} in the user agent stylesheet. The author stylesheet in this reproduction takes precedence and sets the left margin of the table to zero, effectively left-aligning it. WebKit is working as intended.