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) |