回答編集履歴
3
修正内容が反映されない為、再度編集を適用(変更点なし)
answer
CHANGED
File without changes
|
2
DOM Standardのリンク追加
answer
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
|
18
18
|
**shadow DOM**は、DOMツリー上から隠れたDOMですので、CSSの適用範囲外となります。
|
19
19
|
|
20
|
+
- [4.8. ShadowRoot インタフェース - DOM Standard 日本語訳](https://triple-underscore.github.io/DOM4-ja.html#interface-shadowroot)
|
21
|
+
- [4.8. Interface ShadowRoot - DOM Standard](https://dom.spec.whatwg.org/#interface-shadowroot)
|
20
22
|
- [shadow DOM の使い方 - Web Components | MDN](https://developer.mozilla.org/ja/docs/Web/Web_Components/Using_shadow_DOM)
|
21
23
|
- [Shadow DOM v1: 自己完結型ウェブ コンポーネント | Web | Google Developers](https://developers.google.com/web/fundamentals/web-components/shadowdom?hl=ja)
|
22
24
|
|
1
typo修正
answer
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
### CSSのスコープ
|
2
2
|
|
3
3
|
CSSはCSSを宣言したのと同じDOMツリー上の全ての要素に影響します。
|
4
|
-
従って、ご質問の例であれば、通常はセレクタ
|
4
|
+
従って、ご質問の例であれば、通常は**セレクタを2つ作成**して、適用範囲を分割します。
|
5
5
|
|
6
6
|
```CSS
|
7
7
|
:not(p.title-sub) {
|