Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / css-generated-content / attr-content-dynamic.html
1 <!DOCTYPE html>
2 <style>
3 #before::before, #after::after { content: attr(my-value) }
4 </style>
5 <p>You should see two PASSes below.</p>
6 <div id="before">SS</div>
7 <div id="after">PA</div>
8 <script>
9 document.body.offsetTop; // force layout
10
11 before.setAttribute("my-value", "PA");
12 after.setAttribute("my-value", "SS");
13 </script>