Bug 69939 - Image percentage max-width/max-height not recalculated after parent size change
Summary: Image percentage max-width/max-height not recalculated after parent size change
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-12 10:30 PDT by Joseph Pecoraro
Modified: 2023-05-08 07:04 PDT (History)
1 user (show)

See Also:


Attachments
[REDUCTION] Test Case (18.03 KB, text/html)
2011-10-12 10:30 PDT, Joseph Pecoraro
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2011-10-12 10:30:42 PDT
Created attachment 110696 [details]
[REDUCTION] Test Case

See the attached test case.

  <div> <!-- width and height of this to change doesn't cause the img to resize -->
    <div style="width:100%; height:100%">
      <img style="max-width:100%; max-height:100%>
    </div>
  </div>

Workaround, forcing a style recalculation. That can be done by inspecting
the element in the inspector, or removing/re-adding the element.
Comment 1 Ahmad Saleem 2023-05-08 07:04:55 PDT
It seems to work fine with Safari 16.4 as well.

I think this has progressed and now Safari / WebKit is matching with Chrome Canary 115 and Firefox Nightly 114.

Marking this as "RESOLVED CONFIGURATION CHANGED".