-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When dispatching assets, urls that cannot be dispatched, should be le…
…ft intact Closes #5
- Loading branch information
Showing
4 changed files
with
54 additions
and
16 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
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
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
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,12 @@ | ||
function f() { | ||
// Setting multiple images AND a color on the background shorthand property | ||
// and then querying the style.background property value for the number of | ||
// occurrences of "url(" is a reliable method for detecting ACTUAL support for this! | ||
|
||
setCss('background:url(https://),url(https://),red url(https://)'); | ||
|
||
// If the UA supports multiple backgrounds, there should be three occurrences | ||
// of the string "url(" in the return value for elemStyle.background | ||
|
||
return (/(url\s*\(.*?){3}/).test(mStyle.background); | ||
} |