MDN self-hosted library · e01.org

FontFaceSet: clear() method

CSS Font Loading API

no runnable cells web-api-instance-method upstream source

CSS Font Loading API

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

Browser compatibility