blob: 0458047adbeeb4d3b78e1e079b86a756e90e274b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<!DOCTYPE html>
<style>
div { color: red; }
div::first-line { color: green }
#y { display: inline-block; }
</style>
<div id="x"><span id="y">This should be </span></div>
<script>
x.offsetWidth;
y.appendChild(document.createTextNode('green'));
</script>
|