Bug 21661

Summary: content left aligned instead of center aligned
Product: WebKit Reporter: Anantha Keesara <anantha>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: davidbarr, macpherson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://esfang.zh.house.sina.com.cn/
Attachments:
Description Flags
reduction.zip none

Anantha Keesara
Reported 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
Attachments
reduction.zip (426 bytes, application/octet-stream)
2008-10-16 14:09 PDT, Anantha Keesara
no flags
Anantha Keesara
Comment 1 2008-10-16 14:09:00 PDT
Created attachment 24412 [details] reduction.zip
Luke Macpherson
Comment 2 2012-03-14 20:53:52 PDT
This bug is ~3 years old now. Is it still reproducible?
David Barr
Comment 3 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.
Note You need to log in before you can comment on or make changes to this bug.