[3] [[連結型]] [DFN[[CODE(HTML)[stylesheet]]]] は、
[[スタイル・シート]]として[[連結]]することを表します。

* [CODE[alternate stylesheet]]

[5] 連結型 [CODE(HTML)[[[alternate]]]] と組み合わせた
[CODE(HTML)[[[alternate stylesheet]]]] は、
[[代替スタイル・シート]]への連結を表します。

* 属性

;; [CODE(HTMLe)@en[link]] も参照。

[1] (他の[[リンク型]]には適用されるとは限らない) [CODE(HTML)@en[stylesheet]]
に適用される [CODE(HTMLe)@en[link]] [[要素]]の[[属性]]:
[FIG(short list)[
- [CODE(HTMLa)@en[integrity]]
- [CODE(HTMLa)@en[media]]
- [CODE(HTMLa)@en[title][title=""]]
]FIG]

[2] [CODE(HTMLa)@en[as][as=""]], [CODE(HTMLa)@en[sizes]] は適用されません。

* 例

[4]
[PRE(HTML)[
<[CODE(HTMLe)[[[link]]]] [CODE(HTMLa)[[[rel]]]]="'''stylesheet'''" href="path/to/style" [CODE(HTMLa)[[[media]]]]="[[all]]" />
]PRE]

この例では、この要素が含まれる HTML 文書にスタイル・シート
[SAMP(URI)[path/to/style]] を関連付けます。

* 歴史

[19] [CITE@en[draft-ietf-html-style-00]], [TIME[2024-09-28T04:41:08.000Z]] <https://datatracker.ietf.org/doc/html/draft-ietf-html-style-00>

[20] [CITE@en[draft-ietf-html-style-01]], [TIME[2024-09-28T04:41:21.000Z]] <https://datatracker.ietf.org/doc/html/draft-ietf-html-style-01>


[10] [CITE@en[Web Applications 1.0 r5353     rel=stylesheet should only override HTTP same-origin, to avoid cross-origin data theftFixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9834]]
( ([TIME[2010-08-26 10:46:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=5352&to=5353>

[11] [CITE@en[RFC 5988 - Web Linking]]
( ([TIME[2012-03-22 09:19:11 +09:00]] 版))
<http://tools.ietf.org/html/rfc5988#page-15>

[12] [CITE[''''''[''''''whatwg'''''']'''''' Proposal for change in recommendation for loading behavior of non-applicable stylesheets]]
( ([TIME[2012-08-28 22:40:22 +09:00]] 版))
<http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-August/037025.html>

[13] [CITE@en[Allow pingback/prefetch/stylesheet links in body · whatwg/html@179983e]]
([TIME[2016-03-04 21:32:44 +09:00]] 版)
<https://github.com/whatwg/html/commit/179983e9eb99efe417349a40ebb664bd11668ddd>

[14] [CITE@en[Do not fetch stylesheets in documents without a browsing context]]
([[domenic]]著, [TIME[2016-07-19 18:13:34 +09:00]])
<https://github.com/whatwg/html/commit/76440ea7fea41e76cfebf19364f6c6f7d7d01e1e>

[15] [CITE@en[Make <link rel="stylesheet"> work inside shadow trees]]
([[domenic]]著, [TIME[2016-07-20 16:29:57 +09:00]])
<https://github.com/whatwg/html/commit/43c57866c2bbc20dc0deb15a721a28cbaad2140c>

[16] [CITE@en[Upstream SRI's 'integrity' attribute]]
([[mikewest]]著, [TIME[2016-11-03 22:33:16 +09:00]])
<https://github.com/whatwg/html/commit/4c5066c171610e0c8300a58baf4f94816044cedc>

[6] [CITE@en[1290276 - stylo: XBL <stylesheet> support]]
([TIME[2017-04-22 02:10:24 +09:00]])
<https://bugzilla.mozilla.org/show_bug.cgi?id=1290276>

[7] [CITE@en[Improve <style> and <script> processing and conformance]]
([[domenic]]著, [TIME[2017-09-14 18:42:48 +09:00]])
<https://github.com/whatwg/html/commit/9c612ac8641b5174849a2d3cb924fe662a8d3a09>

[8] [CITE@en[Should we remove <style>'s language-agnostic spec prose? · Issue #2995 · whatwg/html]]
([TIME[2017-09-19 22:41:31 +09:00]])
<https://github.com/whatwg/html/issues/2995>

[9] [CITE@en[It's not clear how a style sheet's CSS rules are obtained · Issue #2997 · whatwg/html]]
([TIME[2017-09-19 22:44:12 +09:00]])
<https://github.com/whatwg/html/issues/2997>

[17] [CITE@en[Improve <style> and <script> processing and conformance by domenic · Pull Request #3024 · whatwg/html]]
([TIME[2017-09-19 22:46:41 +09:00]])
<https://github.com/whatwg/html/pull/3024>

[18] [CITE@en[Editorial: spell stylesheet as style sheet consistently by annevk · Pull Request #3673 · whatwg/html]]
([TIME[2018-05-10 12:42:40 +09:00]])
<https://github.com/whatwg/html/pull/3673>