Firefox Tomorrow

web api instance method

FontFaceSet: clear() method

View on MDN ↗

Available in workers

The clear() method of the FontFaceSet interface removes all fonts added via this interface. Fonts added with the @font-face rule are not removed.

Syntax

clear()

Parameters

None.

Return value

None (undefined).

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.