Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-image/README.md

Issue 1155683008: Rename polymer and cr_elements v0_8 to v1_0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1
Patch Set: fix a merge mistake Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 iron-image 1 iron-image
2 ========== 2 ==========
3 3
4 `iron-image` is an element for displaying an image that provides useful sizing a nd 4 `iron-image` is an element for displaying an image that provides useful sizing a nd
5 preloading options not found on the standard `<img>` tag. 5 preloading options not found on the standard `<img>` tag.
6 6
7 The `sizing` option allows the image to be either cropped (`cover`) or 7 The `sizing` option allows the image to be either cropped (`cover`) or
8 letterboxed (`contain`) to fill a fixed user-size placed on the element. 8 letterboxed (`contain`) to fill a fixed user-size placed on the element.
9 9
10 The `preload` option prevents the browser from rendering the image until the 10 The `preload` option prevents the browser from rendering the image until the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 <iron-image style="width:400px; height:400px;" placeholder="data:image/gif;base6 4,..." 51 <iron-image style="width:400px; height:400px;" placeholder="data:image/gif;base6 4,..."
52 sizing="cover" preload src="http://lorempixel.com/600/400"></iron-image> 52 sizing="cover" preload src="http://lorempixel.com/600/400"></iron-image>
53 ``` 53 ```
54 54
55 Will fade the light-gray background out once the image is loaded: 55 Will fade the light-gray background out once the image is loaded:
56 56
57 ```html 57 ```html
58 <iron-image style="width:400px; height:400px; background-color: lightgray;" 58 <iron-image style="width:400px; height:400px; background-color: lightgray;"
59 sizing="cover" preload fade src="http://lorempixel.com/600/400"></iron-image> 59 sizing="cover" preload fade src="http://lorempixel.com/600/400"></iron-image>
60 ``` 60 ```
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698