WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 9213
5722
Span width incorrect when abs positioned inside rel positioned span
https://bugs.webkit.org/show_bug.cgi?id=5722
Summary
Span width incorrect when abs positioned inside rel positioned span
Mike West
Reported
2005-11-12 16:16:04 PST
The test paragraph at the URL noted contains a section demarcated by a span of class 'phrase'. Inside of this span exists simply a bit of text, and another span of class 'overlay'. The goal is to absolutely position 'overlay' on top of 'phrase', taking on the same height and width. 'overlay' has it's boder change colours upon hover. The code is, in theory, valid. However, two errors occur here that do not occur in Firefox (Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051107 Firefox/1.5). * The 'overlay' span is set to a width of '100%', yet seems to bypass it's relatively positioned parent's width, prefering instead the width of the parent's parent (the containing div). * The hover effect is quite odd, as it doesn't actually change the border colour of the entire span but instead only the part of the span that exists inside the outer div.
Attachments
Testcase
(1.41 KB, text/html)
2005-11-12 16:21 PST
,
Mike West
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Mike West
Comment 1
2005-11-12 16:21:48 PST
Created
attachment 4676
[details]
Testcase Attached testcase.
Joost de Valk (AlthA)
Comment 2
2005-11-22 14:35:03 PST
Confirmed, good testcase and explanation.
Eric Seidel (no email)
Comment 3
2005-12-27 15:57:55 PST
Yes, we render this wrong, even on TOT. Beth was recently working in the area of absolute/relative positioning, she might have thoughts here.
Sam Weinig
Comment 4
2006-06-07 14:20:03 PDT
This now works. Any objections to closing it down.
David Kilzer (:ddkilzer)
Comment 5
2006-06-07 15:26:40 PDT
(In reply to
comment #4
)
> This now works. Any objections to closing it down.
It would be interesting to know which revision fixed it, and it would be worthwhile to write a test to cover the break.
mitz
Comment 6
2006-12-16 12:48:48 PST
*** This bug has been marked as a duplicate of
9213
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug