This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/gh-pages' into 3.0-rc1-preparation
- Loading branch information
aFarkas
committed
Jul 29, 2015
1 parent
1ef1ac6
commit c119f1d
Showing
6 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8 /> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<title>Picturefill - Demo</title> | ||
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'> | ||
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400' rel='stylesheet' type='text/css'> | ||
<link href='../examples/styles.css' rel='stylesheet' type='text/css'> | ||
|
||
<script> | ||
// Picture element HTML shim|v it for old IE (pairs with Picturefill.js) | ||
document.createElement( "picture" ); | ||
</script> | ||
<script src="../dist/picturefill.js"></script> | ||
|
||
|
||
</head> | ||
<body> | ||
<a href="http://responsiveimages.org/" class="ricg"><img src="https://raw.github.com/ResponsiveImagesCG/meta/master/logo/Web/RICG_logo_small.png"></a> | ||
|
||
|
||
|
||
<h3><code>media</code> example with one APNG source qualified with a <code>type</code> attribute.</h3> | ||
<p>Note: Picturefill supports APNG types on any source element, and will disregard a <code>source</code> if its type is not supported in a particular environment. | ||
</p> | ||
|
||
<pre><code><picture> | ||
<!--[if IE 9]><video style="display: none;"><![endif]--> | ||
<source srcset="../examples/images/ballanim.png" type="image/x-apng"> | ||
<source srcset="../examples/images/ballanim.gif" type="image/gif"> | ||
|
||
<!--[if IE 9]></video><![endif]--> | ||
<img srcset="../examples/images/ballanim.gif" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> | ||
</picture> | ||
</code></pre> | ||
|
||
<p>Also note that the Mime Type <code>image/x-apng</code> | ||
is not real — it is only used by picturefill to distinguish between PNG and APNG (this is experimental and may be changed in a later release).</p> | ||
|
||
<picture> | ||
<!--[if IE 9]><video style="display: none;"><![endif]--> | ||
<source srcset="../examples/images/ballanim.png" type="image/x-apng"> | ||
<source srcset="../examples/images/ballanim.gif" type="image/gif"> | ||
|
||
<!--[if IE 9]></video><![endif]--> | ||
<img srcset="../examples/images/ballanim.gif" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> | ||
</picture> | ||
|
||
|
||
|
||
</body> | ||
</html> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters