<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimizuka</author_name>
  <author_url>https://blog.hatena.ne.jp/kimizuka/</author_url>
  <blog_title>みかづきブログ・カスタム</blog_title>
  <blog_url>https://blog.kimizuka.org/</blog_url>
  <categories>
    <anon>CSS</anon>
  </categories>
  <description>これまで、アスペクト比を固定しつつサイズ可変のDOMをつくる際は、before要素のpadding-topを使ってました。 DEMO ソースコード（抜粋） SCSS div { width: 50%; background: red; &amp;:before { display: block; padding-top: calc(100% * 9 / 16); content: ''; } } paddingを相対的に指定した場合は、親要素の幅に対する割合になるため、この書き方で親要素に対し、幅半分の16:9のDOMを作ることができます。しかし、最近何気なく developer.mozilla.or…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kimizuka.org%2Fentry%2F2023%2F01%2F26%2F003126&quot; title=&quot;CSSのaspect-ratioを使ってDOMの縦横比を指定する 📺 - みかづきブログ・カスタム&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kimizuka/20230126/20230126003113.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-26 00:31:26</published>
  <title>CSSのaspect-ratioを使ってDOMの縦横比を指定する 📺</title>
  <type>rich</type>
  <url>https://blog.kimizuka.org/entry/2023/01/26/003126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
