SVGStyleElement
The SVGStyleElement
interface corresponds to the SVG <style>
element.
Properties
This interface also inherits properties from its parent interface, SVGElement
.
SVGStyleElement.type
-
A string corresponding to the
type
attribute of the given element. SVGStyleElement.media
-
A string corresponding to the
media
attribute of the given element.SVG 1.1 defined that a
DOMException
is raised with codeNO_MODIFICATION_ALLOWED_ERR
on an attempt to change the value of a read-only attribute. This restriction was removed in SVG 2. SVGStyleElement.title
-
A string corresponding to the
title
attribute of the given element.SVG 1.1 defined that a
DOMException
is raised with codeNO_MODIFICATION_ALLOWED_ERR
on an attempt to change the value of a read-only attribute. This restriction was removed in SVG 2. SVGStyleElement.sheet
Read only-
Returns the
CSSStyleSheet
object associated with the given element, ornull
if there is none. SVGStyleElement.disabled
-
A boolean value indicating whether or not the associated stylesheet is disabled.
Methods
This interface doesn't implement any specific methods, but inherits methods from its parent interface, SVGElement
.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) # InterfaceSVGStyleElement |
Browser compatibility
BCD tables only load in the browser