Document: preferredStyleSheetSet プロパティ
非推奨;: この機能は非推奨になりました。まだ対応しているブラウザーがあるかもしれませんが、すでに関連するウェブ標準から削除されているか、削除の手続き中であるか、互換性のためだけに残されている可能性があります。使用を避け、できれば既存のコードは更新してください。このページの下部にある互換性一覧表を見て判断してください。この機能は突然動作しなくなる可能性があることに注意してください。
非標準: この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
preferredStyleSheetSet
プロパティは、ページ作者によって設定された推奨スタイルシートセットを返します。
値
作者の推奨するスタイルシートセットを示します。これはスタイルシート宣言の順序と HTTP の Default-Style
ヘッダーから特定されます。
作者によって定義された推奨スタイルシートセットがない場合は、空文字列 (""
) が返されます。
例
js
if (document.preferredStyleSheetSet) {
console.log(`推奨スタイルシート: ${document.preferredStyleSheetSet}`);
} else {
console.log("推奨スタイルシートがありません。");
}
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
preferredStyleSheetSet |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.