Search completed in 1.35 seconds.
5 results for "cssimportrule":
CSSStyleSheet - Web APIs
s that comprise the stylesheet. This is normally used to access individual rules like this: styleSheet.cssRules[i] // where i = 0..cssRules.length-1 To add or remove items in cssRules, use the CSSStyleSheet's insertRule() and deleteRule() methods. ownerRule Read only If this stylesheet is imported into the document using an @import rule, the ownerRule property returns the corresponding
CSSImportRule; otherwise, this property's value is null. Methods Inherits methods from its parent, StyleSheet. deleteRule() Deletes the rule at the specified index into the stylesheet's rule list. insertRule() Inserts a new rule at the specified position in the stylesheet, given the textual representation of the rule. Legacy properties These properties are legacy properties first introduced by Micr...
...Notes In some browsers, if a stylesheet is loaded from a different domain, accessing cssRules results in SecurityError. A stylesheet is associated with at most one Document, which it applies to (unless disabled). A list of CSSStyleSheet objects for a given document can be obtained using the document.styleSheets property. A specific style sheet can also be accessed from its owner object (Node or
CSSImportRule), if any. A CSSStyleSheet object is created and inserted into the document's Document.styleSheets list automatically by the browser, when a stylesheet is loaded for a document. As the stylesheet list cannot be modified directly, there's no useful way to create a new CSSStyleSheet object manually (although Constructable Stylesheet Objects is coming to the web platform soon and is already supporte...
... Getting the owner element/rule given the style sheet object The interface for the owner object Getting the CSSStyleSheet object from the owner <style> and <link> elements in the document Yes .ownerNode HTMLLinkElement, HTMLStyleElement, or SVGStyleElement .sheet CSS @import rule in other style sheets applied to the document Yes .ownerRule
CSSImportRule .styleSheet <?xml-stylesheet ?> processing instruction in the (non-HTML) document Yes .ownerNode ProcessingInstruction .sheet HTTP Link Header Yes N/A N/A N/A User agent (default) style sheets No N/A N/A N/A Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'CSSSty...
CSSRule - Web APIs
e property to discern the rule type (and therefore, which specialized interface it implements). ...
...s and the interfaces are: Type Value Rule-specific interface Comments and examples CSSRule.STYLE_RULE 1 CSSStyleRule The most common kind of rule: selector { prop1: val1; prop2: val2; } CSSRule.IMPORT_RULE 3
CSSImportRule An @import rule. ...
CSSStyleSheet.ownerRule - Web APIs
If the stylesheet wasn't imported into the document using @import, the returned value is null. Examples This snippet of code looks for rules which were not imported into the document using an @import at-rule. ...
...If the stylesheet wasn't imported into the document using @import, the returned value is null. Examples This snippet of code looks for rules which were not imported into the document using an @import at-rule. ...
CSS Object Model (CSSOM) - Web APIs
The CSS Object Model is a set of APIs allowing the manipulation of CSS from JavaScript. It is much like the DOM, but for the CSS rather than the HTML. It allows users to read and modify CSS style dynamically. ...
Index - Web APIs
, CSSStyleSheet, Method, Reference The CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet, with some restrictions. 474 CSSStyleSheet.ownerRule @import, API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Object Model, Property, Read-only, Reference, StyleSheet, import, ownerRule The read-only CSSStyleSheet property ownerRule returns the
CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document. 475 CSSStyleSheet.removeRule() API, CSS, CSSOM, CSSOM API, CSSStyleSheet, Layout, Method, Object Model, Obsolete, Reference, Rule, StyleSheet, delete, legacy, remove, removeRule The obsolete CSSStyleSheet method removeRule() removes a rule from the stylesheet object. 476 CSSStyleS...