/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
components/script_bindings/webidls/VisualViewport.webidl
23 строки
746 B
Steven Novaryo
script: Add stub `VisualViewport` Interface (#41372)
23 дек 2025, 12:56
Не верифицирован
23 дек 2025, 12:56
b68d277
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // https://drafts.csswg.org/cssom-view/#the-visualviewport-interface [Pref="dom_visual_viewport_enabled", Exposed=Window] interface VisualViewport : EventTarget { readonly attribute double offsetLeft; readonly attribute double offsetTop; readonly attribute double pageLeft; readonly attribute double pageTop; readonly attribute double width; readonly attribute double height; readonly attribute double scale; attribute EventHandler onresize; attribute EventHandler onscroll; attribute EventHandler onscrollend; };