Bug 139975 - Update css3/flexbox/auto-margins.html after r177774
Summary: Update css3/flexbox/auto-margins.html after r177774
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on:
Blocks: 139968
  Show dependency treegraph
 
Reported: 2014-12-28 10:32 PST by Myles C. Maxfield
Modified: 2015-01-07 16:10 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.30 KB, patch)
2014-12-28 10:35 PST, Myles C. Maxfield
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2014-12-28 10:32:01 PST
Update css3/flexbox/auto-margins.html after r177774
Comment 1 Myles C. Maxfield 2014-12-28 10:35:28 PST
Created attachment 243783 [details]
Patch
Comment 2 Darin Adler 2014-12-28 11:12:46 PST
Comment on attachment 243783 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243783&action=review

> LayoutTests/ChangeLog:12
> +        This is a subpixel problem. Flexbox uses SimpleLineLayout for the entire
> +        box and therefore does all its math in floating point, while the
> +        -expected uses the regular renderer hierarchy and therefore fixed-point
> +        math. This patch updates the test to use Ahem so that the character
> +        widths divide the same way in both cases.

Does that mean that I could see a difference if a page dynamically changed layout between these two techniques? That sounds like a bug!

I understand the desire to not make this test sensitive to this bug, but what about fixing the bug?
Comment 3 zalan 2014-12-28 11:45:14 PST
Comment on attachment 243783 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=243783&action=review

> LayoutTests/ChangeLog:10
> +        This is a subpixel problem. Flexbox uses SimpleLineLayout for the entire
> +        box and therefore does all its math in floating point, while the
> +        -expected uses the regular renderer hierarchy and therefore fixed-point

Simple line layout snaps content to pixels at painting time the same way as any other InlineBox/RenderBox does. Whether it uses float or LayoutUnit while layouting shouldn't make any difference (other than in some edge cases caused by precession loss -where we might push content to the wrong position at halfway values). I think this is more about table layout vs. rest of the rendering layout, where table still uses integral positioning.
Comment 4 Myles C. Maxfield 2015-01-07 15:56:01 PST
Committed r178063: <http://trac.webkit.org/changeset/178063>
Comment 5 Myles C. Maxfield 2015-01-07 15:56:32 PST
Zalan says we already have a few bugs about subpixelifying tables, so I'm going to land this.
Comment 6 zalan 2015-01-07 16:10:22 PST
(In reply to comment #5)
> Zalan says we already have a few bugs about subpixelifying tables, so I'm
> going to land this.
bug 132010