Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Dist files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilto committed Oct 7, 2014
1 parent 4e97f8d commit a9a8e5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions dist/picturefill.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ window.matchMedia || (window.matchMedia = function() {
pf.getWidthFromLength = function( length ) {
// If a length is specified and doesn’t contain a percentage, and it is greater than 0 or using `calc`, use it. Else, use the `100vw` default.
length = length && length.indexOf( "%" ) > -1 === false && ( parseFloat( length ) > 0 || length.indexOf( "calc(" ) > -1 ) ? length : "100vw";

/**
* If length is specified in `vw` units, use `%` instead since the div we’re measuring
* is injected at the top of the document.
Expand All @@ -136,7 +137,7 @@ window.matchMedia || (window.matchMedia = function() {

if ( pf.lengthEl.offsetWidth <= 0 ) {
// Something has gone wrong. `calc()` is in use and unsupported, most likely. Default to `100vw` (`100%`, for broader support.):
pf.lengthEl.style.cssText = "width: 100%;";
pf.lengthEl.style.width = doc.documentElement.offsetWidth + "px";
}

return pf.lengthEl.offsetWidth;
Expand Down Expand Up @@ -413,15 +414,14 @@ window.matchMedia || (window.matchMedia = function() {
// http://picture.responsiveimages.org/#the-img-element
picImg.currentSrc = picImg.src;

var
style = picImg.style || {},
hasWebkitBackfaceVisibility = "webkitBackfaceVisibility" in style,
currentZoom = style.zoom;
var style = picImg.style || {},
WebkitBackfaceVisibility = "webkitBackfaceVisibility" in style,
currentZoom = style.zoom;

if (hasWebkitBackfaceVisibility) {
if (WebkitBackfaceVisibility) { // See: https://github.com/scottjehl/picturefill/issues/332
style.zoom = ".999";

hasWebkitBackfaceVisibility = picImg.offsetWidth;
WebkitBackfaceVisibility = picImg.offsetWidth;

style.zoom = currentZoom;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/picturefill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a9a8e5f

Please sign in to comment.