summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-generated-content/attr-content-dynamic.html
blob: 54a273a6eba6e2618496088ac3ad4ed3044ef429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<style>
#before::before, #after::after { content: attr(my-value) }
</style>
<p>You should see two PASSes below.</p>
<div id="before">SS</div>
<div id="after">PA</div>
<script>
document.body.offsetTop; // force layout

before.setAttribute("my-value", "PA");
after.setAttribute("my-value", "SS");
</script>