[Webkit-unassigned] [Bug 168533] New: Font Loading API specifies font is loaded but sizing of font after load reports inconsistent values
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Feb 17 14:37:50 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=168533
Bug ID: 168533
Summary: Font Loading API specifies font is loaded but sizing
of font after load reports inconsistent values
Classification: Unclassified
Product: WebKit
Version: Safari 10
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Text
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ssaviano at google.com
CC: mmaxfield at apple.com
jsfiddle: https://jsfiddle.net/0ko9fLwo/1/
Refresh that page and look at the JS console. It repros via refresh/cmd-R.
Steps:
1) Create a new FontFace object with fallbacks in the source string on page load
2) Load the FontFace
3) Add to documents.fonts
4) Monitor sizing of text with the font
Expected: Element size stays consistent post FontFace load
Actual: Element size has one value and then another post FontFace load.
Occurs on:
a) Version 10.0.2 (12602.3.12.0.1)
b) Release 23 (Safari 10.2, WebKit 12604.1.5)
It appears this has to do with fallbacks in the font source strings (and potentially that this is done in the initial page load). If the font source string is only the remote url, then the sizing inconsistency does not occur.
https://jsfiddle.net/6eshwbuc/1/
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170217/0c64fdba/attachment-0001.html>
More information about the webkit-unassigned
mailing list