Safari Form Elements in <details> Bug

Submitted as WebKit Bug 260523 - Form fields hidden in collapsed details/summary get focus. Test in Safari 16.5 through Technical Preview 176.

  1. Open the console.
  2. Tab through the page.
  3. Observe the focus style disappears when tabbing off a <summary>, with focus seemingly going nowhere.
  4. Observe the ID of each field is written to the console as it gets focus.
Hyperlink WebKit Bug 260523
1. Text input
2. Checkbox
3. Radio
4. Textarea
5. Select
6. Submit button
7. Button button