blob: 6e0301093b194a1f3cd4428983d86d591ffb855b [file] [log] [blame]
<!doctype html>
<meta charset=utf-8>
<title>StylePropertyMap IDL</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap">
<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">
interface StylePropertyMapReadOnly {
CSSStyleValue? get(DOMString property);
sequence<CSSStyleValue> getAll(DOMString property);
boolean has(DOMString property);
iterable<DOMString, (CSSStyleValue or sequence<CSSStyleValue>)>;
sequence<DOMString> getProperties();
stringifier;
};
callback UpdateFunction = CSSStyleValue (CSSStyleValue oldValue);
interface StylePropertyMap : StylePropertyMapReadOnly {
void append(DOMString property, (CSSStyleValue or DOMString)... values);
void delete(DOMString property);
void set(DOMString property, (CSSStyleValue or DOMString)... values);
void update(DOMString property, UpdateFunction updateFunction);
};
partial interface Element {
StylePropertyMapReadOnly computedStyleMap();
};
partial interface CSSStyleRule {
[SameObject] readonly attribute StylePropertyMap styleMap;
};
partial interface Element {
[SameObject] readonly attribute StylePropertyMap attributeStyleMap;
};
</script>
<script>
'use strict';
const idlArray = new IdlArray();
idlArray.add_idls(document.getElementById('idl').textContent);
idlArray.add_untested_idls('interface Element {};');
idlArray.add_untested_idls('interface CSSStyleRule {};');
idlArray.test();
</script>