width

The read-only width property of the TextMetrics interface contains the text's advance width (the width of that inline box) in CSS pixels.

MDN Reference