Bug 104872
Summary: | Changing child from absolute to relative position does not recalculate style of inline-block parent | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dominic Cooney <dominicc> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ahmad.saleem792, bfulgham, dominicc, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://jsfiddle.net/CTdQd/2/ |
Dominic Cooney
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Brent Fulgham
This continues to be an issue in Safari 15.
Radar WebKit Bug Importer
<rdar://problem/96965681>
Ahmad Saleem
(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?