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

yasergh picture yasergh  路  5Comments

ABHIKSINGHH picture ABHIKSINGHH  路  3Comments

kunal886496 picture kunal886496  路  3Comments

celik75 picture celik75  路  4Comments

stevencherry1 picture stevencherry1  路  3Comments