summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/custom-state-pseudo-class/idlharness.window.js
blob: d5d40c54616745c6110078d34c591d6d07a92fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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;
  }
);