[Webkit-unassigned] [Bug 68681] New: the positioned render object's position do not update when needed.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 23 01:54:33 PDT 2011


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

           Summary: the positioned render object's position do not update
                    when needed.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: p.zhang.9.25 at gmail.com


Test-case:
<head>
    <style>
   .a {position:absolute; width:100px; height:100px; background-color:red; padding:4px}
   .b {position:absolute; width:100px; height:100px; background-color:red; padding:0px; border:4px blue solid}

   .c {position:absolute; width:100px; height:100px; top:0px; left:0px; background-color:black}
   </style>
</head>
<body>
 <div id="div1" class="a" onclick="document.getElementById('div1').setAttribute('class', 'b')">
   <div id='div2' class="c"></div>
 </div>
</body>

-----------------
Before click on 'div1', webkit(chrome) and firefox rendered the same.
After click on 'div1', firefox positioned 'div2' (4px, 4px) offset from it's container 'div1', but webkit do nothing, and I think it's a bug of webkit rendering engine.

I checked the strategy of how to layout positioned renderer: the positioned renderer's offset to it's container calculated in the layout procedure of itself, but click on 'div1' do not cause the relayout of it's child 'div2' because the contentWidth of 'div1' is not changed.  

I relayout 'div2' forcedly, the position of 'div2' is changed.(In chrome's inspector, remove border of div1 then recover, the position of div2 is changed)

-- 
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