Bug 79260

Summary: REGRESSION (r107516): fast/css/font-face-default-font.html is failing
Product: WebKit Reporter: mitz
Component: Layout and RenderingAssignee: Kenichi Ishibashi <bashi>
Status: RESOLVED FIXED    
Severity: Normal CC: bashi, webkit.review.bot
Priority: P1 Keywords: LayoutTestFailure, Regression
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description mitz 2012-02-22 11:05:44 PST
<http://trac.webkit.org/r107516> caused fast/css/font-face-default.font.html to fail. Specifically, the italicized text changed from Arial to Times.
Comment 1 Kenichi Ishibashi 2012-02-22 19:34:34 PST
According to the latest draft spec:
- the default value of font-style descriptor is normal (http://dev.w3.org/csswg/css3-fonts/#font-prop-desc)
- a font which has desirable style (italic in this case) is prioritized others if the font-family is matched (http://dev.w3.org/csswg/css3-fonts/#font-style-matching)

fast/css/font-face-default-font.html defines @font-face without font-style:

@font-face {
    font-family: Times;
    src: local("Arial");
}

And Mac (and maybe other platforms) has regular and italic Times font. These facts caused the test failure.

I think the current behavior follows the draft spec. Just adding following @font-face will solve the failure.

@font-face {
    font-family: Times;
    font-style: italic;
    src: local("Arial");
}
Comment 2 mitz 2012-02-22 19:39:16 PST
Makes sense.
Comment 3 Kenichi Ishibashi 2012-02-22 19:46:37 PST
Created attachment 128373 [details]
Patch
Comment 4 mitz 2012-02-22 19:48:54 PST
Comment on attachment 128373 [details]
Patch

Not really necessary for the test, but easier than updating all the results.
Comment 5 Kenichi Ishibashi 2012-02-22 19:50:24 PST
Comment on attachment 128373 [details]
Patch

Thank you!
Comment 6 WebKit Review Bot 2012-02-22 22:12:47 PST
Comment on attachment 128373 [details]
Patch

Clearing flags on attachment: 128373

Committed r108609: <http://trac.webkit.org/changeset/108609>
Comment 7 WebKit Review Bot 2012-02-22 22:12:51 PST
All reviewed patches have been landed.  Closing bug.