Skip to content

Commit 58c93f5

Browse files
inizio
1 parent ff371eb commit 58c93f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

8-web-components/6-shadow-dom-style/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Shadow DOM styling
22

3-
Shadow DOM may include both `<style>` and `<link rel="stylesheet" href="…">` tags. In the latter case, stylesheets are HTTP-cached, so they are not redownloaded for multiple components that use same template.
3+
Lo shadow DOM può includere sia `<style>` che tags `<link rel="stylesheet" href="…">`. Nel secondo caso, i fogli di stili sono HTTP-cached, quindi non verranno ricaricati per più componenti che usino lo stesso template.
44

5-
As a general rule, local styles work only inside the shadow tree, and document styles work outside of it. But there are few exceptions.
5+
Come regola generale, gli stili locali hanno effetto solamente all'interno dello shadow tree, e gli stili del documento hanno effetto al di fuori di esso. Con qualche eccezione.
66

77
## :host
88

9-
The `:host` selector allows to select the shadow host (the element containing the shadow tree).
9+
Il selettore `:host` permette di selezionare lo shadow host (l'elemento contenten lo shadow tree).
1010

1111
For instance, we're making `<custom-dialog>` element that should be centered. For that we need to style the `<custom-dialog>` element itself.
1212

0 commit comments

Comments
 (0)