mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
implement basic infra for ResizeObserver (#31108)
This commit is contained in:
parent
3c1c395dfc
commit
3d78d60619
29 changed files with 706 additions and 4 deletions
14
components/script/dom/webidls/ResizeObserverEntry.webidl
Normal file
14
components/script/dom/webidls/ResizeObserverEntry.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* 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/resize-observer/#resize-observer-entry-interface
|
||||
|
||||
[Pref="dom.resize_observer.enabled", Exposed=Window]
|
||||
interface ResizeObserverEntry {
|
||||
readonly attribute Element target;
|
||||
readonly attribute DOMRectReadOnly contentRect;
|
||||
readonly attribute /*FrozenArray<ResizeObserverSize>*/any borderBoxSize;
|
||||
readonly attribute /*FrozenArray<ResizeObserverSize>*/any contentBoxSize;
|
||||
readonly attribute /*FrozenArray<ResizeObserverSize>*/any devicePixelContentBoxSize;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue