The Wayback Machine - https://web.archive.org/web/20150926060626/https://developer.mozilla.org/ja/docs/Web/API/CSSStyleRule

Join MDN and developers like you at Mozilla's View Source conference, November 2-4 in Portland, Oregon. Learn more at https://viewsourceconf.org/.

CSSStyleRule

by 8 contributors:
この記事はまだ日本語に翻訳されていません。MDN の翻訳はボランティアによって行われています。是非 MDN に登録し、私たちの力になって下さい。

CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).

Syntax

The syntax is described using the WebIDL format.

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

Properties

CSSStyleRule.selectorText
Gets the textual representation of the selector for this rule, e.g. "h1,h2".
CSSStyleRule.style Read only
Returns the CSSStyleDeclaration object for the rule. Read only.

Specification

Specification Status Comment
CSS Object Model (CSSOM)
The definition of 'CSSStyleRule' in that specification.
Working Draft No changes
Document Object Model (DOM) Level 2 Style Specification
The definition of 'CSSRule' in that specification.
Recommendation  

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) (Yes)
 
(Yes) (Yes) (Yes)

See also

ドキュメントのタグと貢献者

Contributors to this page: fscholz, harth, QFish, teoli, kscarfone, Sheppy, rioter, Sevenspade
最終更新者: fscholz,