Bug 169979

Summary: Ranges for variation font properties are not enforced
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: buildbot, commit-queue, dino, hyatt, jonlee, mmaxfield, rniwa, simon.fraser, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162815    
Attachments:
Description Flags
WIP
none
Patch
none
Archive of layout-test-results from ews100 for mac-elcapitan
none
Patch
none
Patch none

Description Myles C. Maxfield 2017-03-22 17:02:41 PDT
We should test the computed style, CSSStyleDeclaration, and reftest the bounds for font-weight, font-stretch, and font-style.
Comment 1 Myles C. Maxfield 2017-03-23 13:22:12 PDT
In our code we also check if the ranges are ascending, which IIRC is not in the spec.
Comment 2 Myles C. Maxfield 2017-03-25 15:06:37 PDT
Created attachment 305402 [details]
WIP
Comment 3 Myles C. Maxfield 2017-03-27 18:53:20 PDT
Created attachment 305539 [details]
Patch
Comment 4 Build Bot 2017-03-27 20:03:17 PDT
Comment on attachment 305539 [details]
Patch

Attachment 305539 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3421419

New failing tests:
fast/text/font-selection-font-face-parse.html
Comment 5 Build Bot 2017-03-27 20:03:19 PDT
Created attachment 305546 [details]
Archive of layout-test-results from ews100 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 6 Myles C. Maxfield 2017-03-27 20:25:17 PDT
Created attachment 305553 [details]
Patch
Comment 7 Myles C. Maxfield 2017-03-28 00:38:12 PDT
Comment on attachment 305553 [details]
Patch

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

> Source/WebCore/ChangeLog:10
> +        - Font stretch values less than or equal to 0 are parse errors

Whoops, I meant 0%.

> Source/WebCore/ChangeLog:11
> +        - Font style values less than or equal to -20deg or greater than or equal to 20deg are parse errors

Whoops, I meant -90deg and 90deg.
Comment 8 Myles C. Maxfield 2017-03-28 15:21:17 PDT
Created attachment 305650 [details]
Patch
Comment 9 Dave Hyatt 2017-03-28 16:19:58 PDT
Comment on attachment 305650 [details]
Patch

r=me
Comment 10 WebKit Commit Bot 2017-03-28 16:53:32 PDT
Comment on attachment 305650 [details]
Patch

Clearing flags on attachment: 305650

Committed r214507: <http://trac.webkit.org/changeset/214507>
Comment 11 WebKit Commit Bot 2017-03-28 16:53:37 PDT
All reviewed patches have been landed.  Closing bug.