mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
19 lines
602 B
HTML
19 lines
602 B
HTML
<!DOCTYPE html>
|
|
<input value="foo"><br>
|
|
<button>bar</button>
|
|
<div contenteditable>baz</div>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const reportOutline = e => { println(`${e.target.tagName}: ${window.getComputedStyle(e.target).outline}`); }
|
|
const runOutlineTest = (selector) => {
|
|
const elm = document.querySelector(selector);
|
|
elm.addEventListener('focus', reportOutline);
|
|
internals.click(elm.offsetLeft + 5, elm.offsetTop + 5);
|
|
};
|
|
|
|
runOutlineTest('input');
|
|
runOutlineTest('button');
|
|
runOutlineTest('div[contenteditable]');
|
|
});
|
|
</script>
|