Summary: | Height 100% not applied correctly inside an absolute positioned element | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Andras Nemeseri <izemize> | ||||||
Component: | Layout and Rendering | Assignee: | Dave Hyatt <hyatt> | ||||||
Status: | VERIFIED FIXED | ||||||||
Severity: | Normal | ||||||||
Priority: | P2 | ||||||||
Version: | 523.x (Safari 3) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
URL: | http://nemeseri.extra.hu/safari/bug1.html | ||||||||
Attachments: |
|
Description
Andras Nemeseri
2007-05-26 15:41:16 PDT
Created attachment 14742 [details]
testcase
Confirmed. Positioned elements whose height resolves to non-auto can actually serve as a "stopping point" for percentage height calculations. This can happen when top and bottom are explicitly specified too (I think that's another bug on file). This is pretty easy to fix. CSS2.1 is clear that this is a bug. http://www.w3.org/TR/CSS21/visudet.html#the-height-property Created attachment 14746 [details]
Patch that fixes bug.
Make sure to stop at positioned containing blocks that have specified heights.
Comment on attachment 14746 [details]
Patch that fixes bug.
r=me
I need to address the replaced element case too. Fixed. |