<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>What is NodeRectViewer?</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <dfn>NodeRectViewer</dfn> displays boxes (e.g. padding box, border box, and so on) displayed within your browser.
Execute the bookmarklet below and see what occurs.</p></section><section><h1>NodeRectViewer bookmarklets</h1><figure class="bookmarklet"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> Non-debug mode (scripts are cached)</figcaption><p><anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="javascript:%0A%0Aif%20%28!window.NodeRectViewer%29%20window.NodeRectViewer%20%3D%20%7B%7D%3B%0A%0ANodeRectViewer.DEBUG%20%3D%20false%3B%0A%0Avar%20s%20%3D%20document.createElement%20%28%27script%27%29%3B%0As.src%20%3D%20%22http%3A%2F%2Fsuika.fam.cx%2Fwww%2Fcss%2Fnoderect%2FNodeRectViewer.js%22%3B%0Adocument.body.appendChild%20%28s%29%3B%0A%0Avoid%20%280%29%3B%0A%0A%2F*%0A%0AAuthor%3A%20Wakaba%20%3Cw%40suika.fam.cx%3E%0ALicense%3A%20Public%20Domain.%0A%0A*%2F%0A">javascript:%0A%0Aif%20%28!window.NodeRectViewer%29%20window.NodeRectViewer%20%3D%20%7B%7D%3B%0A%0ANodeRectViewer.DEBUG%20%3D%20false%3B%0A%0Avar%20s%20%3D%20document.createElement%20%28%27script%27%29%3B%0As.src%20%3D%20%22http%3A%2F%2Fsuika.fam.cx%2Fwww%2Fcss%2Fnoderect%2FNodeRectViewer.js%22%3B%0Adocument.body.appendChild%20%28s%29%3B%0A%0Avoid%20%280%29%3B%0A%0A%2F*%0A%0AAuthor%3A%20Wakaba%20%3Cw%40suika.fam.cx%3E%0ALicense%3A%20Public%20Domain.%0A%0A*%2F%0A</anchor-external></p></figure><figure class="bookmarklet"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> Debug mode (scripts are not cached)</figcaption><p><anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="javascript:%0A%0Aif%20%28!window.NodeRectViewer%29%20window.NodeRectViewer%20%3D%20%7B%7D%3B%0A%0ANodeRectViewer.DEBUG%20%3D%20true%3B%0A%0Avar%20s%20%3D%20document.createElement%20%28%27script%27%29%3B%0As.src%20%3D%20%22http%3A%2F%2Fsuika.fam.cx%2Fwww%2Fcss%2Fnoderect%2FNodeRectViewer.js%3F%22%0A%20%20%20%20%2B%20Math.random%20%28%29%3B%0Adocument.body.appendChild%20%28s%29%3B%0A%0Avoid%20%280%29%3B%0A%0A%2F*%0A%0AAuthor%3A%20Wakaba%20%3Cw%40suika.fam.cx%3E%0ALicense%3A%20Public%20Domain.%0A%0A*%2F%0A">javascript:%0A%0Aif%20%28!window.NodeRectViewer%29%20window.NodeRectViewer%20%3D%20%7B%7D%3B%0A%0ANodeRectViewer.DEBUG%20%3D%20true%3B%0A%0Avar%20s%20%3D%20document.createElement%20%28%27script%27%29%3B%0As.src%20%3D%20%22http%3A%2F%2Fsuika.fam.cx%2Fwww%2Fcss%2Fnoderect%2FNodeRectViewer.js%3F%22%0A%20%20%20%20%2B%20Math.random%20%28%29%3B%0Adocument.body.appendChild%20%28s%29%3B%0A%0Avoid%20%280%29%3B%0A%0A%2F*%0A%0AAuthor%3A%20Wakaba%20%3Cw%40suika.fam.cx%3E%0ALicense%3A%20Public%20Domain.%0A%0A*%2F%0A</anchor-external></p></figure></section><section><h1>Snapshot</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://suika.suikawiki.org/www/css/noderect/nrv-snapshot-1.png">https://suika.suikawiki.org/www/css/noderect/nrv-snapshot-1.png</anchor-external></p></section><section><h1>Implementation</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> User interface part is implemented in <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://suika.suikawiki.org/www/css/noderect/NodeRectViewer.js">https://suika.suikawiki.org/www/css/noderect/NodeRectViewer.js</anchor-external>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> Core part are implemented as separate JavaScript library: <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">NR.js</anchor>.</p></section><section><h1>Supported browsers</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> All of major browser engines are supported.</p></section><section><h1>関連</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> 似たようなのがあった: <cite xml:lang="en-us">XRAY :: for web developers</cite> (<time>2009-01-17 18:41:13 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://westciv.com/xray/">http://westciv.com/xray/</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <cite>NodeRect.js</cite>
(<time>2009-01-24 16:01:56 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://suika.suikawiki.org/~wakaba/wiki/sw/n/NodeRect%2Ejs">https://suika.suikawiki.org/~wakaba/wiki/sw/n/NodeRect%2Ejs</anchor-external></p></section></body></html>