mirror of
https://github.com/servo/servo
synced 2026-05-15 03:16:47 +02:00
Implement drop-down select multiple: - Updates the embedder API to support multi-selects. - Updates the select element to correctly reset when multiple attribute is removed. - Select now renders "n selected" as button text when more than 1, or 0 options are selected. Note that listbox selects are not yet supported, once they are these new features will be for `<select multiple size=1>`. Testing: WPTs and also manually using https://demo.lukewarlow.dev/css-forms.html. The two test regressions are due to the lack of listbox support rather than an issue with this PR. Fixes: #38509 --------- Signed-off-by: Luke Warlow <lwarlow@igalia.com> Signed-off-by: Martin Robinson <martin@abandonedwig.info> Co-authored-by: Martin Robinson <martin@abandonedwig.info>