W3cubDocs

/DOM

SVGStyleElement

SVG style interface

The SVGStyleElement interface corresponds to the SVG <style> element.

Interface overview

Also implement SVGElement, SVGLangSpace
Methods None
Properties
Normative document SVG 1.1 (2nd Edition)

Properties

Name Type Description
type DOMString Corresponds to attribute type on the given element. A DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read-only attribute.
media DOMString Corresponds to attribute media on the given element. A DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read-only attribute.
title DOMString Corresponds to attribute title on the given element. A DOMException is raised with code NO_MODIFICATION_ALLOWED_ERR on an attempt to change the value of a read-only attribute.

Methods

The SVGStyleElement interface does not provide any specific methods.

Browser compatibility

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

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement