Note: For the slot width, rather than providing an absolute width (for example, 480px), you can alternatively provide a width relative to the viewport (for example, 50vw) — but not a percentage.
実際にサンプルコードでも px を使用しておりサンプルコードと説明に食い違いがあるように感じます。
What did you expect to see?
英語の方と同じように px の使用も許されていることがわかる記述が良いと思います。
Do you have any supporting links, references, or citations?
MDN URL
https://developer.mozilla.org/ja/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images
What specific section or headline is this issue about?
解像度の切り替え: 様々な寸法
What information was incorrect, unhelpful, or incomplete?
「解像度の切り替え: 様々な寸法」のスロット幅に関するメモ欄にて
と翻訳されており
px
ではなくvw
を指定することが強制されるように読めます。 英語の方では以下のようになっており、px
も使用できるしvw
も使用できるといったニュアンスかと思います。実際にサンプルコードでも
px
を使用しておりサンプルコードと説明に食い違いがあるように感じます。What did you expect to see?
英語の方と同じように
px
の使用も許されていることがわかる記述が良いと思います。Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
* Folder: `ja/learn/html/multimedia_and_embedding/responsive_images` * MDN URL: https://developer.mozilla.org/ja/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images * GitHub URL: https://github.com/mdn/translated-content/blob/main/files/ja/learn/html/multimedia_and_embedding/responsive_images/index.md * Last commit: https://github.com/mdn/translated-content/commit/03a672ec9277f5122f5698444a5fba316b4f6da8 * Document last modified: 2022-10-03T15:10:24.000Z