Changeset 216517 in webkit
- Timestamp:
- May 9, 2017 11:02:12 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216515 r216517 1 2017-05-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 font-stretch: normal selects expanded fonts instead of condensed fonts 4 https://bugs.webkit.org/show_bug.cgi?id=171838 5 <rdar://problem/31005481> 6 7 Reviewed by Jon Lee. 8 9 * fast/text/font-width-100-expected.html: Added. 10 * fast/text/font-width-100.html: Added. 11 1 12 2017-05-09 Matt Lewis <jlewis3@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r216513 r216517 1 2017-05-09 Myles C. Maxfield <mmaxfield@apple.com> 2 3 font-stretch: normal selects expanded fonts instead of condensed fonts 4 https://bugs.webkit.org/show_bug.cgi?id=171838 5 <rdar://problem/31005481> 6 7 Reviewed by Jon Lee. 8 9 CSS Fonts level 3 says: "If the value of ‘font-stretch’ is ‘normal’ or one of the condensed 10 values, narrower width values are checked first, then wider values." 11 12 CSS Fonts level 4 erroneously was incompatible with this, but was updated in 13 https://github.com/w3c/csswg-drafts/commit/4559389d183bbaaf3321af5ba1c924caa7c488bb 14 to be consistent with this. 15 16 Now, CSS Fonts level 4 states: "If the desired stretch value is less than or equal to100, 17 stretch values below the desired stretch value are checked in descending order followed by 18 stretch values above the desired stretch value in ascending order" 19 20 Test: fast/text/font-width-100.html 21 22 * platform/graphics/FontSelectionAlgorithm.cpp: 23 1 24 2017-05-09 Romain Bellessort <romain.bellessort@crf.canon.fr> 2 25 -
trunk/Source/WebCore/platform/graphics/FontSelectionAlgorithm.cpp
r213464 r216517 36 36 return { FontSelectionValue(), m_request.width }; 37 37 38 if (m_request.width > =normalStretchValue()) {38 if (m_request.width > normalStretchValue()) { 39 39 if (width.minimum > m_request.width) 40 40 return { width.minimum - m_request.width, width.minimum };
Note: See TracChangeset
for help on using the changeset viewer.