polymer-core-rails 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -3
  3. data/app/assets/components/context-free-parser/context-free-parser.js +27 -4
  4. data/app/assets/components/core-a11y-keys/core-a11y-keys.html +4 -4
  5. data/app/assets/components/core-ajax/core-ajax.html +38 -10
  6. data/app/assets/components/core-ajax/core-xhr.html +1 -1
  7. data/app/assets/components/core-animated-pages/core-animated-pages.html +25 -2
  8. data/app/assets/components/core-animation/web-animations.html +1 -1
  9. data/app/assets/components/core-collapse/core-collapse.html +1 -1
  10. data/app/assets/components/core-doc-viewer/elements/core-doc-page.css +26 -1
  11. data/app/assets/components/core-doc-viewer/elements/core-doc-page.html +39 -4
  12. data/app/assets/components/core-doc-viewer/elements/core-doc-toc.css +3 -3
  13. data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -6
  14. data/app/assets/components/core-drawer-panel/core-drawer-panel.html +32 -8
  15. data/app/assets/components/core-dropdown/core-dropdown.html +8 -2
  16. data/app/assets/components/core-elements/core-elements.html +1 -0
  17. data/app/assets/components/core-icon/core-icon.html +0 -2
  18. data/app/assets/components/core-icons/av-icons.html +2 -9
  19. data/app/assets/components/core-icons/communication-icons.html +39 -42
  20. data/app/assets/components/core-icons/core-icons.html +231 -235
  21. data/app/assets/components/core-icons/device-icons.html +75 -90
  22. data/app/assets/components/core-icons/editor-icons.html +52 -52
  23. data/app/assets/components/core-icons/hardware-icons.html +40 -41
  24. data/app/assets/components/core-icons/image-icons.html +133 -137
  25. data/app/assets/components/core-icons/maps-icons.html +55 -57
  26. data/app/assets/components/core-icons/notification-icons.html +34 -34
  27. data/app/assets/components/core-icons/social-icons.html +23 -37
  28. data/app/assets/components/core-image/core-image.html +3 -3
  29. data/app/assets/components/core-list/core-list.html +50 -27
  30. data/app/assets/components/core-localstorage/core-localstorage.html +4 -5
  31. data/app/assets/components/core-menu/core-menu.html +8 -3
  32. data/app/assets/components/core-menu/core-submenu.html +2 -2
  33. data/app/assets/components/core-overlay/core-key-helper.html +3 -0
  34. data/app/assets/components/core-overlay/core-overlay-layer.html +3 -0
  35. data/app/assets/components/core-overlay/core-overlay.html +20 -4
  36. data/app/assets/components/core-resizable/core-resizable.html +248 -0
  37. data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +14 -3
  38. data/app/assets/components/core-scroll-threshold/core-scroll-threshold.html +222 -0
  39. data/app/assets/components/core-scroll-threshold/metadata.html +24 -0
  40. data/app/assets/components/core-selection/core-selection.html +1 -1
  41. data/app/assets/components/core-selector/core-selector.html +26 -26
  42. data/app/assets/components/core-splitter/core-splitter.html +17 -2
  43. data/app/assets/components/core-style/core-style.html +1 -1
  44. data/app/assets/components/core-toolbar/core-toolbar.html +1 -1
  45. data/app/assets/components/core-tooltip/core-tooltip.css +2 -2
  46. data/app/assets/components/core-tooltip/core-tooltip.html +16 -5
  47. data/app/assets/components/core-tooltip/metadata.html +1 -1
  48. data/app/assets/components/google-code-prettify/styles/doxy.css +1 -1
  49. data/app/assets/components/marked/lib/marked.js +11 -5
  50. data/app/assets/components/marked/marked.min.js +6 -0
  51. data/app/assets/components/paper-button/paper-button-base.html +56 -12
  52. data/app/assets/components/paper-button/paper-button.html +22 -5
  53. data/app/assets/components/paper-fab/paper-fab.html +2 -2
  54. data/app/assets/components/paper-ripple/paper-ripple.html +2 -1
  55. data/app/assets/components/paper-shadow/paper-shadow.css +10 -10
  56. data/app/assets/components/paper-shadow/paper-shadow.html +8 -1
  57. data/app/assets/components/sampler-scaffold/sampler-scaffold.css +1 -1
  58. data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-constructor.js +10 -5
  59. data/app/assets/components/{web-animations-next → web-animations-js}/src/animation-node.js +1 -1
  60. data/app/assets/components/{web-animations-next → web-animations-js}/src/animation.js +2 -2
  61. data/app/assets/components/{web-animations-next → web-animations-js}/src/apply-preserving-inline-style.js +2 -3
  62. data/app/assets/components/{web-animations-next → web-animations-js}/src/apply.js +1 -1
  63. data/app/assets/components/{web-animations-next → web-animations-js}/src/box-handler.js +1 -1
  64. data/app/assets/components/{web-animations-next → web-animations-js}/src/color-handler.js +2 -2
  65. data/app/assets/components/{web-animations-next → web-animations-js}/src/deprecation.js +0 -0
  66. data/app/assets/components/{web-animations-next → web-animations-js}/src/dev.js +0 -0
  67. data/app/assets/components/{web-animations-next → web-animations-js}/src/dimension-handler.js +1 -1
  68. data/app/assets/components/{web-animations-next → web-animations-js}/src/effect-callback.js +2 -2
  69. data/app/assets/components/{web-animations-next → web-animations-js}/src/effect.js +1 -1
  70. data/app/assets/components/{web-animations-next → web-animations-js}/src/element-animatable.js +1 -1
  71. data/app/assets/components/{web-animations-next → web-animations-js}/src/font-weight-handler.js +1 -1
  72. data/app/assets/components/{web-animations-next → web-animations-js}/src/group-constructors.js +2 -1
  73. data/app/assets/components/{web-animations-next → web-animations-js}/src/handler-utils.js +1 -1
  74. data/app/assets/components/{web-animations-next → web-animations-js}/src/interpolation.js +1 -1
  75. data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-decomposition.js +1 -1
  76. data/app/assets/components/{web-animations-next → web-animations-js}/src/matrix-interpolation.js +1 -1
  77. data/app/assets/components/{web-animations-next → web-animations-js}/src/normalize-keyframes.js +1 -1
  78. data/app/assets/components/{web-animations-next → web-animations-js}/src/number-handler.js +1 -1
  79. data/app/assets/components/{web-animations-next → web-animations-js}/src/player.js +1 -1
  80. data/app/assets/components/{web-animations-next → web-animations-js}/src/position-handler.js +1 -1
  81. data/app/assets/components/{web-animations-next → web-animations-js}/src/property-interpolation.js +1 -1
  82. data/app/assets/components/{web-animations-next → web-animations-js}/src/property-names.js +1 -1
  83. data/app/assets/components/{web-animations-next → web-animations-js}/src/scope.js +2 -2
  84. data/app/assets/components/{web-animations-next → web-animations-js}/src/shadow-handler.js +1 -1
  85. data/app/assets/components/{web-animations-next → web-animations-js}/src/shape-handler.js +1 -1
  86. data/app/assets/components/{web-animations-next → web-animations-js}/src/tick.js +1 -1
  87. data/app/assets/components/{web-animations-next → web-animations-js}/src/timeline.js +7 -7
  88. data/app/assets/components/{web-animations-next → web-animations-js}/src/timing-utilities.js +0 -0
  89. data/app/assets/components/{web-animations-next → web-animations-js}/src/transform-handler.js +1 -1
  90. data/app/assets/components/{web-animations-next → web-animations-js}/src/visibility-handler.js +1 -1
  91. data/app/assets/components/{web-animations-next/src/maxifill-player.js → web-animations-js/src/web-animations-next-player.js} +1 -1
  92. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.html +1 -1
  93. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next-lite.dev.js +0 -0
  94. data/app/assets/components/web-animations-js/web-animations-next-lite.min.js +17 -0
  95. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.html +1 -1
  96. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations-next.dev.js +0 -0
  97. data/app/assets/components/web-animations-js/web-animations-next.min.js +17 -0
  98. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.html +0 -0
  99. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.dev.js +0 -0
  100. data/app/assets/components/{web-animations-next → web-animations-js}/web-animations.html +1 -3
  101. data/app/assets/components/web-animations-js/web-animations.min.js +17 -0
  102. data/app/assets/components/webcomponentsjs/CustomElements.js +634 -0
  103. data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
  104. data/app/assets/components/webcomponentsjs/HTMLImports.js +764 -0
  105. data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
  106. data/app/assets/components/webcomponentsjs/ShadowDOM.js +4277 -0
  107. data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +13 -0
  108. data/app/assets/components/webcomponentsjs/webcomponents-lite.js +1728 -0
  109. data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +11 -0
  110. data/app/assets/components/webcomponentsjs/webcomponents.js +6114 -0
  111. data/app/assets/components/webcomponentsjs/webcomponents.min.js +14 -0
  112. data/lib/polymer-core-rails/version.rb +1 -1
  113. metadata +60 -76
  114. data/app/assets/components/context-free-parser/package.json +0 -16
  115. data/app/assets/components/core-ajax/demo-progress.html +0 -65
  116. data/app/assets/components/core-dropdown/metadata.html +0 -62
  117. data/app/assets/components/core-icons/png-icons.html +0 -19
  118. data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +0 -127
  119. data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +0 -153
  120. data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +0 -167
  121. data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +0 -130
  122. data/app/assets/components/core-overlay/tests/js/htmltests.js +0 -6
  123. data/app/assets/components/core-overlay/tests/runner.html +0 -14
  124. data/app/assets/components/core-overlay/tests/tests.json +0 -6
  125. data/app/assets/components/core-popup-menu/core-popup-menu.css +0 -28
  126. data/app/assets/components/core-popup-menu/core-popup-menu.html +0 -198
  127. data/app/assets/components/core-popup-menu/core-popup-overlay.html +0 -111
  128. data/app/assets/components/core-popup-menu/metadata.html +0 -62
  129. data/app/assets/components/core-shared-lib/tests/html/core-shared-lib.html +0 -47
  130. data/app/assets/components/core-shared-lib/tests/js/htmltests.js +0 -3
  131. data/app/assets/components/core-shared-lib/tests/runner.html +0 -14
  132. data/app/assets/components/core-shared-lib/tests/tests.json +0 -6
  133. data/app/assets/components/marked/LICENSE +0 -19
  134. data/app/assets/components/marked/Makefile +0 -12
  135. data/app/assets/components/marked/package.json +0 -22
  136. data/app/assets/components/platform/platform.js +0 -16
  137. data/app/assets/components/web-animations-js/web-animations.js +0 -5529
  138. data/app/assets/components/web-animations-next/Gruntfile.js +0 -279
  139. data/app/assets/components/web-animations-next/History.md +0 -76
  140. data/app/assets/components/web-animations-next/package.json +0 -33
  141. data/app/assets/components/web-animations-next/target-config.js +0 -124
  142. data/app/assets/components/web-animations-next/target-loader.js +0 -13
  143. data/app/assets/components/web-animations-next/templates/boilerplate +0 -13
  144. data/app/assets/components/web-animations-next/templates/runner.html +0 -26
  145. data/app/assets/components/web-animations-next/templates/web-animations.html +0 -18
  146. data/app/assets/components/web-animations-next/templates/web-animations.js +0 -21
