Skip to content

Commit

Permalink
Merge pull request Modernizr#1392 from patrickkettner/background-blen…
Browse files Browse the repository at this point in the history
…d-mode

add detect for background-blend-mode
  • Loading branch information
patrickkettner committed Jul 27, 2014
2 parents b110b0a + c366b3f commit 309edbe
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions feature-detects/css/backgroundblendmode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*!
{
"name": "CSS Background Blend Mode",
"property": "backgroundblendmode",
"caniuse": "css-backgroundblendmode",
"tags": ["css"],
"notes": [
{
"name": "CSS Blend Modes could be the next big thing in Web Design",
"href": " https://medium.com/@bennettfeely/css-blend-modes-could-be-the-next-big-thing-in-web-design-6b51bf53743a"
}, {
"name": "Demo",
"href": "http://bennettfeely.com/gradients/"
}
]
}
!*/
/*
Detects the ability for the browser to composite backgrounds using blending modes
similar to ones found in Photoshop or Illustrator
*/
define(['Modernizr', 'prefixed'], function( Modernizr, prefixed ) {
Modernizr.addTest('backgroundblendmode', prefixed('backgroundBlendModes', 'text'));
});
1 change: 1 addition & 0 deletions lib/config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"test/crypto/getrandomvalues",
"test/css/all",
"test/css/animations",
"test/css/backgroundblendmode",
"test/css/backgroundcliptext",
"test/css/backgroundposition-shorthand",
"test/css/backgroundposition-xy",
Expand Down

0 comments on commit 309edbe

Please sign in to comment.