1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibWeb: Add MediaList

This is a list of MediaQuery objects. Not to be confused with
`MediaQueryList`, which is concerned with firing events when a media
query's match-state changes.
This commit is contained in:
Sam Atkins 2021-09-29 12:08:09 +01:00 committed by Andreas Kling
parent 0a4d9c6d31
commit 8ac622f056
4 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,7 @@
interface MediaList {
stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
readonly attribute unsigned long length;
getter CSSOMString? item(unsigned long index);
undefined appendMedium(CSSOMString medium);
undefined deleteMedium(CSSOMString medium);
};