width property

int get width

The width property of the HTMLSourceElement interface is a non-negative number indicating the width of the image resource in CSS pixels.

The property has an effect only if the parent of the current source element is a picture element.

It reflects the width attribute of the source element.

Implementation

external int get width;
set width (int value)

Implementation

external set width(int value);