Bug 119393

Summary: [CSS Regions] Margins are not correctly computed in regions with mixed widths
Product: WebKit Reporter: Simon Pena <spenap>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bfulgham, mibalan, mihnea, WebkitBugTracker
Priority: P2 Keywords: AdobeTracked
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 57312, 74131    
Attachments:
Description Flags
LayoutTest proposal none

Description Simon Pena 2013-08-01 05:46:06 PDT
Created attachment 207918 [details]
LayoutTest proposal

(This shares the same preconditions as bug #74131)

If you have an element in a region with a percentage margin, and the region is followed by another region with a larger width, the size and margin calculations are using the widest region in the flow, then moving and clipping for display in the first region. As a result, using getComputedStyle to retrieve these margins fails, giving the original values which used the widest region in the flow.

I created a test, starting from the one attached in bug #74131 and modifying it to incorporate the logic from http://trac.webkit.org/browser/trunk/LayoutTests/fast/css/getComputedStyle/getComputedStyle-margin-percentage.html. It can be seen how the test passes once we remove the second region with the larger width.
Comment 1 Brent Fulgham 2022-07-13 09:24:07 PDT
CSS Regions were removed in Bug 174978.