OLD | NEW |
---|---|
(Empty) | |
1 <!-- | |
2 Copyright 2014 The Chromium Authors. All rights reserved. | |
3 Use of this source code is governed by a BSD-style license that can be | |
4 found in the LICENSE file. | |
5 --> | |
6 | |
7 <polymer-element name="ct-popout-iframe" attributes="src"> | |
ojan
2014/09/12 00:22:16
Leave out the script and put a noscript attribute
Robert Sesek
2014/09/12 13:58:58
Cool, didn't know about that. Done.
| |
8 <template> | |
9 <style> | |
10 .link { | |
11 /* <ct-test-output> sets line-height 0, so reset it here. */ | |
12 line-height: initial; | |
13 padding: 3px; | |
14 } | |
15 iframe { | |
16 border: none; | |
17 width: 100%; | |
18 height: 400px; | |
19 } | |
20 </style> | |
21 | |
22 <iframe src="{{src}}"></iframe> | |
23 <div class="link"><a href="{{src}}" target="_blank">pop out to a new tab</a> </div> | |
24 </template> | |
25 <script> | |
26 Polymer({ | |
27 src: '', | |
28 }); | |
29 </script> | |
30 </polymer-element> | |
OLD | NEW |