@@ -0,0 +1,6 @@
1
+ /**
2
+ * marked - a markdown parser
3
+ * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
4
+ * https://github.com/chjj/marked
5
+ */
6
+ (function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:noop,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};block.bullet=/(?:[*+-]|\d+\.)/;block.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;block.item=replace(block.item,"gm")(/bull/g,block.bullet)();block.list=replace(block.list)(/bull/g,block.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+block.def.source+")")();block.blockquote=replace(block.blockquote)("def",block.def)();block._tag="(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code"+"|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo"+"|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b";block.html=replace(block.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,block._tag)();block.paragraph=replace(block.paragraph)("hr",block.hr)("heading",block.heading)("lheading",block.lheading)("blockquote",block.blockquote)("tag","<"+block._tag)("def",block.def)();block.normal=merge({},block);block.gfm=merge({},block.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/});block.gfm.paragraph=replace(block.paragraph)("(?!","(?!"+block.gfm.fences.source.replace("\\1","\\2")+"|"+block.list.source.replace("\\1","\\3")+"|")();block.tables=merge({},block.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function Lexer(options){this.tokens=[];this.tokens.links={};this.options=options||marked.defaults;this.rules=block.normal;if(this.options.gfm){if(this.options.tables){this.rules=block.tables}else{this.rules=block.gfm}}}Lexer.rules=block;Lexer.lex=function(src,options){var lexer=new Lexer(options);return lexer.lex(src)};Lexer.prototype.lex=function(src){src=src.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(src,true)};Lexer.prototype.token=function(src,top,bq){var src=src.replace(/^ +$/gm,""),next,loose,cap,bull,b,item,space,i,l;while(src){if(cap=this.rules.newline.exec(src)){src=src.substring(cap[0].length);if(cap[0].length>1){this.tokens.push({type:"space"})}}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);cap=cap[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?cap.replace(/\n+$/,""):cap});continue}if(cap=this.rules.fences.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"code",lang:cap[2],text:cap[3]});continue}if(cap=this.rules.heading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[1].length,text:cap[2]});continue}if(top&&(cap=this.rules.nptable.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/\n$/,"").split("\n")};for(i=0;i<item.align.length;i++){if(/^ *-+: *$/.test(item.align[i])){item.align[i]="right"}else if(/^ *:-+: *$/.test(item.align[i])){item.align[i]="center"}else if(/^ *:-+ *$/.test(item.align[i])){item.align[i]="left"}else{item.align[i]=null}}for(i=0;i<item.cells.length;i++){item.cells[i]=item.cells[i].split(/ *\| */)}this.tokens.push(item);continue}if(cap=this.rules.lheading.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"heading",depth:cap[2]==="="?1:2,text:cap[1]});continue}if(cap=this.rules.hr.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"hr"});continue}if(cap=this.rules.blockquote.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"blockquote_start"});cap=cap[0].replace(/^ *> ?/gm,"");this.token(cap,top,true);this.tokens.push({type:"blockquote_end"});continue}if(cap=this.rules.list.exec(src)){src=src.substring(cap[0].length);bull=cap[2];this.tokens.push({type:"list_start",ordered:bull.length>1});cap=cap[0].match(this.rules.item);next=false;l=cap.length;i=0;for(;i<l;i++){item=cap[i];space=item.length;item=item.replace(/^ *([*+-]|\d+\.) +/,"");if(~item.indexOf("\n ")){space-=item.length;item=!this.options.pedantic?item.replace(new RegExp("^ {1,"+space+"}","gm"),""):item.replace(/^ {1,4}/gm,"")}if(this.options.smartLists&&i!==l-1){b=block.bullet.exec(cap[i+1])[0];if(bull!==b&&!(bull.length>1&&b.length>1)){src=cap.slice(i+1).join("\n")+src;i=l-1}}loose=next||/\n\n(?!\s*$)/.test(item);if(i!==l-1){next=item.charAt(item.length-1)==="\n";if(!loose)loose=next}this.tokens.push({type:loose?"loose_item_start":"list_item_start"});this.token(item,false,bq);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(cap=this.rules.html.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:cap[1]==="pre"||cap[1]==="script"||cap[1]==="style",text:cap[0]});continue}if(!bq&&top&&(cap=this.rules.def.exec(src))){src=src.substring(cap[0].length);this.tokens.links[cap[1].toLowerCase()]={href:cap[2],title:cap[3]};continue}if(top&&(cap=this.rules.table.exec(src))){src=src.substring(cap[0].length);item={type:"table",header:cap[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:cap[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:cap[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(i=0;i<item.align.length;i++){if(/^ *-+: *$/.test(item.align[i])){item.align[i]="right"}else if(/^ *:-+: *$/.test(item.align[i])){item.align[i]="center"}else if(/^ *:-+ *$/.test(item.align[i])){item.align[i]="left"}else{item.align[i]=null}}for(i=0;i<item.cells.length;i++){item.cells[i]=item.cells[i].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */)}this.tokens.push(item);continue}if(top&&(cap=this.rules.paragraph.exec(src))){src=src.substring(cap[0].length);this.tokens.push({type:"paragraph",text:cap[1].charAt(cap[1].length-1)==="\n"?cap[1].slice(0,-1):cap[1]});continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);this.tokens.push({type:"text",text:cap[0]});continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return this.tokens};var inline={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:noop,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:noop,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};inline._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/;inline._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;inline.link=replace(inline.link)("inside",inline._inside)("href",inline._href)();inline.reflink=replace(inline.reflink)("inside",inline._inside)();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});inline.gfm=merge({},inline.normal,{escape:replace(inline.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:replace(inline.text)("]|","~]|")("|","|https?://|")()});inline.breaks=merge({},inline.gfm,{br:replace(inline.br)("{2,}","*")(),text:replace(inline.gfm.text)("{2,}","*")()});function InlineLexer(links,options){this.options=options||marked.defaults;this.links=links;this.rules=inline.normal;this.renderer=this.options.renderer||new Renderer;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=inline.breaks}else{this.rules=inline.gfm}}else if(this.options.pedantic){this.rules=inline.pedantic}}InlineLexer.rules=inline;InlineLexer.output=function(src,links,options){var inline=new InlineLexer(links,options);return inline.output(src)};InlineLexer.prototype.output=function(src){var out="",link,text,href,cap;while(src){if(cap=this.rules.escape.exec(src)){src=src.substring(cap[0].length);out+=cap[1];continue}if(cap=this.rules.autolink.exec(src)){src=src.substring(cap[0].length);if(cap[2]==="@"){text=cap[1].charAt(6)===":"?this.mangle(cap[1].substring(7)):this.mangle(cap[1]);href=this.mangle("mailto:")+text}else{text=escape(cap[1]);href=text}out+=this.renderer.link(href,null,text);continue}if(!this.inLink&&(cap=this.rules.url.exec(src))){src=src.substring(cap[0].length);text=escape(cap[1]);href=text;out+=this.renderer.link(href,null,text);continue}if(cap=this.rules.tag.exec(src)){if(!this.inLink&&/^<a /i.test(cap[0])){this.inLink=true}else if(this.inLink&&/^<\/a>/i.test(cap[0])){this.inLink=false}src=src.substring(cap[0].length);out+=this.options.sanitize?escape(cap[0]):cap[0];continue}if(cap=this.rules.link.exec(src)){src=src.substring(cap[0].length);this.inLink=true;out+=this.outputLink(cap,{href:cap[2],title:cap[3]});this.inLink=false;continue}if((cap=this.rules.reflink.exec(src))||(cap=this.rules.nolink.exec(src))){src=src.substring(cap[0].length);link=(cap[2]||cap[1]).replace(/\s+/g," ");link=this.links[link.toLowerCase()];if(!link||!link.href){out+=cap[0].charAt(0);src=cap[0].substring(1)+src;continue}this.inLink=true;out+=this.outputLink(cap,link);this.inLink=false;continue}if(cap=this.rules.strong.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.strong(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.em.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.em(this.output(cap[2]||cap[1]));continue}if(cap=this.rules.code.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.codespan(escape(cap[2],true));continue}if(cap=this.rules.br.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.br();continue}if(cap=this.rules.del.exec(src)){src=src.substring(cap[0].length);out+=this.renderer.del(this.output(cap[1]));continue}if(cap=this.rules.text.exec(src)){src=src.substring(cap[0].length);out+=escape(this.smartypants(cap[0]));continue}if(src){throw new Error("Infinite loop on byte: "+src.charCodeAt(0))}}return out};InlineLexer.prototype.outputLink=function(cap,link){var href=escape(link.href),title=link.title?escape(link.title):null;return cap[0].charAt(0)!=="!"?this.renderer.link(href,title,this.output(cap[1])):this.renderer.image(href,title,escape(cap[1]))};InlineLexer.prototype.smartypants=function(text){if(!this.options.smartypants)return text;return text.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};InlineLexer.prototype.mangle=function(text){var out="",l=text.length,i=0,ch;for(;i<l;i++){ch=text.charCodeAt(i);if(Math.random()>.5){ch="x"+ch.toString(16)}out+="&#"+ch+";"}return out};function Renderer(options){this.options=options||{}}Renderer.prototype.code=function(code,lang,escaped){if(this.options.highlight){var out=this.options.highlight(code,lang);if(out!=null&&out!==code){escaped=true;code=out}}if(!lang){return"<pre><code>"+(escaped?code:escape(code,true))+"\n</code></pre>"}return'<pre><code class="'+this.options.langPrefix+escape(lang,true)+'">'+(escaped?code:escape(code,true))+"\n</code></pre>\n"};Renderer.prototype.blockquote=function(quote){return"<blockquote>\n"+quote+"</blockquote>\n"};Renderer.prototype.html=function(html){return html};Renderer.prototype.heading=function(text,level,raw){return"<h"+level+' id="'+this.options.headerPrefix+raw.toLowerCase().replace(/[^\w]+/g,"-")+'">'+text+"</h"+level+">\n"};Renderer.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};Renderer.prototype.list=function(body,ordered){var type=ordered?"ol":"ul";return"<"+type+">\n"+body+"</"+type+">\n"};Renderer.prototype.listitem=function(text){return"<li>"+text+"</li>\n"};Renderer.prototype.paragraph=function(text){return"<p>"+text+"</p>\n"};Renderer.prototype.table=function(header,body){return"<table>\n"+"<thead>\n"+header+"</thead>\n"+"<tbody>\n"+body+"</tbody>\n"+"</table>\n"};Renderer.prototype.tablerow=function(content){return"<tr>\n"+content+"</tr>\n"};Renderer.prototype.tablecell=function(content,flags){var type=flags.header?"th":"td";var tag=flags.align?"<"+type+' style="text-align:'+flags.align+'">':"<"+type+">";return tag+content+"</"+type+">\n"};Renderer.prototype.strong=function(text){return"<strong>"+text+"</strong>"};Renderer.prototype.em=function(text){return"<em>"+text+"</em>"};Renderer.prototype.codespan=function(text){return"<code>"+text+"</code>"};Renderer.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};Renderer.prototype.del=function(text){return"<del>"+text+"</del>"};Renderer.prototype.link=function(href,title,text){if(this.options.sanitize){try{var prot=decodeURIComponent(unescape(href)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(prot.indexOf("javascript:")===0){return""}}var out='<a href="'+href+'"';if(title){out+=' title="'+title+'"'}out+=">"+text+"</a>";return out};Renderer.prototype.image=function(href,title,text){var out='<img src="'+href+'" alt="'+text+'"';if(title){out+=' title="'+title+'"'}out+=this.options.xhtml?"/>":">";return out};function Parser(options){this.tokens=[];this.token=null;this.options=options||marked.defaults;this.options.renderer=this.options.renderer||new Renderer;this.renderer=this.options.renderer;this.renderer.options=this.options}Parser.parse=function(src,options,renderer){var parser=new Parser(options,renderer);return parser.parse(src)};Parser.prototype.parse=function(src){this.inline=new InlineLexer(src.links,this.options,this.renderer);this.tokens=src.reverse();var out="";while(this.next()){out+=this.tok()}return out};Parser.prototype.next=function(){return this.token=this.tokens.pop()};Parser.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};Parser.prototype.parseText=function(){var body=this.token.text;while(this.peek().type==="text"){body+="\n"+this.next().text}return this.inline.output(body)};Parser.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text)}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var header="",body="",i,row,cell,flags,j;cell="";for(i=0;i<this.token.header.length;i++){flags={header:true,align:this.token.align[i]};cell+=this.renderer.tablecell(this.inline.output(this.token.header[i]),{header:true,align:this.token.align[i]})}header+=this.renderer.tablerow(cell);for(i=0;i<this.token.cells.length;i++){row=this.token.cells[i];cell="";for(j=0;j<row.length;j++){cell+=this.renderer.tablecell(this.inline.output(row[j]),{header:false,align:this.token.align[j]})}body+=this.renderer.tablerow(cell)}return this.renderer.table(header,body)}case"blockquote_start":{var body="";while(this.next().type!=="blockquote_end"){body+=this.tok()}return this.renderer.blockquote(body)}case"list_start":{var body="",ordered=this.token.ordered;while(this.next().type!=="list_end"){body+=this.tok()}return this.renderer.list(body,ordered)}case"list_item_start":{var body="";while(this.next().type!=="list_item_end"){body+=this.token.type==="text"?this.parseText():this.tok()}return this.renderer.listitem(body)}case"loose_item_start":{var body="";while(this.next().type!=="list_item_end"){body+=this.tok()}return this.renderer.listitem(body)}case"html":{var html=!this.token.pre&&!this.options.pedantic?this.inline.output(this.token.text):this.token.text;return this.renderer.html(html)}case"paragraph":{return this.renderer.paragraph(this.inline.output(this.token.text))}case"text":{return this.renderer.paragraph(this.parseText())}}};function escape(html,encode){return html.replace(!encode?/&(?!#?\w+;)/g:/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function unescape(html){return html.replace(/&([#\w]+);/g,function(_,n){n=n.toLowerCase();if(n==="colon")return":";if(n.charAt(0)==="#"){return n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1))}return""})}function replace(regex,opt){regex=regex.source;opt=opt||"";return function self(name,val){if(!name)return new RegExp(regex,opt);val=val.source||val;val=val.replace(/(^|[^\[])\^/g,"$1");regex=regex.replace(name,val);return self}}function noop(){}noop.exec=noop;function merge(obj){var i=1,target,key;for(;i<arguments.length;i++){target=arguments[i];for(key in target){if(Object.prototype.hasOwnProperty.call(target,key)){obj[key]=target[key]}}}return obj}function marked(src,opt,callback){if(callback||typeof opt==="function"){if(!callback){callback=opt;opt=null}opt=merge({},marked.defaults,opt||{});var highlight=opt.highlight,tokens,pending,i=0;try{tokens=Lexer.lex(src,opt)}catch(e){return callback(e)}pending=tokens.length;var done=function(err){if(err){opt.highlight=highlight;return callback(err)}var out;try{out=Parser.parse(tokens,opt)}catch(e){err=e}opt.highlight=highlight;return err?callback(err):callback(null,out)};if(!highlight||highlight.length<3){return done()}delete opt.highlight;if(!pending)return done();for(;i<tokens.length;i++){(function(token){if(token.type!=="code"){return--pending||done()}return highlight(token.text,token.lang,function(err,code){if(err)return done(err);if(code==null||code===token.text){return--pending||done()}token.text=code;token.escaped=true;--pending||done()})})(tokens[i])}return}try{if(opt)opt=merge({},marked.defaults,opt);return Parser.parse(Lexer.lex(src,opt),opt)}catch(e){e.message+="\nPlease report this to https://github.com/chjj/marked.";if((opt||marked.defaults).silent){return"<p>An error occured:</p><pre>"+escape(e.message+"",true)+"</pre>"}throw e}}marked.options=marked.setOptions=function(opt){merge(marked.defaults,opt);return marked};marked.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new Renderer,xhtml:false};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.InlineLexer=InlineLexer;marked.inlineLexer=InlineLexer.output;marked.parse=marked;if(typeof module!=="undefined"&&typeof exports==="object"){module.exports=marked}else if(typeof define==="function"&&define.amd){define(function(){return marked})}else{this.marked=marked}}).call(function(){return this||(typeof window!=="undefined"?window:global)}());
@@ -13,12 +13,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
13
13
  `paper-button-base` is the base class for button-like elements with ripple and optional shadow.
14
14
 
15
15
  @element paper-button-base
16
- @mixins Polymer.CoreFocusable
16
+ @mixins Polymer.CoreFocusable https://github.com/polymer/core-focusable
17
17
  @status unstable
18
18
  -->
19
19
 
20
20
  <link href="../polymer/polymer.html" rel="import">
21
21
  <link href="../core-focusable/core-focusable.html" rel="import">
22
+ <link href="../paper-ripple/paper-ripple.html" rel="import">
22
23
 
23
24
  <polymer-element name="paper-button-base" tabindex="0">
24
25
 
@@ -29,22 +30,48 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
29
30
  var p = {
30
31
 
31
32
  eventDelegates: {
32
- down: 'downAction'
33
+ down: 'downAction',
34
+ up: 'upAction'
35
+ },
36
+
37
+ toggleBackground: function() {
38
+ if (this.active) {
39
+
40
+ if (!this.$.bg) {
41
+ var bg = document.createElement('div');
42
+ bg.setAttribute('id', 'bg');
43
+ bg.setAttribute('fit', '');
44
+ bg.style.opacity = 0.25;
45
+ this.$.bg = bg;
46
+ this.shadowRoot.insertBefore(bg, this.shadowRoot.firstChild);
47
+ }
48
+ this.$.bg.style.backgroundColor = getComputedStyle(this).color;
49
+
50
+ } else {
51
+
52
+ if (this.$.bg) {
53
+ this.$.bg.style.backgroundColor = '';
54
+ }
55
+ }
33
56
  },
34
57
 
35
58
  activeChanged: function() {
36
59
  this.super();
37
60
 
38
- if (this.$.ripple) {
39
- if (this.active) {
40
- // FIXME: remove when paper-ripple can have a default 'down' state.
41
- if (!this.lastEvent) {
42
- var rect = this.getBoundingClientRect();
43
- this.lastEvent = {
44
- x: rect.left + rect.width / 2,
45
- y: rect.top + rect.height / 2
46
- }
47
- }
61
+ if (this.toggle && (!this.lastEvent || this.matches(':host-context([noink])'))) {
62
+ this.toggleBackground();
63
+ }
64
+ },
65
+
66
+ pressedChanged: function() {
67
+ this.super();
68
+
69
+ if (!this.lastEvent) {
70
+ return;
71
+ }
72
+
73
+ if (this.$.ripple && !this.hasAttribute('noink')) {
74
+ if (this.pressed) {
48
75
  this.$.ripple.downAction(this.lastEvent);
49
76
  } else {
50
77
  this.$.ripple.upAction();
@@ -54,6 +81,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
54
81
  this.adjustZ();
55
82
  },
56
83
 
84
+ focusedChanged: function() {
85
+ this.adjustZ();
86
+ },
87
+
57
88
  disabledChanged: function() {
58
89
  this._disabledChanged();
59
90
  this.adjustZ();
@@ -79,6 +110,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
79
110
  this.$.shadow.setZ(2);
80
111
  } else if (this.disabled) {
81
112
  this.$.shadow.setZ(0);
113
+ } else if (this.focused) {
114
+ this.$.shadow.setZ(3);
82
115
  } else {
83
116
  this.$.shadow.setZ(1);
84
117
  }
@@ -107,6 +140,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
107
140
  // No need to forward the event to the ripple because the ripple
108
141
  // is triggered in activeChanged
109
142
  }
143
+ },
144
+
145
+ upAction: function() {
146
+ this._upAction();
147
+
148
+ if (this.toggle) {
149
+ this.toggleBackground();
150
+ if (this.$.ripple) {
151
+ this.$.ripple.cancel();
152
+ }
153
+ }
110
154
  }
111
155
 
112
156
  };
@@ -30,8 +30,7 @@ create a button with an icon and some text:
30
30
  custom button content
31
31
  </paper-button>
32
32
 
33
- Styling
34
- -------
33
+ ## Styling
35
34
 
36
35
  Style the button with CSS as you would a normal DOM element.
37
36
 
@@ -57,8 +56,8 @@ The opacity of the ripple is not customizable via CSS.
57
56
  -->
58
57
 
59
58
  <link href="../polymer/polymer.html" rel="import">
60
- <link href="../paper-ripple/paper-ripple.html" rel="import">
61
59
  <link href="../paper-shadow/paper-shadow.html" rel="import">
60
+ <link href="../core-a11y-keys/core-a11y-keys.html" rel="import">
62
61
 
63
62
  <link href="paper-button-base.html" rel="import">
64
63
 
@@ -100,7 +99,7 @@ role="button">
100
99
  text-transform: inherit;
101
100
  }
102
101
 
103
- #shadow {
102
+ #bg, #shadow {
104
103
  border-radius: inherit;
105
104
  }
106
105
 
@@ -117,6 +116,7 @@ role="button">
117
116
  ::content > a {
118
117
  height: 100%;
119
118
  padding: 0.7em 0.57em;
119
+ margin: -0.7em -0.57em;
120
120
  /* flex */
121
121
  -ms-flex: 1 1 0.000000001px;
122
122
  -webkit-flex: 1;
@@ -134,9 +134,10 @@ role="button">
134
134
  <!-- this div is needed to position the ripple behind text content -->
135
135
  <div class="button-content" relative layout horizontal center-center>
136
136
  <content></content>
137
- {{label}}
138
137
  </div>
139
138
 
139
+ <core-a11y-keys keys="space enter" target="{{}}" on-keys-pressed="{{_activate}}"></core-a11y-keys>
140
+
140
141
  </template>
141
142
 
142
143
  <script>
@@ -173,6 +174,22 @@ role="button">
173
174
  */
174
175
  fill: true
175
176
 
177
+ },
178
+
179
+ _activate: function() {
180
+ this.click();
181
+ this.fire('tap');
182
+ if (!this.pressed) {
183
+ var bcr = this.getBoundingClientRect();
184
+ var x = bcr.left + (bcr.width / 2);
185
+ var y = bcr.top + (bcr.height / 2);
186
+ this.downAction({x: x, y: y});
187
+ var fn = function fn() {
188
+ this.upAction();
189
+ this.removeEventListener('keyup', fn);
190
+ }.bind(this);
191
+ this.addEventListener('keyup', fn);
192
+ }
176
193
  }
177
194
 
178
195
  });
@@ -162,8 +162,8 @@ you should ensure that the `aria-label` attribute is set.
162
162
  mini: false,
163
163
 
164
164
  raised: true,
165
- recenteringTouch: false,
166
- fill: true
165
+ recenteringTouch: true,
166
+ fill: false
167
167
 
168
168
  },
