Created
September 4, 2016 09:47
-
-
Save lydell/3c3375e7a9dc1265fe71474a9e098077 to your computer and use it in GitHub Desktop.
Embedded source map support test
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
.base64 { font-weight: bold; } | |
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VzIjpbInN1Y2Nlc3MuY3NzIl0sIm5hbWVzIjpbXX0= */ |
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
.encodeURIComponent { font-weight: bold; } | |
/*# sourceMappingURL=data:application/json,%7B%22version%22%3A3%2C%22mappings%22%3A%22AAAA%22%2C%22sources%22%3A%5B%22success.css%22%5D%2C%22names%22%3A%5B%5D%7D */ |
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
.nothing { font-weight: bold; } | |
/*# sourceMappingURL=data:application/json,{"version":3,"mappings":"AAAA","sources":["success.css"],"names":[]} */ |
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
.success { content: 'Test passed!' } |
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
<!doctype html> | |
<meta charset="utf-8"> | |
<title>Source map data:uri without base64 test</title> | |
<link rel="stylesheet" href="base64.css"> | |
<link rel="stylesheet" href="encodeURIComponent.css"> | |
<link rel="stylesheet" href="nothing.css"> | |
<p>This is a test to see how your browser supports source maps embedded as data URIs. | |
<p>For each bold block of code below, right-click it and choose "Inspect element" and check which filename the inspector reports: | |
<ul> | |
<li>success.css: Your browser <em>does</em> support that test case! | |
<li>Anything else: Your browser does <em>not</em> support that test case. | |
</ul> | |
<pre class="base64">btoa('{"version":3,"mappings":"AAAA","sources":["success.css"],"names":[]}')</pre> | |
<pre class="encodeURIComponent">encodeURIComponent('{"version":3,"mappings":"AAAA","sources":["success.css"],"names":[]}')</pre> | |
<pre class="nothing">'{"version":3,"mappings":"AAAA","sources":["success.css"],"names":[]}'</pre> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment