@@ -2015,40 +2015,16 @@ margin at-rule, with the following properties:
20152015The <code> CSSNamespaceRule</code> interface represents an <code> @namespace</code> at-rule.
20162016
20172017<pre class=idl> interface CSSNamespaceRule : CSSRule {
2018- [TreatNullAs=EmptyString] attribute DOMString namespaceURI;
2019- [TreatNullAs=EmptyString] attribute DOMString prefix;
2018+ readonly attribute DOMString namespaceURI;
2019+ readonly attribute DOMString prefix;
20202020};</pre>
20212021
2022- The <dfn attribute for=CSSNamespaceRule>namespaceURI</dfn> attribute, on getting, must return the namespace of the
2022+ The <dfn attribute for=CSSNamespaceRule>namespaceURI</dfn> attribute must return the namespace of the
20232023<code> @namespace</code> at-rule.
20242024
2025- On setting, the {{CSSNamespaceRule/namespaceURI}} attribute must run the following steps:
2026-
2027- <ol>
2028- <li> Let <var> parent</var> be the <a for=CSSRule>parent CSS style sheet</a> .
2029- <li> Let <var> list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var> parent</var> , or
2030- null if <var> parent</var> is null.
2031- <li> If <var> list</var> is not null and contains anything other than
2032- <code> @import</code> at-rules, and <code> @namespace</code> at-rules,
2033- <a>throw</a> an {{InvalidStateError}} exception.
2034- <li> Set the namespace of the <code> @namespace</code> at-rule to the given value.
2035- </ol>
2036-
20372025The <dfn attribute for=CSSNamespaceRule>prefix</dfn> attribute must return the prefix of the <code> @namespace</code> at-rule or the
20382026empty string if there is no prefix.
20392027
2040- On setting, the {{CSSNamespaceRule/prefix}} attribute must run the following steps:
2041-
2042- <ol>
2043- <li> Let <var> parent</var> be the <a for=CSSRule>parent CSS style sheet</a> .
2044- <li> Let <var> list</var> be the <a for=CSSStyleSheet>CSS rules</a> of <var> parent</var> , or
2045- null if <var> parent</var> is null.
2046- <li> If <var> list</var> is not null and contains anything other than
2047- <code> @import</code> at-rules, and <code> @namespace</code> at-rules,
2048- <a>throw</a> an {{InvalidStateError}} exception.
2049- <li> Set the prefix of the <code> @namespace</code> at-rule to the given value.
2050- </ol>
2051-
20522028
20532029CSS Declarations {#css-declarations}
20542030------------------------------------
0 commit comments