You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1749,7 +1736,7 @@ To <dfn>insert a CSS rule</dfn> <var>rule</var> in a CSS rule list <var>list</va
1749
1736
a {{HierarchyRequestError}} exception. [[!CSS21]]
1750
1737
Note: For example, a CSS style sheet cannot contain an <code>@import</code> at-rule after a style rule.
1751
1738
<li>If <var>new rule</var> is an <code>@namespace</code> at-rule, and <var>list</var> contains anything other than
1752
-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1739
+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1753
1740
<a>throw</a> an {{InvalidStateError}} exception.
1754
1741
<li>Insert <var>new rule</var> into <var>list</var> at the zero-indexed position <var>index</var>.
1755
1742
<li>Return <var>index</var>.
@@ -1762,7 +1749,7 @@ To <dfn>remove a CSS rule</dfn> from a CSS rule list <var>list</var> at index <v
1762
1749
an {{IndexSizeError}} exception.
1763
1750
<li>Set <var>old rule</var> to the <var>index</var>th item in <var>list</var>.
1764
1751
<li>If <var>old rule</var> is an <code>@namespace</code> at-rule, and <var>list</var> contains anything other than
1765
-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1752
+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
1766
1753
<a>throw</a> an {{InvalidStateError}} exception.
1767
1754
<li>Remove rule <var>old rule</var> from <var>list</var> at the zero-indexed position <var>index</var>.
1768
1755
<li>Set <var>old rule</var>'s <a lt=concept-css-rule-parent-css-rule>parent CSS rule</a> and
@@ -1808,7 +1795,7 @@ inherits from this interface.
1808
1795
1809
1796
<pre class=idl>interface CSSRule {
1810
1797
const unsigned short STYLE_RULE = 1;
1811
-
const unsigned short CHARSET_RULE = 2;
1798
+
const unsigned short CHARSET_RULE = 2; // historical
1812
1799
const unsigned short IMPORT_RULE = 3;
1813
1800
const unsigned short MEDIA_RULE = 4;
1814
1801
const unsigned short FONT_FACE_RULE = 5;
@@ -1826,8 +1813,6 @@ The <dfn attribute for=CSSRule>type</dfn> attribute must return the CSS rule typ
1826
1813
<dl class=switch>
1827
1814
<dt>If the object is a {{CSSStyleRule}}
1828
1815
<dd>Return <dfn const for=CSSRule>STYLE_RULE</dfn> (numeric value 1).
1829
-
<dt>If the object is a {{CSSCharsetRule}}
1830
-
<dd>Return <dfn const for=CSSRule>CHARSET_RULE</dfn> (numberic value 2).
1831
1816
<dt>If the object is a {{CSSImportRule}}
1832
1817
<dd>Return <dfn const for=CSSRule>IMPORT_RULE</dfn> (numberic value 3).
1833
1818
<dt>If the object is a {{CSSMediaRule}}
@@ -1918,19 +1903,6 @@ The <dfn lt=concept-declarations-specified-order>specified order</dfn> for decla
1918
1903
expanded into their longhand properties, in canonical order. If a property is specified more than once (after shorthand expansion), only the
1919
1904
one with greatest cascading order must be represented, at the same relative position as it was specified. [[!CSS3CASCADE]]
1920
1905
1921
-
### The {{CSSCharsetRule}} Interface ### {#the-csscharsetrule-interface}
1922
-
1923
-
Issue: The <code>CSSCharsetRule</code> is being considered for removal. See <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27422">bug 27422</a>.
1924
-
1925
-
The <code>CSSCharsetRule</code> interface represents an <code>@charset</code> at-rule.
The <dfn attribute for=CSSCharsetRule>encoding</dfn> attribute must return the encoding information specified by the
1932
-
<code>@charset</code> at-rule.
1933
-
1934
1906
1935
1907
### The {{CSSImportRule}} Interface ### {#the-cssimportrule-interface}
1936
1908
@@ -2069,7 +2041,7 @@ On setting, the {{CSSNamespaceRule/namespaceURI}} attribute must run the followi
2069
2041
<li>Let <var>list</var> be the <a lt=concept-css-style-sheet-css-rules>CSS rules</a> of <var>parent</var>, or
2070
2042
null if <var>parent</var> is null.
2071
2043
<li>If <var>list</var> is not null and contains anything other than
2072
-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2044
+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2073
2045
<a>throw</a> an {{InvalidStateError}} exception.
2074
2046
<li>Set the namespace of the <code>@namespace</code> at-rule to the given value.
2075
2047
</ol>
@@ -2084,7 +2056,7 @@ On setting, the {{CSSNamespaceRule/prefix}} attribute must run the following ste
2084
2056
<li>Let <var>list</var> be the <a lt=concept-css-style-sheet-css-rules>CSS rules</a> of <var>parent</var>, or
2085
2057
null if <var>parent</var> is null.
2086
2058
<li>If <var>list</var> is not null and contains anything other than
2087
-
<code>@charset</code> at-rules, <code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2059
+
<code>@import</code> at-rules, and <code>@namespace</code> at-rules,
2088
2060
<a>throw</a> an {{InvalidStateError}} exception.
2089
2061
<li>Set the prefix of the <code>@namespace</code> at-rule to the given value.
2090
2062
</ol>
@@ -3188,6 +3160,12 @@ Change History {#change-history}
3188
3160
This section documents some of the changes between publications of this specification. This section is not exhaustive. Bug fixes and editorial changes are
3189
3161
generally not listed.
3190
3162
3163
+
<!--
3164
+
3165
+
CSSCharsetRule is re-dropped.
3166
+
3167
+
-->
3168
+
3191
3169
Changes From 12 July 2011 To 5 December 2013 {#changes-from-12-july-2011-to-5-december-2013}
0 commit comments