1<!DOCTYPE html> 2<!-- 3@license 4Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 5This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt 6The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 7The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt 8Code distributed by Google as part of the polymer project is also 9subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt 10--> 11<link rel="import" href="../../polymer/polymer.html"> 12<link rel="import" href="../../iron-behaviors/iron-button-state.html"> 13<link rel="import" href="../paper-ripple-behavior.html"> 14<dom-module id="sd-ripple"> 15 <template> 16 <style> 17 :host { 18 display: block; 19 width: 200px; 20 } 21 #separate, #wrapper { 22 height: 50px; 23 } 24 #separate { 25 background: blue; 26 } 27 #wrapper { 28 background: red; 29 } 30 #wrapper > ::content #source { 31 height: 25px; 32 width: 50px; 33 background: green; 34 } 35 </style> 36 <div id="separate"> 37 <div id="target"> 38 Internal Text Node 39 </div> 40 </div> 41 <div id="wrapper"> 42 <content id="content"></content> 43 </div> 44 </template> 45 <script> 46 Polymer({ 47 is: 'sd-ripple', 48 behaviors: [ 49 Polymer.IronButtonState, 50 Polymer.IronControlState, 51 Polymer.PaperRippleBehavior 52 ] 53 }); 54 </script> 55</dom-module> 56