mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
script: add skeleton implementation of FontFace
API (#35262)
This patch implements the `FontFace` interface, but with some caveats 1. The interface is only exposed on `Window`. Support for Workers will be handled in the future. 2. The concept of `css-connected` `FontFace` is not implemented, so `@font-face` rules in stylesheets will not be represented in the DOM. 3. The constructor only supports using `url()` strings as source and `ArrayBuffer` and `ArrayBufferView` are not supported yet. A skeleton implementation of the `load` method of `FontFaceSet` is also implemented in this patch. The intention is to support some web pages that don't load without this method. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
29e0fad21e
commit
56840e0a35
52 changed files with 1160 additions and 551 deletions
|
@ -1,2 +1,3 @@
|
|||
[fallback-remote-to-data-url.html]
|
||||
expected: ERROR
|
||||
[We should use the inline custom font to render the page when the primary remote font is loading]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[font-display-change.html]
|
||||
expected: TIMEOUT
|
||||
bug: https://github.com/servo/servo/issues/35521
|
||||
expected: [FAIL, TIMEOUT, PASS]
|
||||
|
|
|
@ -1,16 +1,4 @@
|
|||
[format-specifiers-variations.html]
|
||||
[Load Ahem with format woff]
|
||||
expected: FAIL
|
||||
|
||||
[Load Ahem with format truetype]
|
||||
expected: FAIL
|
||||
|
||||
[Load Ahem with format opentype]
|
||||
expected: FAIL
|
||||
|
||||
[Load Ahem with format woff2]
|
||||
expected: FAIL
|
||||
|
||||
[Load Ahem with format woff-variations]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -22,123 +10,3 @@
|
|||
|
||||
[Load Ahem with format woff2-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzwoff]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyztruetype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzopentype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzwoff2]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzwoff-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyztruetype-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzopentype-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format xyzwoff2-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woffxyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format truetypexyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format opentypexyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff2xyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff-variationsxyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format truetype-variationsxyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format opentype-variationsxyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff2-variationsxyz]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format wo]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format truety]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format openty]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format wof]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff-variatio]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format truetype-variatio]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format opentype-variatio]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff2-variatio]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format ff]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format uetype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format entype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format ff2]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format ff-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format uetype-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format entype-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format ff2-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format wff]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format tretype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format opntype]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format wff2]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff-ariations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format truetye-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format opentye-variations]
|
||||
expected: FAIL
|
||||
|
||||
[Do not load Ahem with format woff2variations]
|
||||
expected: FAIL
|
||||
|
|
|
@ -38,5 +38,20 @@
|
|||
[Property font-size-adjust value 'ic-height from-font']
|
||||
expected: FAIL
|
||||
|
||||
[CSS Fonts Module Level 5: getComputedStyle().fontSizeAdjust]
|
||||
[Property font-size-adjust value 'calc(0.5)']
|
||||
expected: FAIL
|
||||
|
||||
[Property font-size-adjust value 'ex-height calc(0.5)']
|
||||
expected: FAIL
|
||||
|
||||
[Property font-size-adjust value 'cap-height calc(0.5)']
|
||||
expected: FAIL
|
||||
|
||||
[Property font-size-adjust value 'cap-height calc(0.5 + 1)']
|
||||
expected: FAIL
|
||||
|
||||
[Property font-size-adjust value 'cap-height calc(-0.5)']
|
||||
expected: FAIL
|
||||
|
||||
[Property font-size-adjust value 'cap-height calc(10 + (sign(20cqw - 10px) * 5))']
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,156 +0,0 @@
|
|||
[font-parse-numeric-stretch-style-weight.html]
|
||||
[Valid value 100 matches 100 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 700 matches 700 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 900 matches 900 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value bold matches bold for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value normal matches normal for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 100 400 matches 100 400 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 100 101.5 matches 100 101.5 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 999.8 999.9 matches 999.8 999.9 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 500 400 matches 500 400 for weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 0% matches 0% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value calc(0% - 10%) matches calc(-10%) for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 100% matches 100% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 110% matches 110% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 111.5% matches 111.5% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 50% 200% matches 50% 200% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 0.1% 1% matches 0.1% 1% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value 900% 901% matches 900% 901% for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value ultra-condensed matches ultra-condensed for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value ultra-expanded matches ultra-expanded for stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value normal matches normal for style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value italic matches italic for style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value oblique matches oblique for style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value oblique 10deg matches oblique 10deg for style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Valid value oblique 10deg 20deg matches oblique 10deg 20deg for style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 0 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 0.9 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value -100 200 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 100 -200 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 100 1001 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 1001 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 1000.5 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 100 200 300 must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value a must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value a b c must not be accepted as weight in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value -0.5% must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value -1% must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 60% 70% 80% must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value a% must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value a b c must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 0.1 must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value -60% 80% must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value ultra-expannnned must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 50% 0 must not be accepted as stretch in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value oblique 100deg must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value oblique italic must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value oblique -91deg must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value oblique 0 must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value oblique 10 must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value iiitalic must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 90deg must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value 11 must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
||||
|
||||
[Value italic 90deg must not be accepted as style in @font-face.]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue