Closed Bug 766530 Opened 12 years ago Closed 8 years ago

Absolutely positioned element with 100% height doesn't grow to height of multiline inline relatively positioned parent

Categories

(Core :: Layout, defect)

16 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 489100

People

(Reporter: patocallaghan, Unassigned)

References

(Depends on 1 open bug, )

Details

I wanted to create a step effect with some coloured text but also add some space to the left of the "step" text.

WHAT I DID
===========
To do this I made a h2 tag (in blue) "display: inline" and declared a :before pseudo-element (in red) "height: 100%" and absolutely positioned it to the left and top of the h2.

WHAT HAPPENED
=============
The pseudo-element doesn't grow to be 100% height of the wrapped multi-line text. Instead it only grows the height of the first line. This works as expected in the latest Chrome, IE7,8,9 and Opera 12.

See issue reproduced here 
https://dl.dropbox.com/u/5894212/pseudo-test.html

WHAT SHOULD HAVE HAPPENED
============================
The red pseudo-element should grow to be the same height as the blue multi-line text.
This has nothing to do with pseudo-elements; it's purely a matter of sizing for an abs pos child of a rel pos inline...
Summary: Pseudo element with 100% height doesn't grow to height of inline parent → Absolutely positioned element with 100% height doesn't grow to height of multiline inline relatively positioned parent
This is basically the same issue as bug 489100: the containing block is just the first box of the inline...
Depends on: 489100
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.