Dialog closedBy Polyfill Test

Test Instructions:

Test 1: closedby="any" (default behavior)

Can be closed with ESC key, backdrop click, and close button.

Status: Closed

Dialog with closedby="any"

This dialog can be closed by:

Test 2: closedby="closerequest"

Can be closed with ESC key and close button only. Backdrop clicks are ignored.

Status: Closed

Dialog with closedby="closerequest"

This dialog can be closed by:

Test 3: closedby="none"

Can only be closed with the close button. ESC key and backdrop clicks are ignored.

Status: Closed

Dialog with closedby="none"

This dialog can be closed by:

Test 4: Dynamic Attribute Changes

You can change the closedBy attribute while the dialog is open.

Status: Closed

Dialog with Dynamic closedBy

Current setting: closedby="any"