| OLD | NEW |
| (Empty) |
| 1 Content-Type: text/plain | |
| 2 <html><head> | |
| 3 <title>Simple Web Components Example</title> | |
| 4 | |
| 5 <script src="packages/polymer/testing/testing.js"></script> | |
| 6 <style>template, | |
| 7 thead[template], | |
| 8 tbody[template], | |
| 9 tfoot[template], | |
| 10 th[template], | |
| 11 tr[template], | |
| 12 td[template], | |
| 13 caption[template], | |
| 14 colgroup[template], | |
| 15 col[template], | |
| 16 option[template] { | |
| 17 display: none; | |
| 18 }</style></head> | |
| 19 <body><script src="packages/shadow_dom/shadow_dom.min.js"></script> | |
| 20 <script src="packages/browser/interop.js"></script> | |
| 21 <polymer-element name="x-news" extends="ul"> | |
| 22 <template> | |
| 23 <style scoped=""> | |
| 24 div.breaking { | |
| 25 color: Red; | |
| 26 font-size: 20px; | |
| 27 border: 1px dashed Purple; | |
| 28 } | |
| 29 div.other { | |
| 30 padding: 2px 0 0 0; | |
| 31 border: 1px solid Cyan; | |
| 32 } | |
| 33 </style> | |
| 34 <div class="breaking"> | |
| 35 <h2>Breaking Stories</h2> | |
| 36 <ul> | |
| 37 <content select=".breaking"></content> | |
| 38 </ul> | |
| 39 </div> | |
| 40 <div class="other"> | |
| 41 <h2>Other News</h2> | |
| 42 <ul> | |
| 43 <content></content> | |
| 44 </ul> | |
| 45 </div> | |
| 46 </template> | |
| 47 | |
| 48 </polymer-element> | |
| 49 <h1>Simple Web Components Example</h1> | |
| 50 <ul is="x-news"><shadow-root> | |
| 51 <style scoped="">/* style hidden by testing.js */</style> | |
| 52 <div class="breaking"> | |
| 53 <h2>Breaking Stories</h2> | |
| 54 <ul> | |
| 55 <content select=".breaking"></content> | |
| 56 </ul> | |
| 57 </div> | |
| 58 <div class="other"> | |
| 59 <h2>Other News</h2> | |
| 60 <ul> | |
| 61 <content></content> | |
| 62 </ul> | |
| 63 </div> | |
| 64 </shadow-root> | |
| 65 <li><a href="//example.com/stories/1">A story</a></li> | |
| 66 <li><a href="//example.com/stories/2">Another story</a></li> | |
| 67 <li class="breaking"><a href="//example.com/stories/3">Also a story</a></li> | |
| 68 <li><a href="//example.com/stories/4">Yet another story</a></li> | |
| 69 <li><a href="//example.com/stories/4">Awesome story</a></li> | |
| 70 <li class="breaking"><a href="//example.com/stories/5">Horrible story</a></l
i> | |
| 71 </ul> | |
| 72 | |
| 73 | |
| 74 | |
| 75 <script type="application/dart" src="news_index_test.html_bootstrap.dart"></scri
pt></body></html> | |
| OLD | NEW |