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