<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>歴史</h1><section><h1>HTML4 時代</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">著者</anchor>は、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML</anchor> 文書に<dfn><rubyb xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">代替スタイル・シート<rt xmlns="http://www.w3.org/1999/xhtml">alternate style sheet</rt></rubyb></dfn>として互いに排他的な<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">スタイル・シート</anchor>を幾つも指定することができます。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">利用者</anchor>はその中から好みに応じて好きなものを選ぶことができます。 <sup> [HTML 4] </sup></p><p>著者は、代替スタイルのうちの1つを<dfn><rubyb xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><anchor>優先スタイル</anchor>・シート<rt xmlns="http://www.w3.org/1999/xhtml">preferred style sheet</rt></rubyb></dfn>とできます。 <sup> [HTML 4] </sup></p><p>著者は、代替スタイルとは別に<dfn><rubyb xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><anchor>持続スタイル</anchor>・シート<rt xmlns="http://www.w3.org/1999/xhtml">persistent style sheet</rt></rubyb></dfn>を指定することができます。
<sup> [HTML 4] </sup></p><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[16]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTML 4</anchor> 14.3.1 Preferred and alternate style sheets
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.w3.org/TR/html4/present/styles.html#didx-style_sheet">http://www.w3.org/TR/html4/present/styles.html#didx-style_sheet</anchor-external></li></ul></refs><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="17" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[17]</anchor-end> 代替スタイルの例 <sup> [HTML 4] </sup>:<ul><li>小画面用に設計したスタイル・シート</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">弱視</anchor>利用者向けのスタイル・シート (大きな文字)</li></ul></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="18" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[18]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UA</anchor> は、利用者が代替スタイルを選択できるようにするべきです。
また、利用者が他のものを選ばない限り、優先スタイルを適用するべきです。
UA はどの代替スタイルを選んでも、持続スタイルをあわせて適用しなければなりません。
<sup> [HTML 4] </sup></p><p>UA は、利用者が著者のスタイル・シート
(優先スタイル・シートや持続スタイル・シートを含みます。) 
をすべて無効化できるようにするべきです。 <sup> [HTML 4] </sup></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="19" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[19]</anchor-end> 著者は複数の代替スタイル・シート (優先スタイル・シートを含みます。) 
を同じ名前で集団化することができます。利用者が名前付きスタイルを選択したら、
UA はその名前のスタイル・シートをすべて適用しなければなりません。</p></section></section><section><h1>実装</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="22" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[22]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Firefox</anchor> と <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IE</anchor> が対応しています (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UI</anchor> を提供しています)。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="21" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[21]</anchor-end> 最近の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Firefox</anchor> は標準では<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メニュー</anchor>が表示されず、 <kbd><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Alt</anchor></kbd> を押すと旧来の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">メニューバー</anchor>が表示されます。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">代替スタイルシート</anchor>の選択メニューは一応この旧来のメニューに残っていますが、
標準状態では表示されないので、一般の利用者は気付かないかもしれません。
<time>2015-10-09T13:08:58.300Z</time></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="23" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[23]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Chrome</anchor> は対応していません。 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Safari</anchor> もたぶん対応していません。</p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end> <em>代替スタイルシートに萌え〜</em> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://pc2.2ch.net/test/read.cgi/hp/991400015/">http://pc2.2ch.net/test/read.cgi/hp/991400015/</anchor-external></p><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Mozilla</anchor> 1.3 は代替スタイル・シートも (選択されてなくても) 取りに行くみたいです。</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">WinIE</anchor> 6.0 は代替スタイル・シートには見向きもしません。</li></ul><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <cite>CSS Print Profile</cite>
( (<time>2013-03-14 20:50:03 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.w3.org/TR/2013/NOTE-css-print-20130314/#section-conformance">http://www.w3.org/TR/2013/NOTE-css-print-20130314/#section-conformance</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite>IRC logs: freenode / #whatwg / 20130827</cite>
( (<time>2013-09-02 18:17:53 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://krijnhoetmer.nl/irc-logs/whatwg/20130827">http://krijnhoetmer.nl/irc-logs/whatwg/20130827</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <cite xml:lang="en">Web Applications 1.0 r8244 Browsers can't delay alt style sheets and remain Web compatible, apparently.</cite>
( (<time>2013-10-29 06:45:00 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://html5.org/tools/web-apps-tracker?from=8243&amp;to=8244">http://html5.org/tools/web-apps-tracker?from=8243&amp;to=8244</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <cite xml:lang="en-US">Alternative Style Sheets - CSS | MDN</cite>
(<time>2014-03-21 16:37:00 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets">https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite xml:lang="en-gb">The removal of the alternate stylesheet switcher • mozillaZine Forums</cite>
(<time>2015-10-09 21:35:52 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://forums.mozillazine.org/viewtopic.php?t=118119">http://forums.mozillazine.org/viewtopic.php?t=118119</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <cite xml:lang="en">257859 – <strong></strong>[<strong></strong>AltSS<strong></strong>]<strong></strong> Re-insert Alternate Stylesheet UI</cite>
(<time>2015-10-09 21:37:24 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=257859">https://bugzilla.mozilla.org/show_bug.cgi?id=257859</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <cite xml:lang="en">253722 – <strong></strong>[<strong></strong>AltSS<strong></strong>]<strong></strong> remove alternate stylesheet UI</cite>
(<time>2015-10-09 21:40:36 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=253722">https://bugzilla.mozilla.org/show_bug.cgi?id=253722</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> <cite xml:lang="en">216537 – Persist alternate stylesheet selection using content prefs</cite>
(<time>2015-10-09 21:41:03 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=216537">https://bugzilla.mozilla.org/show_bug.cgi?id=216537</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <cite xml:lang="en">83663 – back-end implementation to store Alternate style sheet settings <strong></strong>[<strong></strong>AltSS<strong></strong>]<strong></strong></cite>
(<time>2015-10-09 21:41:50 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=83663">https://bugzilla.mozilla.org/show_bug.cgi?id=83663</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> <cite xml:lang="en">126841 – alternate stylesheets (xsl) for xml</cite>
(<time>2015-10-09 21:42:43 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://bugzilla.mozilla.org/show_bug.cgi?id=126841">https://bugzilla.mozilla.org/show_bug.cgi?id=126841</anchor-external></p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> <cite xml:lang="ja">IE8 代替スタイルシート対応、Webデザイン指針に影響か | マイナビニュース</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Mynavi Corporation</anchor> 著, <time>2015-10-09 21:59:52 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://news.mynavi.jp/news/2008/12/19/005/">http://news.mynavi.jp/news/2008/12/19/005/</anchor-external></figcaption><blockquote><p>IEはこれまで代替スタイルシートをサポートしてこなかった。しかし同社は方針を変更し、IE8 Beta 2ではFirefox3のようなUIを追加。Page→Styleでスタイルが変更できるようになった。このUIは正式版でも提供される見通し。これまで最大シェアを誇るIEが代替スタイルシートに対応していなかったためか、代替スタイルシートを採用しているWebサイトは少ない。しかしIEが対応を表明したことで今後Webデザインの選択肢として代替スタイルシートが普及する可能性がある。</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="20" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[20]</anchor-end> <cite xml:lang="ja-JP">Internet Explorer のスタイルとは何ですか?</cite>
(<time>2015-10-03 02:00:45 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://windows.microsoft.com/ja-jp/windows7/what-are-internet-explorer-styles?no_redirect=true">http://windows.microsoft.com/ja-jp/windows7/what-are-internet-explorer-styles?no_redirect=true</anchor-external></figcaption><blockquote><p>Web 開発者はまた別のスタイルを提供することにより、自分の Web サイトに対して複数のスタイルを提供できます。Web サイトが別のスタイルを提供する場合、Web ページの書式を変更するか、またはスタイルを完全にオフにできます。</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="24" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[24]</anchor-end> <cite xml:lang="en">Re: <strong></strong>[<strong></strong>cssom<strong></strong>]<strong></strong> Drop support for alternative stylesheets?</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Simon Pieters</anchor> 著, <time>2013-08-30 07:11:21 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://lists.w3.org/Archives/Public/www-style/2013Aug/0640.html">https://lists.w3.org/Archives/Public/www-style/2013Aug/0640.html</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="25" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[25]</anchor-end> <cite xml:lang="en">Fix broken cross-references to CSSOM</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">zcorpan</anchor>著, <time>2016-08-16 02:08:59 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/4d76ef6a700019f391a912345dc5cbb4d7fecc60">https://github.com/whatwg/html/commit/4d76ef6a700019f391a912345dc5cbb4d7fecc60</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="26" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[26]</anchor-end> <cite xml:lang="en">Alternate Style Tags 1.1</cite>
(<time>2017-01-22 12:51:25 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.idpf.org/epub/altss-tags/">http://www.idpf.org/epub/altss-tags/</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="27" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[27]</anchor-end> <cite xml:lang="en">Alternate Style Tags 1.1</cite>
(<time>2017-01-22 12:51:25 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.idpf.org/epub/altss-tags/">http://www.idpf.org/epub/altss-tags/</anchor-external></p></section></body></html>