diff --git a/feature-detects/css-backgroundposition-fourvalues.js b/feature-detects/css-backgroundposition-fourvalues.js index d96cbd1ec8..e0f2fa557a 100644 --- a/feature-detects/css-backgroundposition-fourvalues.js +++ b/feature-detects/css-backgroundposition-fourvalues.js @@ -6,15 +6,14 @@ */ (function() { - + var elem = document.createElement('a'), eStyle = elem.style, val = "right 10px bottom 10px"; - + Modernizr.addTest('bgpositionfourvalues', function(){ eStyle.cssText = "background-position: " + val + ";"; return (eStyle.backgroundPosition === val); - }); + }); }()); -​ diff --git a/feature-detects/css-mask.js b/feature-detects/css-mask.js index 4245f5deb7..1afeab4e7b 100644 --- a/feature-detects/css-mask.js +++ b/feature-detects/css-mask.js @@ -1,13 +1,13 @@ // this tests passes for webkit's proprietary `-webkit-mask` feature -// as well as mozilla's implementation of `mask` for SVG +// www.webkit.org/blog/181/css-masks/ +// developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html -// http://www.webkit.org/blog/181/css-masks/ -// http://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html +// it does not pass mozilla's implementation of `mask` for SVG -// https://developer.mozilla.org/en/CSS/mask -// https://developer.mozilla.org/En/Applying_SVG_effects_to_HTML_content +// developer.mozilla.org/en/CSS/mask +// developer.mozilla.org/En/Applying_SVG_effects_to_HTML_content // Can combine with clippaths for awesomeness: http://generic.cx/for/webkit/test.html -Modernizr.addTest('cssmask', Modernizr.testAllProps('mask')); +Modernizr.addTest('cssmask', Modernizr.testAllProps('mask-repeat'));