1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibWeb/HTML: Port Window.getSelection() to IDL

This commit is contained in:
Linus Groh 2023-03-06 22:34:48 +00:00
parent 56550b6ec0
commit 606b9ff6f3
5 changed files with 18 additions and 22 deletions

View file

@ -77,6 +77,9 @@ interface Window : EventTarget {
[Replaceable] readonly attribute long outerHeight;
[Replaceable] readonly attribute double devicePixelRatio;
// https://w3c.github.io/selection-api/#extensions-to-window-interface
Selection? getSelection();
// FIXME: Everything from here on should be shared through WindowOrWorkerGlobalScope
// https://w3c.github.io/hr-time/#the-performance-attribute
[Replaceable] readonly attribute Performance performance;