mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
parent
d4b58960dc
commit
eedb81ef9e
@ -701,8 +701,9 @@ export class CanvasRenderer {
|
|||||||
let side = 0;
|
let side = 0;
|
||||||
for (const border of borders) {
|
for (const border of borders) {
|
||||||
if (border.style !== BORDER_STYLE.NONE && !isTransparent(border.color)) {
|
if (border.style !== BORDER_STYLE.NONE && !isTransparent(border.color)) {
|
||||||
await this.renderBorder(border.color, side++, paint.curves);
|
await this.renderBorder(border.color, side, paint.curves);
|
||||||
}
|
}
|
||||||
|
side++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,12 @@
|
|||||||
border-bottom-width: 50px;
|
border-bottom-width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.box6 {
|
||||||
|
border-style: none solid none solid;
|
||||||
|
border-color: #807d32;
|
||||||
|
border-width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
background: #3a84c3;
|
background: #3a84c3;
|
||||||
}
|
}
|
||||||
@ -51,5 +57,6 @@
|
|||||||
<div class="box3"> </div>
|
<div class="box3"> </div>
|
||||||
<div class="box4"> </div>
|
<div class="box4"> </div>
|
||||||
<div class="box5"> </div>
|
<div class="box5"> </div>
|
||||||
|
<div class="box6"> </div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user