169
169
 
@@ -44,7 +44,8 @@ Styling ripple effect:
44
44
  Note that CSS color property is inherited so it is not required to set it on
45
45
  the `paper-ripple` element directly.
46
46
 
47
- Apply `recenteringTouch` class to make the recentering rippling effect.
47
+ By default, the ripple is centered on the point of contact. Apply `recenteringTouch`
48
+ class to have the ripple grow toward the center of its container.
48
49
 
49
50
  <paper-ripple class="recenteringTouch"></paper-ripple>
50
51
 
@@ -26,41 +26,41 @@ html /deep/ paper-shadow::shadow #shadow-top[animated] {
26
26
  }
27
27
 
28
28
  html /deep/ .paper-shadow-top-z-1 {
29
- box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.16);
29
+ box-shadow: none;
30
30
  }
31
31
 
32
32
  html /deep/ .paper-shadow-bottom-z-1 {
33
- box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
33
+ box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.37);
34
34
  }
35
35
 
36
36
  html /deep/ .paper-shadow-top-z-2 {
37
- box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.19);
37
+ box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
38
38
  }
39
39
 
40
40
  html /deep/ .paper-shadow-bottom-z-2 {
41
- box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2);
41
+ box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3);
42
42
  }
43
43
 
44
44
  html /deep/ .paper-shadow-top-z-3 {
45
- box-shadow: 0 17px 50px 0 rgba(0, 0, 0, 0.19);
45
+ box-shadow: 0 11px 7px 0 rgba(0, 0, 0, 0.19);
46
46
  }
