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
must define an <dfndata-dfn-type=dfndata-noexport="" id=environment-encoding0>environment encoding<aclass=self-linkhref=#environment-encoding0></a></dfn> for each such stylesheet,
493
492
which is used as a fallback when other encoding hints are not available or can not be used.
<pclass=note> Note: This is expected to move to a future version of <adata-biblio-type=informativedata-link-type=bibliohref=#css3cascadetitle=css3cascade>[CSS3CASCADE]</a>.
<p> For stylesheets referred to by an HTML <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet><code><link rel=stylesheet></code></a> element,
507
-
the <adata-link-type=dfnhref=#environment-encoding0title="environment encoding">environment encoding</a> is determined as follows:
508
-
509
-
<p><ul>
510
-
<li>
511
-
<ahref=http://encoding.spec.whatwg.org/#concept-encoding-get>Get an encoding</a><adata-biblio-type=normativedata-link-type=bibliohref=#encodingtitle=encoding>[ENCODING]</a>
512
-
for the value of the <code>charset</code> attribute of the element, if any.
513
-
If that does not return failure,
514
-
use the return value as the environment encoding.
515
-
516
-
<li>
517
-
Otherwise, use the encoding of the referring document.
518
-
</ul>
519
-
520
-
<pclass=note> Note: This is expected to move to the HTML spec.
521
-
522
-
<pclass=note> Note: Even though the HTML spec marks the <code>charset</code> attribute as obsolete,
523
-
implementations still consider it as of this writing (October 2013.)
<p> For stylesheets referred to by an <ahref=http://www.w3.org/TR/xml-stylesheet/#the-xml-stylesheet-processing-instruction><code>xml-stylesheet</code></a> processing instruction <adata-biblio-type=normativedata-link-type=bibliohref=#xmlstyletitle=xmlstyle>[XMLSTYLE]</a>,
A <ahref=http://unicode.org/glossary/#code_point>Unicode code point</a>.
1798
+
A <ahref=http://unicode.org/glossary/#code_point>Unicode code point</a>.<adata-biblio-type=normativedata-link-type=bibliohref=#unicodetitle=unicode>[UNICODE]</a>
1820
1799
Any value in the Unicode codespace; that is, the range of integers from 0 to (hexadecimal) 10FFFF.
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=css3cascadetitle=CSS3CASCADE><aclass=self-linkhref=#css3cascade></a>[CSS3CASCADE]<dd>Håkon Wium Lie; Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/>CSS Cascading and Inheritance Level 3</a>. 3 October 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/>http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/</a><dtid=encodingtitle=ENCODING><aclass=self-linkhref=#encoding></a>[ENCODING]<dd>Anne van Kesteren; Joshua Bell. <ahref=http://encoding.spec.whatwg.org/>Encoding</a>. Living Standard. URL: <ahref=http://encoding.spec.whatwg.org/>http://encoding.spec.whatwg.org/</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dtid=selecttitle=SELECT><aclass=self-linkhref=#select></a>[SELECT]<dd>Tantek Çelik; et al. <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a><dtid=xmlstyletitle=XMLSTYLE><aclass=self-linkhref=#xmlstyle></a>[XMLSTYLE]<dd>James Clark. <ahref=http://www.w3.org/1999/06/REC-xml-stylesheet-19990629>Associating Style Sheets with XML documents</a>. 29 June 1999. W3C Recommendation. URL: <ahref=http://www.w3.org/1999/06/REC-xml-stylesheet-19990629>http://www.w3.org/1999/06/REC-xml-stylesheet-19990629</a></dl></div>
4967
+
<divdata-fill-with=normative-references><dl><dtid=css21title=CSS21><aclass=self-linkhref=#css21></a>[CSS21]<dd>Bert Bos; et al. <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-CSS2-20110607>http://www.w3.org/TR/2011/REC-CSS2-20110607</a><dtid=css3cascadetitle=CSS3CASCADE><aclass=self-linkhref=#css3cascade></a>[CSS3CASCADE]<dd>Håkon Wium Lie; Elika J. Etemad; Tab Atkins Jr.. <ahref=http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/>CSS Cascading and Inheritance Level 3</a>. 3 October 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/>http://www.w3.org/TR/2013/CR-css-cascade-3-20131003/</a><dtid=encodingtitle=ENCODING><aclass=self-linkhref=#encoding></a>[ENCODING]<dd>Anne van Kesteren; Joshua Bell. <ahref=http://encoding.spec.whatwg.org/>Encoding</a>. Living Standard. URL: <ahref=http://encoding.spec.whatwg.org/>http://encoding.spec.whatwg.org/</a><dtid=rfc2119title=RFC2119><aclass=self-linkhref=#rfc2119></a>[RFC2119]<dd>S. Bradner. <ahref=http://www.ietf.org/rfc/rfc2119.txt>Key words for use in RFCs to Indicate Requirement Levels</a>. URL: <ahref=http://www.ietf.org/rfc/rfc2119.txt>http://www.ietf.org/rfc/rfc2119.txt</a><dtid=selecttitle=SELECT><aclass=self-linkhref=#select></a>[SELECT]<dd>Tantek Çelik; et al. <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>Selectors Level 3</a>. 29 September 2011. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2011/REC-css3-selectors-20110929/>http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</a><dtid=unicodetitle=UNICODE><aclass=self-linkhref=#unicode></a>[UNICODE]<dd>The Unicode Consortium. <ahref=http://www.unicode.org/standard/versions/enumeratedversions.html>The Unicode Standard</a>. 2012. Defined by: The Unicode Standard, Version 6.2.0 (Mountain View, CA: The Unicode Consortium, 2012. ISBN 978-1-936213-07-8), as updated from time to time by the publication of new versions URL: <ahref=http://www.unicode.org/standard/versions/enumeratedversions.html>http://www.unicode.org/standard/versions/enumeratedversions.html</a><dtid=xmlstyletitle=XMLSTYLE><aclass=self-linkhref=#xmlstyle></a>[XMLSTYLE]<dd>James Clark. <ahref=http://www.w3.org/1999/06/REC-xml-stylesheet-19990629>Associating Style Sheets with XML documents</a>. 29 June 1999. W3C Recommendation. URL: <ahref=http://www.w3.org/1999/06/REC-xml-stylesheet-19990629>http://www.w3.org/1999/06/REC-xml-stylesheet-19990629</a></dl></div>
<divdata-fill-with=informative-references><dl><dtid=css-variablestitle=CSS-VARIABLES><aclass=self-linkhref=#css-variables></a>[CSS-VARIABLES]<dd>Tab Atkins Jr.; Luke Macpherson; Daniel Glazman. <ahref=http://www.w3.org/TR/2013/WD-css-variables-20130620/>CSS Custom Properties for Cascading Variables Module Level 1</a>. 20 June 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css-variables-20130620/>http://www.w3.org/TR/2013/WD-css-variables-20130620/</a><dtid=css3-animationstitle=CSS3-ANIMATIONS><aclass=self-linkhref=#css3-animations></a>[CSS3-ANIMATIONS]<dd>Dean Jackson; et al. <ahref=http://www.w3.org/TR/2013/WD-css3-animations-20130219/>CSS Animations</a>. 19 February 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-animations-20130219/>http://www.w3.org/TR/2013/WD-css3-animations-20130219/</a><dtid=css3-conditionaltitle=CSS3-CONDITIONAL><aclass=self-linkhref=#css3-conditional></a>[CSS3-CONDITIONAL]<dd>L. David Baron. <ahref=http://www.w3.org/TR/2013/CR-css3-conditional-20130404/>CSS Conditional Rules Module Level 3</a>. 4 April 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-conditional-20130404/>http://www.w3.org/TR/2013/CR-css3-conditional-20130404/</a><dtid=cssomtitle=CSSOM><aclass=self-linkhref=#cssom></a>[CSSOM]<dd>Anne van Kesteren. <ahref=http://www.w3.org/TR/2011/WD-cssom-20110712/>CSSOM</a>. 12 July 2011. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2011/WD-cssom-20110712/>http://www.w3.org/TR/2011/WD-cssom-20110712/</a><dtid=mediaqtitle=MEDIAQ><aclass=self-linkhref=#mediaq></a>[MEDIAQ]<dd>Florian Rivoal. <ahref=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>Media Queries</a>. 19 June 2012. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/</a></dl></div>
4971
+
<divdata-fill-with=informative-references><dl><dtid=css-variablestitle=CSS-VARIABLES><aclass=self-linkhref=#css-variables></a>[CSS-VARIABLES]<dd>Tab Atkins Jr.; Luke Macpherson; Daniel Glazman. <ahref=http://www.w3.org/TR/2013/WD-css-variables-20130620/>CSS Custom Properties for Cascading Variables Module Level 1</a>. 20 June 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css-variables-20130620/>http://www.w3.org/TR/2013/WD-css-variables-20130620/</a><dtid=css3-animationstitle=CSS3-ANIMATIONS><aclass=self-linkhref=#css3-animations></a>[CSS3-ANIMATIONS]<dd>Dean Jackson; et al. <ahref=http://www.w3.org/TR/2013/WD-css3-animations-20130219/>CSS Animations</a>. 19 February 2013. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/WD-css3-animations-20130219/>http://www.w3.org/TR/2013/WD-css3-animations-20130219/</a><dtid=css3-conditionaltitle=CSS3-CONDITIONAL><aclass=self-linkhref=#css3-conditional></a>[CSS3-CONDITIONAL]<dd>L. David Baron. <ahref=http://www.w3.org/TR/2013/CR-css3-conditional-20130404/>CSS Conditional Rules Module Level 3</a>. 4 April 2013. W3C Candidate Recommendation. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2013/CR-css3-conditional-20130404/>http://www.w3.org/TR/2013/CR-css3-conditional-20130404/</a><dtid=cssomtitle=CSSOM><aclass=self-linkhref=#cssom></a>[CSSOM]<dd>Anne van Kesteren. <ahref=http://www.w3.org/TR/2011/WD-cssom-20110712/>CSSOM</a>. 12 July 2011. W3C Working Draft. (Work in progress.) URL: <ahref=http://www.w3.org/TR/2011/WD-cssom-20110712/>http://www.w3.org/TR/2011/WD-cssom-20110712/</a><dtid=htmltitle=HTML><aclass=self-linkhref=#html></a>[HTML]<dd>Ian Hickson. <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/>HTML</a>. Living Standard. URL: <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/>http://www.whatwg.org/specs/web-apps/current-work/multipage/</a><dtid=mediaqtitle=MEDIAQ><aclass=self-linkhref=#mediaq></a>[MEDIAQ]<dd>Florian Rivoal. <ahref=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>Media Queries</a>. 19 June 2012. W3C Recommendation. URL: <ahref=http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/>http://www.w3.org/TR/2012/REC-css3-mediaqueries-20120619/</a></dl></div>
Note: This is expected to move to a future version of [[CSS3CASCADE]].
339
343
340
-
<h4id="environment-encoding-html">
341
-
HTML</h4>
342
-
343
-
For stylesheets referred to by an HTML <ahref=http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#link-type-stylesheet><code><link rel=stylesheet></code></a> element,
344
-
the <a>environment encoding</a> is determined as follows:
345
-
346
-
<ul>
347
-
<li>
348
-
<ahref="http://encoding.spec.whatwg.org/#concept-encoding-get">Get an encoding</a> [[!ENCODING]]
349
-
for the value of the <code>charset</code> attribute of the element, if any.
350
-
If that does not return failure,
351
-
use the return value as the environment encoding.
352
-
353
-
<li>
354
-
Otherwise, use the encoding of the referring document.
355
-
</ul>
356
-
357
-
Note: This is expected to move to the HTML spec.
358
-
359
-
Note: Even though the HTML spec marks the <code>charset</code> attribute as obsolete,
360
-
implementations still consider it as of this writing (October 2013.)
0 commit comments