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: NEW
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: 2011-10-12 10:30 PDT (History)
0 users

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.