47
47
 
48
48
  html /deep/ .paper-shadow-bottom-z-3 {
49
- box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24);
49
+ box-shadow: 0 13px 25px 0 rgba(0, 0, 0, 0.3);
50
50
  }
51
51
 
52
52
  html /deep/ .paper-shadow-top-z-4 {
53
- box-shadow: 0 25px 55px 0 rgba(0, 0, 0, 0.21);
53
+ box-shadow: 0 14px 12px 0 rgba(0, 0, 0, 0.17);
54
54
  }
55
55
 
56
56
  html /deep/ .paper-shadow-bottom-z-4 {
57
- box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22);
57
+ box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
58
58
  }
59
59
 
60
60
  html /deep/ .paper-shadow-top-z-5 {
61
- box-shadow: 0 40px 77px 0 rgba(0, 0, 0, 0.22);
61
+ box-shadow: 0 17px 17px 0 rgba(0, 0, 0, 0.15);
62
62
  }
63
63
 
64
64
  html /deep/ .paper-shadow-bottom-z-5 {
65
- box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2);
65
+ box-shadow: 0 27px 55px 0 rgba(0, 0, 0, 0.3);
66
66
  }
@@ -64,6 +64,13 @@ Example:
64
64
 
65
65
  },
66
66
 
67
+ /**
68
+ * Set the z-depth of the shadow. This should be used after element
69
+ * creation instead of setting the z property directly.
70
+ *
71
+ * @method setZ
72
+ * @param {Number} newZ
73
+ */
67
74
  setZ: function(newZ) {
68
75
  if (this.z !== newZ) {
69
76
  this.$['shadow-bottom'].classList.remove('paper-shadow-bottom-z-' + this.z);
@@ -76,4 +83,4 @@ Example:
76
83
 
77
84
  });
