Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: LayoutTests/fast/dom/shadow/pseudoclass-update-enabled-area.html

Issue 408293002: Support for :enabled selector on Anchor & Area elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 </head> 4 </head>
esprehn 2014/08/01 17:48:19 ditto
5 5
6 <body> 6 <body>
7 7
8 <style> 8 <style>
9 area { 9 area {
10 display: inline; 10 display: inline;
11 } 11 }
12 </style> 12 </style>
13 13
14 <p>When an anchor tag catch 'href' attribute or release 'href' attribute, distri bution should happen.</p> 14 <p>When an anchor tag catch 'href' attribute or release 'href' attribute, distri bution should happen.</p>
(...skipping 18 matching lines...) Expand all
33 var area1 = createArea('http://www.example.com/', 'Anchor 1'); 33 var area1 = createArea('http://www.example.com/', 'Anchor 1');
34 var area2 = createArea('http://www.example.com/', 'Anchor 2'); 34 var area2 = createArea('http://www.example.com/', 'Anchor 2');
35 var area3 = createArea(null, 'Anchor 3'); 35 var area3 = createArea(null, 'Anchor 3');
36 var area4 = createArea(null, 'Anchor 4'); 36 var area4 = createArea(null, 'Anchor 4');
37 37
38 host1.appendChild(area1); 38 host1.appendChild(area1);
39 host1.appendChild(area2); 39 host1.appendChild(area2);
40 host2.appendChild(area3); 40 host2.appendChild(area3);
41 host2.appendChild(area4); 41 host2.appendChild(area4);
42 42
43 host1.createShadowRoot().innerHTML = '<content select="area:visited"></content>' ; 43 host1.createShadowRoot().innerHTML = '<content select="area:enabled"></content>' ;
44 host2.createShadowRoot().innerHTML = '<content select="area:visited"></content>' ; 44 host2.createShadowRoot().innerHTML = '<content select="area:enabled"></content>' ;
45 45
46 setTimeout(function() { 46 setTimeout(function() {
47 area2.removeAttribute('href'); 47 area2.removeAttribute('href');
48 area4.setAttribute('href', 'http://www.example.com/'); 48 area4.setAttribute('href', 'http://www.example.com/');
49 if (testRunner) 49 if (testRunner)
50 testRunner.notifyDone(); 50 testRunner.notifyDone();
51 }, 0); 51 }, 0);
52 52
53 </script> 53 </script>
54 </body> 54 </body>
55 </html> 55 </html>
56 56
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698