mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
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:
parent
de98c122d1
commit
2bc51f08d9
Notes:
sideshowbarker
2024-07-17 07:43:05 +09:00
Author: https://github.com/ADKaster
Commit: 2bc51f08d9
Pull-request: https://github.com/SerenityOS/serenity/pull/24278
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/kalenikaliaksandr
5 changed files with 269 additions and 12 deletions
19
Tests/LibWeb/Text/expected/css/FontFace.txt
Normal file
19
Tests/LibWeb/Text/expected/css/FontFace.txt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue