mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
16 lines
470 B
HTML
16 lines
470 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<body>
|
|
<script type="text/javascript">
|
|
// create an embed, insert it in the doc and immediately remove it
|
|
var embed = document.createElement("embed");
|
|
embed.setAttribute("id", "test");
|
|
embed.setAttribute("type", "application/x-test");
|
|
embed.setAttribute("style", "width: 0px; height: 0px;");
|
|
document.body.appendChild(embed);
|
|
window.getComputedStyle(embed).top;
|
|
document.body.remove(embed);
|
|
</script>
|