mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 21:12:26 +00:00
LibWeb: Mark FontFaceSet as a setlike IDL interface
And implement more of the constructor logic.
This commit is contained in:
parent
7077e4d002
commit
bab546472e
Notes:
sideshowbarker
2024-07-17 18:46:57 +09:00
Author: https://github.com/ADKaster
Commit: bab546472e
Pull-request: https://github.com/SerenityOS/serenity/pull/24413
Reviewed-by: https://github.com/awesomekling
5 changed files with 124 additions and 16 deletions
23
Tests/LibWeb/Text/expected/css/FontFaceSet-setlike.txt
Normal file
23
Tests/LibWeb/Text/expected/css/FontFaceSet-setlike.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
-- Empty FontFaceSet --
|
||||
fontFaceSet.size: 0
|
||||
fontFaceSet.has(fontFace): false
|
||||
fontFaceSet.status: loaded
|
||||
deleteBeforeAdd: false
|
||||
-- Add Font --
|
||||
fontFaceSet.size: 1
|
||||
fontFaceSet.has(fontFace): true
|
||||
fontFaceKey.name: Hash Sans
|
||||
FIXME: fontFaceSet.status: loaded
|
||||
-- Delete Font --
|
||||
fontFaceSet.size: 0
|
||||
fontFaceSet.has(fontFace): false
|
||||
didDelete: true
|
||||
fontFaceSet.status: loaded
|
||||
-- Add Font again --
|
||||
fontFaceSet.size: 1
|
||||
fontFaceSet.has(fontFace): true
|
||||
FIXME: fontFaceSet.status: loaded
|
||||
-- Clear FontFaceSet --
|
||||
fontFaceSet.size: 0
|
||||
fontFaceSet.has(fontFace): false
|
||||
fontFaceSet.status: loaded
|
Loading…
Add table
Add a link
Reference in a new issue