layout: Turn on synthetic small-caps for layout 2020 (#31435)

Synthetic small caps is supported by the font subsystem, but this is
disabled in Layout 2020. We can turn this on to bring support to parity
with the old layout system.

In addition to turning on synthetic small-caps this change also improves
the way that they work. Before, synthetic small caps meant that every
character was a small version of capitalized character. After this
change, capital letters are larger than small caps versions of small
letters -- matching other browsers and the common expectation of how
small caps works.
This commit is contained in:
Martin Robinson 2024-02-28 16:09:26 +01:00 committed by GitHub
parent 98bd306816
commit 5ba29c20ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 214 additions and 176 deletions

View file

@ -1,3 +0,0 @@
[font-011.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-012.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-013.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-014.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-015.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-016.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-029.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-030.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-031.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-032.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-042.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-043.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-applies-to-001.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-applies-to-017.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-variant-applies-to-001.xht]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[font-variant-applies-to-017.xht]
type: reftest
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-003.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-011.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-012.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-013.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-014.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-015.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-016.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-029.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-030.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-031.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-032.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-042.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-043.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-applies-to-001.xht]
expected: FAIL

View file

@ -1,2 +0,0 @@
[font-applies-to-017.xht]
expected: FAIL

View file

@ -1,2 +1,2 @@
[font-weight-applies-to-005.xht]
expected: FAIL
expected: FAIL

View file

@ -1,5 +1,4 @@
[system-fonts.html]
expected: ERROR
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (-2) should be [italic\] for <font-style>]
expected: FAIL
@ -1763,3 +1762,111 @@
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (1.5) should be [serif\] for <font-family>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [caption\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [icon\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [menu\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [message-box\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [small-caption\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[CSS Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (0.6) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (1) should be [normal\] for <font-variant>]
expected: FAIL
[Web Animations: property <font> from [italic 100 small-caps ultra-expanded 100px / 100px Ahem\] to [status-bar\] at (1.5) should be [normal\] for <font-variant>]
expected: FAIL

View file

@ -1,25 +1,4 @@
[font-shorthand-serialization-prevention.html]
[Setting font-variant to initial should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to inherit should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to unset should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to revert should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to revert-layer should prevent the font shorthand from serializing in specified style]
expected: FAIL
[Setting font-variant to revert-layer should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to normal should not prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to none should prevent the font shorthand from serializing in specified style]
expected: FAIL
@ -34,3 +13,6 @@
[Setting font-variant-caps to all-small-caps should prevent the font shorthand from serializing in computed style]
expected: FAIL
[Setting font-variant to none should prevent the font shorthand from serializing in computed style]
expected: FAIL

View file

@ -0,0 +1,2 @@
[font-synthesis-07.html]
expected: FAIL

View file

@ -35,9 +35,6 @@
[Property font-synthesis inherits]
expected: FAIL
[Property font-variant has initial value normal]
expected: FAIL
[Property font-variant inherits]
expected: FAIL

View file

@ -1,7 +1,4 @@
[font-variant-valid.html]
[e.style['font-variant'\] = "normal" should set the property value]
expected: FAIL
[e.style['font-variant'\] = "none" should set the property value]
expected: FAIL
@ -29,9 +26,6 @@
[e.style['font-variant'\] = "no-contextual" should set the property value]
expected: FAIL
[e.style['font-variant'\] = "small-caps" should set the property value]
expected: FAIL
[e.style['font-variant'\] = "all-small-caps" should set the property value]
expected: FAIL

View file

@ -1,12 +1,12 @@
[font-variant-shorthand-serialization.html]
[font-variant: normal serialization]
expected: FAIL
[font-variant: none serialization]
expected: FAIL
[CSS-wide keyword in one longhand]
expected: FAIL
[CSS-wide keyword in shorthand]
[font-variant-ligatures: none serialization with non-default value for another longhand]
expected: FAIL
[font: menu serialization]
expected: FAIL

View file

@ -119,15 +119,6 @@
[empty-cells: inherit]
expected: FAIL
[font-variant: normal]
expected: FAIL
[font-variant: small-caps]
expected: FAIL
[font-variant: inherit]
expected: FAIL
[list-style-position: inside]
expected: FAIL