mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
20 lines
483 B
JavaScript
20 lines
483 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
class MyElement extends HTMLElement {};
|
|
customElements.define('my-element', MyElement);
|
|
|
|
idl_test(
|
|
['custom-state-pseudo-class'],
|
|
['html', 'wai-aria'],
|
|
idl_array => {
|
|
idl_array.add_objects({
|
|
CustomStateSet: [ 'customStateSet' ],
|
|
});
|
|
|
|
const myElement = document.createElement('my-element');
|
|
self.customStateSet = myElement.attachInternals().states;
|
|
}
|
|
);
|