<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gifnksm</author_name>
  <author_url>https://blog.hatena.ne.jp/gifnksm/</author_url>
  <blog_title>gifnksmの雑多なメモ</blog_title>
  <blog_url>https://gifnksm.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Firefox</anon>
  </categories>
  <description>JavaScript（というかDOM? CSSOM?）には getBoundingClientRect という便利なメソッドが用意されています。これを使えば，ある要素のviewport上の座標，つまりブラウザ画面の左上を原点とした座標上での要素の位置を取得することができます。これまでは d:id:gifnksm:20100729:1280429284 のgetOffset関数のように，offsetParentを辿っていく方法で位置を取得していました。また親要素に position: fixed; が指定されている場合などを考慮すると，d:id:gifnksm:20090506:12416306…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgifnksm.hatenablog.jp%2Fentry%2F20101007%2F1286419969&quot; title=&quot;TextNodeにも使えるgetBoundingClientRect - gifnksmの雑多なメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-10-07 11:52:49</published>
  <title>TextNodeにも使えるgetBoundingClientRect</title>
  <type>rich</type>
  <url>https://gifnksm.hatenablog.jp/entry/20101007/1286419969</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