78
85
  </script>
79
- </polymer-element>
86
+ </polymer-element>
@@ -63,7 +63,7 @@ polyfill-next-selector { content: 'core-menu#menu core-item.core-selected'; }
63
63
  /* card */
64
64
  #card {
65
65
  display: block;
66
- margin: 64px 120px 60px 5px;
66
+ margin: 64px 120px 60px 0;
67
67
  background-color: #fff;
68
68
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
69
69
  border-radius: 2px;
@@ -51,7 +51,7 @@
51
51
  return scope.timeline.play(new scope.Animation(this, effect, timing));
52
52
  };
53
53
 
54
- var nullTarget = document.createElement('div');
54
+ var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
55
55
  scope.newUnderlyingPlayerForAnimation = function(animation) {
56
56
  var target = animation.target || nullTarget;
57
57
  var effect = animation._effect;
@@ -98,7 +98,7 @@
98
98
 
99
99
  // TODO: Call into this less frequently.
100
100
  scope.Player.prototype._updateChildren = function() {
101
- if (this.startTime === null || !this.source || !this._isGroup)
101
+ if (this.paused || !this.source || !this._isGroup)
102
102
  return;
103
103
  var offset = this.source._timing.delay;
104
104
  for (var i = 0; i < this.source.children.length; i++) {
@@ -107,14 +107,19 @@
107
107
 
108
108
  if (i >= this._childPlayers.length) {
109
109
  childPlayer = window.document.timeline.play(child);
110
- child.player = this.source.player;
111
110
  this._childPlayers.push(childPlayer);
112
111
  } else {
113
112
  childPlayer = this._childPlayers[i];
114
113
  }
114
+ child.player = this.source.player;
115
115
 
116
116
  if (childPlayer.startTime != this.startTime + offset) {
117
- childPlayer.startTime = this.startTime + offset;
117
+ if (this.startTime === null) {
118
+ childPlayer.currentTime = this.source.player.currentTime - offset;
119
+ childPlayer._startTime = null;
120
+ } else {
121
+ childPlayer.startTime = this.startTime + offset;
122
+ }
118
123
  childPlayer._updateChildren();
119
124
  }
120
125
 
@@ -136,4 +141,4 @@
136
141
 
137
142
  scope.groupChildDuration = groupChildDuration;
138
143
 
139
- }(webAnimationsShared, webAnimationsMaxifill, webAnimationsTesting));
144
+ }(webAnimationsShared, webAnimationsNext, webAnimationsTesting));
@@ -28,4 +28,4 @@
28
28
  return animationNode;
