From 8319c71e03614eb38c25a878a471118a5a49c749 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 22 Jul 2019 13:36:08 +0300 Subject: [PATCH] minor --- .../6-shadow-dom-style/article.md | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/8-web-components/6-shadow-dom-style/article.md b/8-web-components/6-shadow-dom-style/article.md index 66e5cc13..2be81fbb 100644 --- a/8-web-components/6-shadow-dom-style/article.md +++ b/8-web-components/6-shadow-dom-style/article.md @@ -1,6 +1,6 @@ # Shadow DOM styling -Shadow DOM may include both `
Name:
@@ -321,8 +322,8 @@ Local styles can affect: - slotted elements (coming from light DOM), `::slotted(selector)` allows to select slotted elements themselves, but not their children. Document styles can affect: -- shadow host (as it's in the outer document) -- slotted elements and their contents (as it's physically in the outer document) +- shadow host (as it lives in the outer document) +- slotted elements and their contents (as that's also in the outer document) When CSS properties conflict, normally document styles have precedence, unless the property is labelled as `!important`. Then local styles have precedence.