Changeset 214394 in webkit
- Timestamp:
- Mar 24, 2017 11:50:18 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 9 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r214390 r214394 1 2017-03-24 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Add font-optical-sizing to CSSComputedStyleDeclaration 4 https://bugs.webkit.org/show_bug.cgi?id=170083 5 6 Reviewed by Joseph Pecoraro. 7 8 * fast/css/getComputedStyle/computed-style-expected.txt: 9 * fast/css/getComputedStyle/computed-style-font-family-expected.txt: 10 * fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: 11 * fast/css/getComputedStyle/resources/property-names.js: 12 * fast/text/variations/optical-sizing-expected.txt: 13 * fast/text/variations/optical-sizing.html: 14 * platform/mac-elcapitan/fast/css/getComputedStyle/computed-style-expected.txt: Added. 15 * platform/mac-elcapitan/fast/css/getComputedStyle/computed-style-font-family-expected.txt: Added. 16 * platform/mac-elcapitan/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt: Added. 17 1 18 2017-03-24 Ryan Haddad <ryanhaddad@apple.com> 2 19 -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-expected.txt
r213094 r214394 51 51 font-variant: normal; 52 52 font-weight: normal; 53 font-optical-sizing: auto; 53 54 hanging-punctuation: none; 54 55 height: 576px; -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-font-family-expected.txt
r213267 r214394 8 8 font-variant: normal; 9 9 font-weight: normal; 10 font-optical-sizing: auto; 10 11 font-variant-ligatures: normal; 11 12 font-variant-position: normal; -
trunk/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt
r213094 r214394 50 50 font-variant: normal 51 51 font-weight: normal 52 font-optical-sizing: auto 52 53 hanging-punctuation: none 53 54 height: 100px -
trunk/LayoutTests/fast/css/getComputedStyle/resources/property-names.js
r210449 r214394 198 198 "font-variant-position": true, 199 199 "font-weight": true, 200 "font-optical-sizing": true, 200 201 "glyph-orientation-horizontal": true, 201 202 "glyph-orientation-vertical": true, -
trunk/LayoutTests/fast/text/variations/optical-sizing-expected.txt
r214364 r214394 14 14 PASS document.getElementById('test4').style.fontOpticalSizing is "none" 15 15 PASS document.getElementById('test5').style.fontOpticalSizing is "inherit" 16 PASS window.getComputedStyle(document.getElementById('test1')).fontOpticalSizing is "auto" 17 PASS window.getComputedStyle(document.getElementById('test2')).fontOpticalSizing is "auto" 18 PASS window.getComputedStyle(document.getElementById('test3')).fontOpticalSizing is "auto" 19 PASS window.getComputedStyle(document.getElementById('test4')).fontOpticalSizing is "none" 20 PASS window.getComputedStyle(document.getElementById('test5')).fontOpticalSizing is "none" 21 PASS Found optical sizing 16 22 PASS successfullyParsed is true 17 23 -
trunk/LayoutTests/fast/text/variations/optical-sizing.html
r214364 r214394 25 25 shouldBeEqualToString("document.getElementById('test4').style.fontOpticalSizing", "none"); 26 26 shouldBeEqualToString("document.getElementById('test5').style.fontOpticalSizing", "inherit"); 27 28 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).fontOpticalSizing", "auto"); 29 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test2')).fontOpticalSizing", "auto"); 30 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test3')).fontOpticalSizing", "auto"); 31 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).fontOpticalSizing", "none"); 32 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test5')).fontOpticalSizing", "none"); 33 34 var computedStyle = window.getComputedStyle(document.getElementById('test1')); 35 var found = false; 36 for (let i = 0; i < x.length; ++i) { 37 if (computedStyle[i] == "font-optical-sizing") { 38 found = true; 39 testPassed("Found optical sizing"); 40 break; 41 } 42 } 43 if (!found) 44 testFailed("Didn't find optical sizing"); 27 45 </script> 28 46 -
trunk/Source/WebCore/ChangeLog
r214392 r214394 1 2017-03-24 Myles C. Maxfield <mmaxfield@apple.com> 2 3 Add font-optical-sizing to CSSComputedStyleDeclaration 4 https://bugs.webkit.org/show_bug.cgi?id=170083 5 6 Reviewed by Joseph Pecoraro. 7 8 Covered by existing tests. 9 10 * css/CSSComputedStyleDeclaration.cpp: 11 1 12 2017-03-24 Daniel Bates <dabates@apple.com> 2 13 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r214364 r214394 163 163 CSSPropertyFontVariant, 164 164 CSSPropertyFontWeight, 165 #if ENABLE(VARIATION_FONTS) 166 CSSPropertyFontOpticalSizing, 167 #endif 165 168 CSSPropertyHangingPunctuation, 166 169 CSSPropertyHeight,
Note: See TracChangeset
for help on using the changeset viewer.