Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 23202 by Hanrui.Gao: Absolutely positioned element is not
complied with W3C standard.
http://code.google.com/p/chromium/issues/detail?id=23202
Chrome Version : 4.0.213.1
URLs (if applicable) :
Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
Safari 4: Same as Chrome
Firefox 3.x: Same as Chrome
IE 6/7: Different to Chrome
What steps will reproduce the problem?
1. Launch the testcase file attached
What is the expected result?
The inner div is absolutely positioned div without left/top specified. So
according to W3C standard, its left should be at the place as same as
static positioned place.
W3C standard:
http://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width
"2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the
'direction' property of the element establishing the static-position
containing block is 'ltr' set 'left' to the static position, otherwise set
'right' to the static position. Then solve for 'left' (if 'direction is
'rtl') or 'right' (if 'direction' is 'ltr')."
What happens instead?
The inner div always align to left of the outer div, which is different
from the static flow. ( The first and third groups in testcase are
absolutely positioned while the second and fourth groups are static
positioned for comparing. )
Please provide any additional information below. Attach a screenshot if
possible.
Attachments:
testcase_of_text_align_center_position_absolute_standard.html 689 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---