Bug 212054 - [css-flexbox] WPT Test css/css-flexbox/flex-lines/multi-line-wrap-reverse-column-reverse.html fails
Summary: [css-flexbox] WPT Test css/css-flexbox/flex-lines/multi-line-wrap-reverse-col...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-05-18 17:28 PDT by Carlos Alberto Lopez Perez
Modified: 2020-05-26 01:47 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.78 KB, patch)
2020-05-25 13:58 PDT, Carlos Alberto Lopez Perez
no flags Details | Formatted Diff | Diff
Patch (6.74 KB, patch)
2020-05-25 14:08 PDT, Carlos Alberto Lopez Perez
rego: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2020-05-18 17:28:09 PDT
The WPT test css/css-flexbox/flex-lines/multi-line-wrap-reverse-column-reverse.html fails on Mac and iOS

The failure its just some small pixel differences in the text rendering, likely related to font kerning differences.

See: https://wpt.fyi/analyzer?screenshot=sha1%3Acd49a443027a6deb9e65fdec779db7fd2a3ed532&screenshot=sha1%3A28b192ce9f5c2d626bf5243b8b3e3fa79652cfb0

This test passes on GTK/WPE.


Likely this test can be fixed by using Ahem font.


For a very similar issue on other of this tests see bug 211891
Comment 1 Carlos Alberto Lopez Perez 2020-05-25 13:58:18 PDT
Created attachment 400219 [details]
Patch
Comment 2 Carlos Alberto Lopez Perez 2020-05-25 14:08:51 PDT
Created attachment 400220 [details]
Patch
Comment 3 Manuel Rego Casasnovas 2020-05-25 22:12:41 PDT
Comment on attachment 400220 [details]
Patch

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

r=me, the change looks good just a minor comment about using red color.
Apart from that I'm not sure if I need to review the PR in WPT or it's enough with the review here, please let me know. Thanks for the fix.

> LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flex-lines/multi-line-wrap-reverse-column-reverse-expected.html:25
> +        color: red;

Please avoid using "red" for things that are on the expected output (as red usually means wrong behavior). Just change it for another color.
Comment 4 Carlos Alberto Lopez Perez 2020-05-26 01:45:21 PDT
(In reply to Manuel Rego Casasnovas from comment #3)
> Comment on attachment 400220 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=400220&action=review
> 
> r=me, the change looks good just a minor comment about using red color.
> Apart from that I'm not sure if I need to review the PR in WPT or it's
> enough with the review here, please let me know. Thanks for the fix.
> 

That is not necessary. There is a bot that will approve the WPT PR after getting review here. Check: https://trac.webkit.org/wiki/WPTExportProcess

> > LayoutTests/imported/w3c/web-platform-tests/css/css-flexbox/flex-lines/multi-line-wrap-reverse-column-reverse-expected.html:25
> > +        color: red;
> 
> Please avoid using "red" for things that are on the expected output (as red
> usually means wrong behavior). Just change it for another color.

Sure, I will use orange instead.

Thanks!
Comment 5 Carlos Alberto Lopez Perez 2020-05-26 01:46:53 PDT
Committed r262139: <https://trac.webkit.org/changeset/262139>
Comment 6 Radar WebKit Bug Importer 2020-05-26 01:47:15 PDT
<rdar://problem/63615863>