blob: 15db3276fb43d690c492d71eab995a4c9a5c0bc4 [file] [log] [blame]
<!doctype html>
<meta charset=utf-8>
<title>CSSVariableReferenceValue IDL</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue">
<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 type="text/plain" id="idl">
[Constructor(DOMString variable, optional CSSUnparsedValue fallback)]
interface CSSVariableReferenceValue {
attribute DOMString variable;
readonly attribute CSSUnparsedValue? fallback;
};
</script>
<script>
'use strict';
const idlArray = new IdlArray();
idlArray.add_idls(document.getElementById('idl').textContent);
idlArray.add_objects({
CSSVariableReferenceValue: [
'new CSSVariableReferenceValue("--foo")',
]
});
idlArray.test();
</script>