mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement TimeRanges interface
This commit is contained in:
parent
662fd0afa4
commit
664d5cd2fa
9 changed files with 281 additions and 28 deletions
12
components/script/dom/webidls/TimeRanges.webidl
Normal file
12
components/script/dom/webidls/TimeRanges.webidl
Normal file
|
@ -0,0 +1,12 @@
|
|||
/* 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 http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://html.spec.whatwg.org/multipage#time-ranges
|
||||
|
||||
[Exposed=Window]
|
||||
interface TimeRanges {
|
||||
readonly attribute unsigned long length;
|
||||
[Throws] double start(unsigned long index);
|
||||
[Throws] double end(unsigned long index);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue