stylesheet

リンク型 stylesheet (HTML)

[3] 連結型 stylesheet は、 スタイル・シートとして連結することを表します。

alternate stylesheet

[5] 連結型 alternate と組み合わせた alternate stylesheet は、 代替スタイル・シートへの連結を表します。

属性

link も参照。

[1] (他のリンク型には適用されるとは限らない) stylesheet に適用される link 要素属性:

[2] as, sizes は適用されません。

[4]

<link rel="stylesheet" href="path/to/style" media="all" />

この例では、この要素が含まれる HTML 文書にスタイル・シート path/to/style を関連付けます。

歴史

[19] draft-ietf-html-style-00, https://datatracker.ietf.org/doc/html/draft-ietf-html-style-00

[20] draft-ietf-html-style-01, https://datatracker.ietf.org/doc/html/draft-ietf-html-style-01

[10] 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 ( ( 版)) http://html5.org/tools/web-apps-tracker?from=5352&to=5353

[11] RFC 5988 - Web Linking ( ( 版)) http://tools.ietf.org/html/rfc5988#page-15

[12] [whatwg] Proposal for change in recommendation for loading behavior of non-applicable stylesheets ( ( 版)) http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-August/037025.html

[13] Allow pingback/prefetch/stylesheet links in body · whatwg/html@179983e ( 版) https://github.com/whatwg/html/commit/179983e9eb99efe417349a40ebb664bd11668ddd

[14] Do not fetch stylesheets in documents without a browsing context (domenic著, ) https://github.com/whatwg/html/commit/76440ea7fea41e76cfebf19364f6c6f7d7d01e1e

[15] Make <link rel="stylesheet"> work inside shadow trees (domenic著, ) https://github.com/whatwg/html/commit/43c57866c2bbc20dc0deb15a721a28cbaad2140c

[16] Upstream SRI's 'integrity' attribute (mikewest著, ) https://github.com/whatwg/html/commit/4c5066c171610e0c8300a58baf4f94816044cedc

[6] 1290276 - stylo: XBL <stylesheet> support () https://bugzilla.mozilla.org/show_bug.cgi?id=1290276

[7] Improve <style> and <script> processing and conformance (domenic著, ) https://github.com/whatwg/html/commit/9c612ac8641b5174849a2d3cb924fe662a8d3a09

[8] Should we remove <style>'s language-agnostic spec prose? · Issue #2995 · whatwg/html () https://github.com/whatwg/html/issues/2995

[9] It's not clear how a style sheet's CSS rules are obtained · Issue #2997 · whatwg/html () https://github.com/whatwg/html/issues/2997

[17] Improve <style> and <script> processing and conformance by domenic · Pull Request #3024 · whatwg/html () https://github.com/whatwg/html/pull/3024

[18] Editorial: spell stylesheet as style sheet consistently by annevk · Pull Request #3673 · whatwg/html () https://github.com/whatwg/html/pull/3673