Bug 104872 - Changing child from absolute to relative position does not recalculate style of inline-block parent
Summary: Changing child from absolute to relative position does not recalculate style ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://jsfiddle.net/CTdQd/2/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-12-12 18:46 PST by Dominic Cooney
Modified: 2023-03-23 17:19 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Cooney 2012-12-12 18:46:09 PST
This was found by this Stack Overflow user http://stackoverflow.com/questions/13755929/chrome-doesnt-update-the-elements-width-at-some-condition-is-it-a-bug who provided a repro here http://jsfiddle.net/CTdQd/2/ . The problem can be demonstrated more clearly by changing which div is displayed (eg 2) and observing that #wrap's width does not change; but triggering a recalc on #wrap, eg by adding an inline style, causes #wrap's width to update.

I reproduced this in Chrome 25.0.1358.0 (Official Build 172524) canary OS Mac OS X WebKit 537.21 (@137323).
Comment 1 Brent Fulgham 2022-07-13 11:58:49 PDT
This continues to be an issue in Safari 15.
Comment 2 Radar WebKit Bug Importer 2022-07-13 11:59:00 PDT
<rdar://problem/96965681>
Comment 3 Ahmad Saleem 2023-03-23 17:19:57 PDT
(In reply to Brent Fulgham from comment #1)
> This continues to be an issue in Safari 15.

It seems to be fixed in Safari Technology Preview 166 and WebKit ToT. Although Safari 16.3 still shows an issue where e.g., 2 and 3 sometime does not do update properly.

Can we mark this as "RESOLVED CONFIGURATION CHANGED" now?