diff --git a/8-web-components/6-shadow-dom-style/article.md b/8-web-components/6-shadow-dom-style/article.md index 83a6962fa..d9f065994 100644 --- a/8-web-components/6-shadow-dom-style/article.md +++ b/8-web-components/6-shadow-dom-style/article.md @@ -1,21 +1,21 @@ -# Shadow DOM styling +# Estilo Shadow DOM -Shadow DOM may include both ` ``` -...Then the `` would be without padding. +...Entonces el `` estaría sin padding. -It's very convenient, as we can setup "default" component styles in its `:host` rule, and then easily override them in the document. +Es muy conveniente, ya que podemos configurar estilos de componentes "predeterminados" en su regla `:host`, y luego sobreescribirlos fácilmente en el documento. -The exception is when a local property is labelled `!important`, for such properties, local styles take precedence. +La excepción es cuando una propiedad local está etiquetada como `!important`. Para tales propiedades, los estilos locales tienen prioridad. ## :host(selector) -Same as `:host`, but applied only if the shadow host matches the `selector`. +Igual que `:host`, pero se aplica solo si el shadow host coincide con el `selector`. -For example, we'd like to center the `` only if it has `centered` attribute: +Por ejemplo, nos gustaría centrar el `` solo si tiene el atributo `centered`: ```html run autorun="no-epub" untrusted height=80