Module

utils/dom/getborderwidths

@ckeditor/ckeditor5-utils/src/dom/getborderwidths

module

Filtering

Interfaces

Functions

  • getBorderWidths( element ) → BorderWidths

    Returns an object containing CSS border widths of a specified HTML element.

    Parameters

    element : HTMLElement

    An element which has CSS borders.

    Returns

    BorderWidths

    An object containing top, left, right and bottom properties with numerical values of the border-[top,left,right,bottom]-width CSS styles.