|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#i { display: inline; border: 2px solid; }
|
|
#i::after { display: block; content: "Three"; }
|
|
</style>
|
|
</head>
|
|
<body onload="doTest()">
|
|
<div id="i"><script>document.body.offsetWidth</script><div>One</div>Two</div>
|
|
</body>
|
|
</html>
|