mirror of
https://github.com/servo/servo
synced 2026-05-02 20:32:02 +02:00
Issue 12343: Add pref-gated methods and test for activatable element states
This commit is contained in:
15
components/script/dom/webidls/ActivatableElement.webidl
Normal file
15
components/script/dom/webidls/ActivatableElement.webidl
Normal file
@@ -0,0 +1,15 @@
|
||||
/* 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/. */
|
||||
|
||||
// Interface for testing element activation
|
||||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
[Exposed=(Window,Worker), NoInterfaceObject]
|
||||
interface ActivatableElement {
|
||||
[Throws, Pref="dom.testing.element.activation.enabled"]
|
||||
void enterFormalActivationState();
|
||||
|
||||
[Throws, Pref="dom.testing.element.activation.enabled"]
|
||||
void exitFormalActivationState();
|
||||
};
|
||||
Reference in New Issue
Block a user