<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a-kuma3</author_name>
  <author_url>https://blog.hatena.ne.jp/a-kuma3/</author_url>
  <blog_title>おまえ、うまそうだな</blog_title>
  <blog_url>https://a-kuma3.hatenablog.com/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>HTML</anon>
  </categories>
  <description>こちらのさいとう先生の画像を切り取ろうとしたときのこと。 あれ、ずれてる... offsetParent をたどって行けば、良いんじゃなかったっけ (´・ω・`) let e = ... let x = 0, y = 0; do { x += e.offsetLeft; y += e.offsetTop; } while (e = e.offsetParent); console.log(x, y); (468, 1455) と計算されるけど、Firefox のものさしツールで測ってみると (514, 1454)。 46px も足りてない。 ＃ ↓に たどり着くまで、かなりの日数が経ってます …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa-kuma3.hatenablog.com%2Fentry%2Ftrap_of_offsetLeft&quot; title=&quot;offsetLeft の罠 - おまえ、うまそうだな&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/a/a-kuma3/20180128/20180128172137.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-29 13:10:26</published>
  <title>offsetLeft の罠</title>
  <type>rich</type>
  <url>https://a-kuma3.hatenablog.com/entry/trap_of_offsetLeft</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
