Skip to content

Commit 535fa91

Browse files
committed
[css-egg] Cross reference the Fetch specification
1 parent 30918db commit 535fa91

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

css-egg/Overview.bs

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -361,33 +361,30 @@ Negative values are invalid.
361361

362362
If 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+
&lt;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">
392389
Acknowledgments</h2>
393390

css-egg/unicorn.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)