Index: third_party/polymer/components-chromium/core-image/core-image.html |
diff --git a/third_party/polymer/components-chromium/core-image/core-image.html b/third_party/polymer/components-chromium/core-image/core-image.html |
deleted file mode 100644 |
index 5ae017a9665ebf0f74da211be83333a1f0ec0a55..0000000000000000000000000000000000000000 |
--- a/third_party/polymer/components-chromium/core-image/core-image.html |
+++ /dev/null |
@@ -1,74 +0,0 @@ |
-<!-- |
-Copyright (c) 2014 The Polymer Project Authors. All rights reserved. |
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt |
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt |
-Code distributed by Google as part of the polymer project is also |
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt |
---><!-- |
-`core-image` is an element for displaying an image that provides useful sizing and |
-preloading options not found on the standard `<img>` tag. |
- |
-The `sizing` option allows the image to be either cropped (`cover`) or |
-letterboxed (`contain`) to fill a fixed user-size placed on the element. |
- |
-The `preload` option prevents the browser from rendering the image until the |
-image is fully loaded. In the interim, either the element's CSS `background-color` |
-can be be used as the placeholder, or the `placeholder` property can be |
-set to a URL (preferably a data-URI, for instant rendering) for an |
-placeholder image. |
- |
-The `fade` option (only valid when `preload` is set) will cause the placeholder |
-image/color to be faded out once the image is rendered. |
- |
-Examples: |
- |
- Basically identical to <img src="..."> tag: |
- |
- <core-image src="http://lorempixel.com/400/400"></core-image> |
- |
- Will letterbox the image to fit: |
- |
- <core-image style="width:400px; height:400px;" sizing="contain" |
- src="http://lorempixel.com/600/400"></core-image> |
- |
- Will crop the image to fit: |
- |
- <core-image style="width:400px; height:400px;" sizing="cover" |
- src="http://lorempixel.com/600/400"></core-image> |
- |
- Will show light-gray background until the image loads: |
- |
- <core-image style="width:400px; height:400px; background-color: lightgray;" |
- sizing="cover" preload src="http://lorempixel.com/600/400"></core-image> |
- |
- Will show a base-64 encoded placeholder image until the image loads: |
- |
- <core-image style="width:400px; height:400px;" placeholder="data:image/gif;base64,..." |
- sizing="cover" preload src="http://lorempixel.com/600/400"></core-image> |
- |
- Will fade the light-gray background out once the image is loaded: |
- |
- <core-image style="width:400px; height:400px; background-color: lightgray;" |
- sizing="cover" preload fade src="http://lorempixel.com/600/400"></core-image> |
- |
- |
-@group Polymer Core Elements |
-@element core-image |
-@homepage github.io |
---><html><head><link rel="import" href="../polymer/polymer.html"> |
- |
-</head><body><polymer-element name="core-image" assetpath=""> |
-<template> |
- <link rel="stylesheet" href="core-image.css"> |
- <template if="{{!sizing}}"> |
- <img id="img"> |
- </template> |
- <template if="{{preload && fade}}"> |
- <div id="placeholder" fit=""></div> |
- </template> |
- <content></content> |
-</template> |
- |
-</polymer-element> |
-<script charset="utf-8" src="core-image-extracted.js"></script></body></html> |