Html2canvas: style "border-bottom" lose

Created on 24 Dec 2017  路  2Comments  路  Source: niklasvh/html2canvas

Does the style "border-bottom" is supported?

Specifications:

html2canvas version tested with: v1.0.0-alpha.5
Browser & version: Chrome
Operating system: macOS

Bug

Most helpful comment

solution:

replace the code

var renderableBorders = container.style.border.filter(function (border) {
                return border.borderStyle !== _border.BORDER_STYLE.NONE && !border.borderColor.isTransparent();
            });

to

var renderableBorders = container.style.border;

All 2 comments

solution:

replace the code

var renderableBorders = container.style.border.filter(function (border) {
                return border.borderStyle !== _border.BORDER_STYLE.NONE && !border.borderColor.isTransparent();
            });

to

var renderableBorders = container.style.border;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ABHIKSINGHH picture ABHIKSINGHH  路  3Comments

deepender87 picture deepender87  路  4Comments

dking3876 picture dking3876  路  4Comments

yasergh picture yasergh  路  5Comments

Loki180 picture Loki180  路  4Comments