29
29
  };
30
30
 
31
- })(webAnimationsShared, webAnimationsMinifill);
31
+ })(webAnimationsShared, webAnimations1);
@@ -59,7 +59,7 @@
59
59
  };
60
60
 
61
61
  if (WEB_ANIMATIONS_TESTING) {
62
- testing.minifillAnimation = scope.Animation;
62
+ testing.webAnimations1Animation = scope.Animation;
63
63
  }
64
64
 
65
- })(webAnimationsShared, webAnimationsMinifill, webAnimationsTesting);
65
+ })(webAnimationsShared, webAnimations1, webAnimationsTesting);
@@ -47,8 +47,7 @@
47
47
  // Stores the inline style of the element on its behalf while the
48
48
  // polyfill uses the element's inline style to simulate web animations.
49
49
  // This is needed to fake regular inline style CSSOM access on the element.
50
- this._surrogateElement = document.createElement('div');
51
- this._surrogateStyle = this._surrogateElement.style;
50
+ this._surrogateStyle = document.createElementNS('http://www.w3.org/1999/xhtml', 'div').style;
52
51
  this._style = element.style;
53
52
  this._length = 0;
54
53
  this._isAnimatedProperty = {};
@@ -189,4 +188,4 @@
189
188
  if (WEB_ANIMATIONS_TESTING)
