mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
"test: backgroundGradients markup"
This commit is contained in:
parent
5e57ebc0ce
commit
00d73c0bf8
@ -68,14 +68,10 @@
|
|||||||
<div style="padding: 15% 0 3%;"></div>
|
<div style="padding: 15% 0 3%;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div id="backgroundPosition">
|
<div id="backgroundPosition">
|
||||||
<div style="background-position: 1px 0;"></div>
|
<div style="background-position: 1px 0;"></div>
|
||||||
<div style="background-position: 1em 0;"></div>
|
<div style="background-position: 1em 0;"></div>
|
||||||
<div style="background-position: thin medium;"></div>
|
<div style="background-position: thin medium;"></div>
|
||||||
|
|
||||||
<div style="background-position: 5em 5ex;"></div>
|
<div style="background-position: 5em 5ex;"></div>
|
||||||
<div style="background-position: 5in 5cm;"></div>
|
<div style="background-position: 5in 5cm;"></div>
|
||||||
<div style="background-position: 500in 500cm;"></div>
|
<div style="background-position: 500in 500cm;"></div>
|
||||||
@ -84,7 +80,6 @@
|
|||||||
<div style="background-position: 500pc 500px;"></div>
|
<div style="background-position: 500pc 500px;"></div>
|
||||||
<div style="background-position: 5mm 5pt;"></div>
|
<div style="background-position: 5mm 5pt;"></div>
|
||||||
<div style="background-position: 500mm 500pt;"></div>
|
<div style="background-position: 500mm 500pt;"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="backgroundPositionPercentage">
|
<div id="backgroundPositionPercentage">
|
||||||
@ -92,6 +87,28 @@
|
|||||||
<div style="background-position: center center;"></div>
|
<div style="background-position: center center;"></div>
|
||||||
<div style="background-position: left bottom;"></div>
|
<div style="background-position: left bottom;"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.linearGradient {
|
||||||
|
/* IE9 SVG */
|
||||||
|
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3Z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odD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
|
||||||
|
/* FF 3.6+ */
|
||||||
|
background: -moz-linear-gradient(left, #cedbe9 0%, #aac5de 17%, #6199c7 50%, #3a84c3 51%, #419ad6 59%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
|
||||||
|
/* Chrome, Safari 4+ */
|
||||||
|
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #cedbe9), color-stop(17%, #aac5de), color-stop(50%, #6199c7), color-stop(51%, #3a84c3), color-stop(59%, #419ad6), color-stop(71%, #4bb8f0), color-stop(84%, #3a8bc2), color-stop(100%, #26558b));
|
||||||
|
/* Chrome 10+, Safari 5.1+ */
|
||||||
|
background: -webkit-linear-gradient(left, #cedbe9 0%, #aac5de 17%, #6199c7 50%, #3a84c3 51%, #419ad6 59%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
|
||||||
|
/* Opera 11.10+ */
|
||||||
|
background: -o-linear-gradient(left, #cedbe9 0%, #aac5de 17%, #6199c7 50%, #3a84c3 51%, #419ad6 59%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
|
||||||
|
/* IE10+ */
|
||||||
|
background: -ms-linear-gradient(left, #cedbe9 0%, #aac5de 17%, #6199c7 50%, #3a84c3 51%, #419ad6 59%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
|
||||||
|
/* W3C */
|
||||||
|
background: linear-gradient(left, #cedbe9 0%, #aac5de 17%, #6199c7 50%, #3a84c3 51%, #419ad6 59%, #4bb8f0 71%, #3a8bc2 84%, #26558b 100%);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<div id="backgroundGradients">
|
||||||
|
<div class="linearGradient"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <iframe src="../borders.html" id="borders"></iframe> -->
|
<!-- <iframe src="../borders.html" id="borders"></iframe> -->
|
||||||
|
Loading…
Reference in New Issue
Block a user