mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +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>
|