Remove LOAD_SUB_FRAME load flag.
[chromium-blink-merge.git] / third_party / polymer / components / core-focusable / demo.html
blob70db68d1e2a2d163608f08cefbbce737fc112e88
1 <!doctype html>
2 <!--
3 Copyright 2013 The Polymer Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file.
6 -->
7 <html>
8 <head>
10 <meta charset="utf-8">
11 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
12 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
14 <title>core-focusable</title>
16 <script src="../webcomponentsjs/webcomponents.js"></script>
18 <link href="core-focusable.html" rel="import">
20 <style shim-shadowdom>
21 body {
22 font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
23 font-size: 14px;
24 margin: 0;
25 padding: 24px;
26 -webkit-tap-highlight-color: rgba(0,0,0,0);
27 -webkit-touch-callout: none;
30 section {
31 padding: 20px 0;
34 section > div {
35 padding: 14px;
36 font-size: 16px;
39 focusable-button {
40 display: inline-block;
41 padding: 0.5em 1em;
42 border-radius: 3px;
43 outline: none;
46 focusable-button[disabled] {
47 background: #e0e0e0;
50 focusable-button[active] {
51 background: #000;
52 color: #fff;
55 focusable-button[pressed] {
56 background: #ffb74d;
57 color: #000;
60 focusable-button[focused] {
61 border: 1px solid #4fc3f7;
64 </style>
65 </head>
66 <body unresolved>
68 <polymer-element name="focusable-button" tabindex="0">
69 <script>
70 (function() {
71 var p = {
73 eventDelegates: {
74 down: 'downAction',
75 up: 'upAction'
78 downAction: function() {
79 // call overriden event delegate
80 this._downAction();
81 console.log('down');
84 upAction: function() {
85 // call overriden event delegate
86 this._upAction();
87 console.log('up');
92 Polymer.mixin2(p, Polymer.CoreFocusable);
93 Polymer(p);
94 })();
95 </script>
96 </polymer-element>
98 <section>
100 <focusable-button>button</focusable-button>
102 <focusable-button toggle>toggle</focusable-button>
104 <focusable-button disabled>disabled</focusable-button>
106 </section>
108 </body>
109 </html>