Closed
Bug 790568
Opened 13 years ago
Closed 13 years ago
position: absolute doesn't involve "display" change
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: zajec5, Unassigned)
Details
Attachments
(1 file)
|
2.44 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0
Build ID: 2012082500
Steps to reproduce:
I used few different items with display inline/block as default or being set. At the same time I applied position: absolute to them.
Actual results:
Display wasn't affected by position: absolute
Expected results:
Both display values: inline and block should be treated as block.
It may be somehow related to the #579776, but doesn't look like a duplicate to me.
| Reporter | ||
Comment 1•13 years ago
|
||
Comment on attachment 660368 [details]
position.vs.display.html
Testcase
Attachment #660368 -
Attachment mime type: text/plain → text/html
Comment 2•13 years ago
|
||
You are not setting "left", so per http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width 'left' is set to the "static position".
This last is defined at http://www.w3.org/TR/CSS21/visudet.html#static-position and uses the original value for display, not the one that was affected by the 'position' property.
So the observed behavior is correct.
Other UAs get this wrong in some cases but get it right in others, for what it's worth.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Comment 3•13 years ago
|
||
Oh, and you can tell that the display of the positioned thing is in fact 'block' by putting text with a linebreak inside and putting a border in it to see what that looks like.
You need to log in
before you can comment on or make changes to this bug.
Description
•