{{APIRef("CSSOM")}}
The LinkStyle
interface allows to access the associated CSS style sheet of a node.
LinkStyle
is a raw interface and no object of this type can be created; it is implemented by {{domxref("HTMLLinkElement")}} and {{domxref("HTMLStyleElement")}} objects.
Properties
There is no inherited property.
- {{domxref("LinkStyle.sheet")}} {{readonlyInline}}
- Returns the {{domxref("StyleSheet")}} object associated with the given element, or
null
if there is none.
Methods
This interface implements no method.
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('CSSOM', '#the-linkstyle-interface', 'LinkStyle')}} | {{Spec2('CSSOM')}} | No change from {{SpecName('DOM2 Style')}}. |
{{SpecName('DOM2 Style', 'stylesheets.html#StyleSheets-LinkStyle', 'LinkStyle')}} | {{Spec2('DOM2 Style')}} | Initial definition |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |