mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
Implement client{Top, Left, Height, Width} element properties
This commit is contained in:
parent
acf47a02cf
commit
162ecd0aac
8 changed files with 214 additions and 1 deletions
|
@ -59,6 +59,11 @@ interface Element : Node {
|
|||
partial interface Element {
|
||||
DOMRectList getClientRects();
|
||||
DOMRect getBoundingClientRect();
|
||||
|
||||
readonly attribute long clientTop;
|
||||
readonly attribute long clientLeft;
|
||||
readonly attribute long clientWidth;
|
||||
readonly attribute long clientHeight;
|
||||
};
|
||||
|
||||
// https://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue