From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/api/cssstylerule/index.html | 105 +++++++++++++++++++++ .../web/api/cssstylerule/selectortext/index.html | 23 +++++ 2 files changed, 128 insertions(+) create mode 100644 files/es/web/api/cssstylerule/index.html create mode 100644 files/es/web/api/cssstylerule/selectortext/index.html (limited to 'files/es/web/api/cssstylerule') diff --git a/files/es/web/api/cssstylerule/index.html b/files/es/web/api/cssstylerule/index.html new file mode 100644 index 0000000000..1026c9af82 --- /dev/null +++ b/files/es/web/api/cssstylerule/index.html @@ -0,0 +1,105 @@ +--- +title: CSSStyleRule +slug: Web/API/CSSStyleRule +tags: + - API +translation_of: Web/API/CSSStyleRule +--- +

{{ APIRef("CSSOM") }}

+ +

CSSStyleRule representa una sola regla de estilos CSS. Implementa la interfaz {{domxref("CSSRule")}} with a type value of 1 (CSSRule.STYLE_RULE).

+ +

Sintaxis

+ +

La sintaxis es descrita usando el formato WebIDL.

+ +
interface CSSStyleRule : CSSRule {
+    attribute DOMString selectorText;
+    readonly attribute CSSStyleDeclaration style;
+};
+ +

Propiedades

+ +
+
{{domxref("CSSStyleRule.selectorText")}}
+
Obtiene la representación textual del selector para esta regla, e.g. "h1,h2".
+
{{domxref("CSSStyleRule.style")}} {{readonlyinline}}
+
Retorna el objeto {{domxref("CSSStyleDeclaration")}} para la regla. Sólo lectura.
+
+ +

Especificaciones

+ + + + + + + + + + + + + + + + + + + + + +
EspecificaciónEstatusComentario
{{ SpecName('CSSOM', '#the-cssstylerule-interface', 'CSSStyleRule') }}{{ Spec2('CSSOM') }}Sin cambios
{{ SpecName('DOM2 Style', 'css.html#CSS-CSSStyleRule', 'CSSRule') }}{{ Spec2('DOM2 Style') }} 
+ +

Compatibilidad entre Navegadores

+ +

Para obtener informacion de compatibilidad en los distintos navegadores, por favor consulta la tabla de compatibilidad de la interfaz asociada.

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Soporte Básico{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
CaracterísticaAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Soporte Básico{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
+  
{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}{{ CompatVersionUnknown() }}
+
diff --git a/files/es/web/api/cssstylerule/selectortext/index.html b/files/es/web/api/cssstylerule/selectortext/index.html new file mode 100644 index 0000000000..56dec42a94 --- /dev/null +++ b/files/es/web/api/cssstylerule/selectortext/index.html @@ -0,0 +1,23 @@ +--- +title: CssRule.selectorText +slug: Web/API/CSSStyleRule/selectorText +translation_of: Web/API/CSSStyleRule/selectorText +--- +

{{ ApiRef() }}

+

Resumen

+

selectorText recoge/establece la representación en forma de texto, del selector para el grupo de reglas.

+

Sintaxis

+
string = cssRule.selectorText
+cssRule.selectorText = string
+
+

Ejemplo

+
 // for cssrule: body { background-color: darkblue; }
+ cssrule = document.styleSheets[1]
+ !!TODO!!
+ selector = cssrule.selectorText;
+ // selector is now "body"
+
+

Notas

+

La implementación puede haber eliminado espacios en blanco no significativos, en el momento de comprobar el selector.

+

Especificación

+

DOM Level 2 Style - cssRule

-- cgit v1.2.3-54-g00ecf