<!-- 控制台运行 -->
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
})
element.addEventListener("mousedown", function (e) {
<!-- let bounds = document.getElementById("graph").getBoundingClientRect(); -->
let bounds = parent.getBoundingClientRect();
let x = e.clientX - bounds.left;
let y = e.clientY - bounds.top;
console.log(x, y);
});
litehtml
Ultralight
Let’s build a browser engine!
PBRT-like renderer