CSSStyleRule
representa una sola regla de estilos CSS. Implementa la interfaz 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
CSSStyleRule.selectorText
- Obtiene la representación textual del selector para esta regla, e.g.
"h1,h2"
. CSSStyleRule.style
Read only- Retorna el objeto
CSSStyleDeclaration
para la regla. Sólo lectura.
Especificaciones
Especificación | Estatus | Comentario |
---|---|---|
CSS Object Model (CSSOM) La definición de 'CSSStyleRule' en esta especificación. |
Working Draft | Sin cambios |
Document Object Model (DOM) Level 2 Style Specification La definición de 'CSSRule' en esta especificación. |
Obsolete |
Compatibilidad entre Navegadores
Para obtener informacion de compatibilidad en los distintos navegadores, por favor consulta la tabla de compatibilidad de la interfaz asociada.
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Soporte Básico | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Característica | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Soporte Básico | (Yes) | (Yes) |
(Yes) | (Yes) | (Yes) |