Firefox Tomorrow

web api instance property

HTMLMenuElement: compact property

View on MDN ↗

The compact property of the HTMLMenuElement interface indicates that spacing between list items should be reduced. The exact handling of the compact attribute is browser-specific. Instead of using this property, consider using CSS line-height instead.

It reflects the compact attribute of the <menu> element.

Value

A boolean.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.