LibWeb: Implement or stub FontFace interface's attribute getters/setters

We only support parsing half of these, so the ones we don't recognize
get a friendly exception thrown.
This commit is contained in:
Andrew Kaster 2024-05-10 10:28:53 -06:00 committed by Sam Atkins
commit 2bc51f08d9
Notes: sideshowbarker 2024-07-17 07:43:05 +09:00
5 changed files with 269 additions and 12 deletions

View file

@ -0,0 +1,19 @@
face.family: Some font family
face.style: normal
face.weight: normal
face.stretch: normal
face.unicodeRange: U+0-10FFFF
face.featureSettings: normal
face.variationSettings: normal
face.display: auto
face.ascentOverride: normal
face.descentOverride: normal
face.lineGapOverride: normal
face.family: Another font family
face.style: italic
face.weight: bold
face.stretch: condensed
face.family = 1: SyntaxError: FontFace.family setter: Invalid font descriptor
face.style = 1: SyntaxError: FontFace.style setter: Invalid font descriptor
face.weight = 500kg: SyntaxError: FontFace.weight setter: Invalid font descriptor
face.stretch = super stretched: SyntaxError: FontFace.stretch setter: Invalid font descriptor