mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 02:31:59 +00:00
27 lines
386 B
HTML
27 lines
386 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
|
|
#tablecell {
|
|
display: table-cell;
|
|
}
|
|
.border { border: 1px solid blue; }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<span class="border">
|
|
<span id="tablecell">x</span>
|
|
</span>
|
|
|
|
<script>
|
|
|
|
document.body.offsetWidth;
|
|
document.getElementById("tablecell").removeAttribute("id");
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|