Bug 106928

Summary: [CSS Exclusions] Float position determination does not always ignore margins when the float has a shape-outside
Product: WebKit Reporter: Bem Jones-Bey <bjonesbe>
Component: CSSAssignee: Bem Jones-Bey <bjonesbe>
Status: RESOLVED WORKSFORME    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://dev.w3.org/csswg/css3-exclusions/#floats-and-exclusions
Bug Depends on:    
Bug Blocks: 98664    

Bem Jones-Bey
Reported 2013-01-15 11:10:50 PST
Specifically, RenderBlock::xPositionForFloatIncludingMargin and RenderBlock::yPositionForFloatIncludingMargin do not ignore the margin if the float has a shape outside. It would be good to look for other cases as well when fixing this bug, but it might also be hard to find tests for this.
Attachments
Bem Jones-Bey
Comment 1 2013-01-21 14:44:24 PST
When doing this, add a comment to these methods to explain that when floats have shape-outside, the FloatingObject has different size/coordinates than the RenderBox. (it is a bit confusing)
Bem Jones-Bey
Comment 2 2013-01-22 14:36:44 PST
I can't come up with any situations in which this actually is an issue, so I'm closing it. Things seem to work properly, and I think if I come up with an actual use case where this is a problem, I'll file a bug for that. This is almost too low level to be able to come up with a proper test case.
Note You need to log in before you can comment on or make changes to this bug.