Closed Bug 307102 Opened 19 years ago Closed 18 years ago

width of abs pos replaced elements not intrinsic when left:0;right:0

Categories

(Core :: Layout: Positioned, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ian, Unassigned)

References

Details

(Whiteboard: (o178664)[reflow-refactor])

According to 10.3.8:1, the used value of 'width' for absolutely positioned,
replaced elements is determined as for inline replaced elements. However, we
seem to be letting left:0;right:0 override this.

TESTCASE
   http://www.hixie.ch/tests/adhoc/css/box/absolute/025.html
Whiteboard: (o178664)
Erm... so for a replaced abs pos element there's no way to get the left:0, right:0 behavior?  Why not?  That is, what is the point of the first rule in section 10.3.8?  If the author wanted that behavior he would have used auto for left or right, no?

I sent mail to www-style about this...

I guess if we decided to fix this we'd need to change the nsHTMLReflowState logic to discard right or left for replaced elements depending on direction...
Flags: blocking1.9a1?
No point doing this till the branch lands.
Whiteboard: (o178664) → (o178664)[reflow-refactor]
Flags: blocking1.9a1? → blocking1.9+
resolved after reflow branch landing (no red shown)
Status: NEW → RESOLVED
Closed: 18 years ago
Depends on: reflow-refactor
Resolution: --- → FIXED
Need to add a testcase for this to reftest...
Flags: in-testsuite?
Checked in a test.
Flags: in-testsuite? → in-testsuite+
You need to log in before you can comment on or make changes to this bug.