mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests Fix spec links to use actual anchors that exists -- wpt-commits: 0e1bcae7f14564f0946484c9e8021b0a6fdcb68d wpt-pr: 19718
25 lines
702 B
HTML
25 lines
702 B
HTML
<!doctype html>
|
|
<title>CSS Pseudo Element API IDL tests</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#cssom">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/WebIDLParser.js"></script>
|
|
<script src="/resources/idlharness.js"></script>
|
|
<script>
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['css-pseudo'],
|
|
['cssom', 'html', 'dom'],
|
|
idl_array => {
|
|
idl_array.add_objects({
|
|
Window: ['window'],
|
|
CSSPseudoElementList: ['beforeElements'],
|
|
CSSPseudoElement: ['beforeElements.item(0)'],
|
|
});
|
|
|
|
window.beforeElements =
|
|
window.getPseudoElements(document.body, 'before');
|
|
}
|
|
);
|
|
</script>
|