HTMLStyleElement: sheet プロパティ

sheetHTMLStyleElement インターフェイスの読み取り専用プロパティで、この要素に関連付けられたスタイルシートを保持します。

StyleSheettype 属性が text/css 出ない限り、常に HTMLStyleElement と関連付けられます。

StyleSheet オブジェクト、またはこの要素に関連付けられているものがなければ null です。

html
<html>
  <header>
    <style media="print" /></header>
</html>

関連付けられた HTMLStyleElement オブジェクトの sheet プロパティは、そこに記述された StyleSheet オブジェクトを返します。

仕様書

Specification
CSS Object Model (CSSOM)
# dom-linkstyle-sheet

ブラウザーの互換性

BCD tables only load in the browser