fix: correctly render partial borders (fix #1920) (#2010)

This commit is contained in:
Niklas von Hertzen 2019-09-21 20:33:54 -07:00 committed by GitHub
parent d4b58960dc
commit eedb81ef9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -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++;
} }
} }

View File

@ -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">&nbsp;</div> <div class="box3">&nbsp;</div>
<div class="box4">&nbsp;</div> <div class="box4">&nbsp;</div>
<div class="box5">&nbsp;</div> <div class="box5">&nbsp;</div>
<div class="box6">&nbsp;</div>
</body> </body>
</html> </html>