Bug 76845 - Absolute positioned element inside relative positioned element does not update display when innerHTML changes
Summary: Absolute positioned element inside relative positioned element does not updat...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 11:20 PST by Bella
Modified: 2022-07-12 16:30 PDT (History)
3 users (show)

See Also:


Attachments
Repro example (495 bytes, text/html)
2012-01-23 11:20 PST, Bella
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bella 2012-01-23 11:20:24 PST
Created attachment 123582 [details]
Repro example

I have a container with position: relative, and inside of it a text area and a position: absolute div.
The text area has a keyup event listener which updates the innerHTML of the div.
To see the issue, try typing in the text area. Notice the display of the div is not updated.

The issue goes away when either of the positioning styles is removed.

The bug started appearing around the release of Chome 18, and is reproducible in both Chrome and WebKit.
Comment 1 David Barr 2012-03-21 20:28:26 PDT
Confirmed.
Google Chrome	19.0.1076.0 (Official Build 127890) canary
OS	Mac OS X
WebKit	536.4 (@111385)
Comment 2 David Barr 2012-03-21 20:42:59 PDT
Also confirmed:
Safari Version 5.1.2 (6534.52.7, r110761)

Note that s/innerHTML/innerText/ with the attached repro works just fine.
Comment 3 Brent Fulgham 2022-07-12 16:30:18 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.