Bug 135308

Summary: [CSS Shapes] shape-margin not respected when it extends beyond an explicitly set margin
Product: WebKit Reporter: Rebecca Hauck <rhauck>
Component: CSSAssignee: Bem Jones-Bey <bjonesbe>
Status: RESOLVED FIXED    
Severity: Normal CC: bjonesbe, clopez, commit-queue, dino, esprehn+autocc, glenn, kondapallykalyan, simon.fraser, zoltan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
test case for bug
none
reference file
none
new test file that fails when CSS Shapes isn't implemented or enabled (the other one didn't)
none
new reference file
none
adding png
none
Patch
none
Patch none

Description Rebecca Hauck 2014-07-25 15:53:37 PDT
The attached tests has a 50 x 100 right float with a margin-left set to 10px and a shape-margin set to 20px and the parent element is 100px x 100px.  A 50px Ahem character should not fit to flow no the left side of the float. Instead, it should be pushed beneath the float just as it would if the shape-outside was not defined.  The reference file is just that - it is set up the same way, just without the shape-outside property (nor the red failure element).
Comment 1 Rebecca Hauck 2014-07-25 15:54:05 PDT
Created attachment 235546 [details]
test case for bug
Comment 2 Rebecca Hauck 2014-07-25 15:54:26 PDT
Created attachment 235547 [details]
reference file
Comment 3 Rebecca Hauck 2014-07-28 16:16:01 PDT
Created attachment 235633 [details]
new test file that fails when CSS Shapes isn't implemented or enabled (the other one didn't)
Comment 4 Rebecca Hauck 2014-07-28 16:16:43 PDT
Created attachment 235634 [details]
new reference file
Comment 5 Bem Jones-Bey 2014-07-30 11:03:27 PDT
(In reply to comment #3)
> Created an attachment (id=235633) [details]
> new test file that fails when CSS Shapes isn't implemented or enabled (the other one didn't)

The test refers to support/square.png, which isn't included.
Comment 6 Rebecca Hauck 2014-07-30 11:10:43 PDT
Created attachment 235752 [details]
adding png

sorry about that - attached.
Comment 7 Bem Jones-Bey 2014-08-01 15:59:41 PDT
Created attachment 235917 [details]
Patch
Comment 8 Bem Jones-Bey 2014-08-04 12:52:34 PDT
Comment on attachment 235917 [details]
Patch

I'm tweaking the test a bit to make it more robust.
Comment 9 Bem Jones-Bey 2014-08-04 13:16:57 PDT
Created attachment 235983 [details]
Patch

Made test more robust by switching to a left float so that the wrapped content hits up against the flat bottom of the shape margin, not the rounded corner.
Comment 10 WebKit Commit Bot 2014-08-04 15:17:35 PDT
Comment on attachment 235983 [details]
Patch

Clearing flags on attachment: 235983

Committed r172010: <http://trac.webkit.org/changeset/172010>
Comment 11 WebKit Commit Bot 2014-08-04 15:17:40 PDT
All reviewed patches have been landed.  Closing bug.
Comment 12 Carlos Alberto Lopez Perez 2014-08-04 17:35:12 PDT
(In reply to comment #10)
> (From update of attachment 235983 [details])
> Clearing flags on attachment: 235983
> 
> Committed r172010: <http://trac.webkit.org/changeset/172010>

The test fast/shapes/shape-outside-floats/shape-outside-image-shape-margin.html fails on GTK. Reported here: https://bugs.webkit.org/show_bug.cgi?id=135585