190
189
  testing.ensureStyleIsPatched = ensureStyleIsPatched;
191
190
 
192
- })(webAnimationsMinifill, webAnimationsTesting);
191
+ })(webAnimations1, webAnimationsTesting);
@@ -22,4 +22,4 @@
22
22
  element.style[scope.propertyName(property)] = '';
23
23
  };
24
24
 
25
- })(webAnimationsMinifill, webAnimationsTesting);
25
+ })(webAnimations1, webAnimationsTesting);
@@ -54,4 +54,4 @@
54
54
 
55
55
  scope.addPropertiesHandler(parseBox, mergeBoxes, ['clip']);
56
56
 
57
- })(webAnimationsMinifill, webAnimationsTesting);
57
+ })(webAnimations1, webAnimationsTesting);
@@ -14,7 +14,7 @@
14
14
 
15
15
  (function(scope, testing) {
16
16
 
17
- var canvas = document.createElement('canvas');
17
+ var canvas = document.createElementNS('http://www.w3.org/1999/xhtml', 'canvas');
18
18
  canvas.width = canvas.height = 1;
19
19
  var context = canvas.getContext('2d');
20
20
 
@@ -59,4 +59,4 @@
59
59
  testing.parseColor = parseColor;
60
60
  }
61
61
 
62
- })(webAnimationsMinifill, webAnimationsTesting);
62
+ })(webAnimations1, webAnimationsTesting);
@@ -164,4 +164,4 @@
164
164
  'word-spacing',
165
165
  ]);
166
166
 
