blob: 95e695c9b4f72902d2e2d17cf7ff7100c8ee4ac2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!DOCTYPE html>
<style>
div { color: red; }
div::first-line { color: green }
</style>
<div id="x"></div>
<script>
x.offsetWidth;
var span = document.createElement('span');
span.textContent = 'This should be green';
x.appendChild(span);
</script>
|