[Webkit-unassigned] [Bug 18090] static position of abspos element at the end of a single-line shrinkwrapped container is incorrect

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 18 15:05:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=18090





--- Comment #4 from Pravin D <pravind.2k4 at gmail.com>  2012-07-18 15:05:52 PST ---
(In reply to comment #3)
> Yup, valid bug.  The error is that, if an inline element is the last thing in a single-line shrinkwrapped container, when you position the inline its static position is instead computed as if it linewrapped onto a second line.
> 
> Here's a testcase:
> 
> <!DOCTYPE html>
> <div id=wrapper>
>   <div id=inline></div><div id=inline-positioned></div>
> </div>
> <div id=cover></div>
> <style>
> body { margin: 0; }
> #wrapper {
>   float: left;
> }
> #inline {
>   display: inline-block;
>   width: 50px;
>   height: 20px;
>   background: green;
> }
> #inline-positioned {
>   display: inline-block;
>   width: 50px;
>   height: 20px;
>   background: red;
>   position: absolute;
> }
> #cover {
>   position: absolute;
>   top: 0;
>   left: 50px;
>   width: 50px;
>   height: 20px;
>   background: green;
> }
> </style>
> 

The above test case is a little different from the one jasneet has reported.
If you move the <style> stuff above the first <div> there will be no red box seen.
Your test case exposes another bug , that for positioned objects the renderers are not properly re-attached.
See https://bugs.webkit.org/show_bug.cgi?id=91665

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list