<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-aska</author_name>
  <author_url>https://blog.hatena.ne.jp/s-aska/</author_url>
  <blog_title>江戸一番のジャスタウェイ職人のブログ</blog_title>
  <blog_url>https://aska.hatenablog.com/</blog_url>
  <categories>
    <anon>7kai Tasks</anon>
    <anon>Javascript</anon>
  </categories>
  <description>今まで要素の罫線幅を取る時など適当に取得していたが問題が... $('.a').css('borderBottomWidth') &gt; &quot;1px&quot; （100%表示時） &gt; &quot;1.1111111640930176px&quot; （90%表示時） なんとズーム時にCSSの値が再計算されているのだ。（Chrome 30.0.1599.66で確認）CSSに1pxと書いてもjsから取得時に1.1111...といった値が引けてしまうケースありうる。 $('.a').css('borderBottomWidth').match(/(\d+)px/) ? RegExp.$1 : 0 &gt; &quot;111111164093017…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faska.hatenablog.com%2Fentry%2F2013%2F10%2F02%2F172106&quot; title=&quot;Chromeのズーム機能を使うとborderの値などに小数点が入る - 江戸一番のジャスタウェイ職人のブログ&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>2013-10-02 17:21:06</published>
  <title>Chromeのズーム機能を使うとborderの値などに小数点が入る</title>
  <type>rich</type>
  <url>https://aska.hatenablog.com/entry/2013/10/02/172106</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
