-
Notifications
You must be signed in to change notification settings - Fork 4
/
278.txt
75 lines (54 loc) · 3.1 KB
/
278.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[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]] を関連付けます。
* 歴史
[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>