167
- })(webAnimationsMinifill, webAnimationsTesting);
167
+ })(webAnimations1, webAnimationsTesting);
@@ -13,7 +13,7 @@
13
13
  // limitations under the License.
14
14
  (function(shared, scope, testing) {
15
15
 
16
- var nullTarget = document.createElement('div');
16
+ var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
17
17
 
18
18
  var sequenceNumber = 0;
19
19
  scope.bindPlayerForCustomEffect = function(player) {
@@ -83,4 +83,4 @@
83
83
  register(this._callback);
84
84
  };
85
85
 
86
- })(webAnimationsShared, webAnimationsMaxifill, webAnimationsTesting);
86
+ })(webAnimationsShared, webAnimationsNext, webAnimationsTesting);
@@ -107,4 +107,4 @@
107
107
  testing.makeInterpolations = makeInterpolations;
108
108
  }
109
109
 
110
- })(webAnimationsShared, webAnimationsMinifill, webAnimationsTesting);
110
+ })(webAnimationsShared, webAnimations1, webAnimationsTesting);
@@ -16,4 +16,4 @@
16
16
  window.Element.prototype.animate = function(effectInput, timingInput) {
17
17
  return scope.timeline._play(scope.Animation(this, effectInput, timingInput));
18
18
  };
19
- })(webAnimationsMinifill);
19
+ })(webAnimations1);
@@ -39,4 +39,4 @@
39
39
 
40
40
  scope.addPropertiesHandler(parse, merge, ['font-weight']);
41
41
 
42
- })(webAnimationsMinifill);
42
+ })(webAnimations1);
@@ -75,7 +75,8 @@
75
75
  player._player._wrapper = player;
76
76
  player._isGroup = true;
77
77
  scope.awaitStartTime(player);
78
+ player._updateChildren();
78
79
  };
79
80
 
80
81
 
81
- })(webAnimationsShared, webAnimationsMaxifill, webAnimationsTesting);
82
+ })(webAnimationsShared, webAnimationsNext, webAnimationsTesting);
@@ -174,4 +174,4 @@
174
174
  scope.mergeWrappedNestedRepeated = mergeWrappedNestedRepeated;
175
175
  scope.mergeList = mergeList;
176
176
 
177
- })(webAnimationsMinifill);
177
+ })(webAnimations1);
@@ -46,4 +46,4 @@
46
46
  testing.interpolate = interpolate;
47
47
  }
48
48
 
49
- })(webAnimationsMinifill, webAnimationsTesting);
49
+ })(webAnimations1, webAnimationsTesting);
@@ -449,4 +449,4 @@
449
449
  scope.dot = dot;
450
450
  scope.makeMatrixDecomposition = makeMatrixDecomposition;
451
451
 
452
- })(webAnimationsMinifill, webAnimationsTesting);
452
+ })(webAnimations1, webAnimationsTesting);
@@ -127,4 +127,4 @@
127
127
  scope.composeMatrix = composeMatrix;
128
128
  scope.quat = quat;
129
129
 
130
- })(webAnimationsMinifill, webAnimationsTesting);
130
+ })(webAnimations1, webAnimationsTesting);
@@ -108,7 +108,7 @@
108
108
  ]
109
109
  };
110
110
 
111
- var shorthandExpanderElem = document.createElement('div');
111
+ var shorthandExpanderElem = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');
112
112
 
113
113
  var borderWidthAliases = {
114
114
  thin: '1px',
@@ -69,4 +69,4 @@
69
69
  scope.mergeNumbers = mergeNumbers;
70
70
  scope.numberToString = numberToString;
71
71
 
72
- })(webAnimationsMinifill, webAnimationsTesting);
72
+ })(webAnimations1, webAnimationsTesting);
@@ -190,4 +190,4 @@
190
190
  testing.Player = scope.Player;
191
191
  }
192
192
 
193
- })(webAnimationsMinifill, webAnimationsTesting);
193
+ })(webAnimations1, webAnimationsTesting);
@@ -114,4 +114,4 @@
114
114
  var mergePositionList = scope.mergeNestedRepeated.bind(null, mergeOffsetList, ', ');
115
115
  scope.addPropertiesHandler(parsePositionList, mergePositionList, ['background-position', 'object-position']);
116
116
 
117
- })(webAnimationsMinifill);
117
+ })(webAnimations1);
@@ -58,5 +58,5 @@
58
58
  }
59
59
  scope.propertyInterpolation = propertyInterpolation;
60
60
 
61
- })(webAnimationsMinifill, webAnimationsTesting);
61
+ })(webAnimations1, webAnimationsTesting);
62
62
 
@@ -32,4 +32,4 @@
32
32
  return aliased[property] || property;
33
33
  };
34
34
 
35
- })(webAnimationsMinifill, webAnimationsTesting);
35
+ })(webAnimations1, webAnimationsTesting);
@@ -13,8 +13,8 @@
13
13
  // limitations under the License.
14
14
 
15
15
  var webAnimationsShared = {};
16
- var webAnimationsMinifill = {};
17
- var webAnimationsMaxifill = {};
16
+ var webAnimations1 = {};
17
+ var webAnimationsNext = {};
18
18
 
19
19
  if (!WEB_ANIMATIONS_TESTING)
20
20
  var webAnimationsTesting = null;
@@ -105,4 +105,4 @@
105
105
  var mergeShadowList = mergeNestedRepeatedShadow.bind(null, mergeShadow, ', ');
106
106
  scope.addPropertiesHandler(parseShadowList, mergeShadowList, ['box-shadow', 'text-shadow']);
107
107
 
108
- })(webAnimationsMinifill);
108
+ })(webAnimations1);
@@ -82,4 +82,4 @@
82
82
 
83
83
  scope.addPropertiesHandler(parseShape, mergeShapes, ['shape-outside']);
84
84
 
85
- })(webAnimationsMinifill);
85
+ })(webAnimations1);
@@ -145,4 +145,4 @@
145
145
  var timeline = new InternalTimeline();
146
146
  scope.timeline = timeline;
147
147
 
148
- })(webAnimationsShared, webAnimationsMinifill, webAnimationsTesting);
148
+ })(webAnimationsShared, webAnimations1, webAnimationsTesting);