Regression(r188105): Seems to have caused crashes during PLT on some iPads
[WebKit-https.git] / LayoutTests / fast / css / attribute-for-content-property-style-update-xhtml.xhtml
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <style>
5 target::before {
6     content: attr(CamelCase)
7 }
8 </style>
9 </head>
10 <body>
11     <p>This test checks the styling and style update of attributes that are only used by the "content" propery of a rule.</p>
12     <div id="initial">
13         <target>No attribute</target>
14
15         <target CamelCase="WebKit!">CamelCase initial attribute</target>
16         <target camelcase="WebKit!">camelcase initial attribute</target>
17         <target CAMELCASE="WebKit!">CAMELCASE initial attribute</target>
18     </div>
19     <div id="dynamic">
20         <target>No attribute</target>
21
22         <target>CamelCase initial attribute</target>
23         <target>camelcase initial attribute</target>
24         <target>CAMELCASE initial attribute</target>
25     </div>
26 </body>
27 <script><![CDATA[
28 window.addEventListener("load", function() {
29     forcedLayout = document.documentElement.offsetTop;
30
31     var allDynamicTargets = document.querySelectorAll("#dynamic>target");
32     allDynamicTargets[1].setAttribute("CamelCase", "WebKit!");
33     allDynamicTargets[2].setAttribute("camelcase", "WebKit!");
34     allDynamicTargets[3].setAttribute("CAMELCASE", "WebKit!");
35 });
36 ]]></script>
37 </html>