@@ -361,33 +361,30 @@ Negative values are invalid.
361361
362362If the second argument is omitted, the default value is ''farthest-side'' .
363363
364- <div class="example">
365-
366- Here is a sample rendering of the double rainbow rainbow
367- described by the following css snippet.
368- <pre><code class="lang-css">
369- #sky {
370- height: 300px;
371- background-color: white;
372- background-image: double-rainbow(bottom, 300px);
373- }
364+ <div class="example" id="rainbow-unicorn">
365+ This feature was initially introduced by Opera Software.
366+ The following page, when viewed in Opera (between version 11.60 and 12.16),
367+ demonstrates tasteful use of double rainbows:
368+ <a href="http://media.opera.com/media/press/2011/unicorn/">http://media.opera.com/media/press/2011/unicorn/</a>
369+
370+ By combining ''double-rainbow()'' with <a href="https://fetch.spec.whatwg.org/#unicorn">about:unicorn</a> [[FETCH]] ,
371+ modern web standards can be used to achieve a similar effect.
372+ <pre><code class="lang-markup">
373+ <img src="about:unicorn"
374+ style="background: double-rainbow(bottom, closest-corner)">
374375</code></pre>
375- <div id=sky></div >
376+ <img class=fabulous src="./unicorn.svg" >
376377<style>
377- #sky {
378- height: 300px;
379- background-color: white;
380- background-image: radial-gradient(300px circle at bottom, transparent, rgba(250, 250, 210, 0.251) 63%, rgba(148, 0, 211, 0.251), rgba(0, 0, 128, 0.251), rgba(0, 0, 255, 0.251), rgba(0, 128, 0, 0.251), rgba(255, 255, 0, 0.251), rgba(255, 165, 0, 0.251), rgba(255, 0, 0, 0.251), transparent 67%, transparent 90%, rgba(255, 0, 0, 0.126), rgba(255, 165, 0, 0.126), rgba(255, 255, 0, 0.126), rgba(0, 128, 0, 0.126), rgba(0, 0, 255, 0.126), rgba(0, 0, 128, 0.126), rgba(148, 0, 211, 0.126), transparent 100%);
378+ .fabulous {
379+ background: radial-gradient(closest-corner circle at bottom, transparent, rgba(250, 250, 210, 0.251) 63%, rgba(148, 0, 211, 0.251), rgba(0, 0, 128, 0.251), rgba(0, 0, 255, 0.251), rgba(0, 128, 0, 0.251), rgba(255, 255, 0, 0.251), rgba(255, 165, 0, 0.251), rgba(255, 0, 0, 0.251), transparent 67%, transparent 90%, rgba(255, 0, 0, 0.126), rgba(255, 165, 0, 0.126), rgba(255, 255, 0, 0.126), rgba(0, 128, 0, 0.126), rgba(0, 0, 255, 0.126), rgba(0, 0, 128, 0.126), rgba(148, 0, 211, 0.126), transparent 100%);
380+ max-width: 500px;
381+ display:block;
382+ margin-left: auto;
383+ margin-right: auto;
381384}
382385</style>
383-
384386</div>
385387
386- Note: This was initially introduced by Opera.
387- The following page, when viewed in Opera (between version 11.60 and 12.16),
388- demonstrates tasteful use of double rainbows:
389- <a href="http://media.opera.com/media/press/2011/unicorn/">http://media.opera.com/media/press/2011/unicorn/</a>
390-
391388<h2 class=no-num id="acknowledgments">
392389Acknowledgments</h2>
393390
0 commit comments