pub fn density_options_into(out: &mut String)Expand description
Write the options of a density picker, in
DENSITY_CHOICES order.
None is marked selected. The server cannot know what this device chose,
so VARS_JS sets the picker’s value from storage as it arrives, which
is before first paint on a page load and on insertion after a swap.
let mut out = String::new();
makeover_webview::density_options_into(&mut out);
assert!(out.starts_with("<option value=\"\">Automatic</option>"));
assert!(out.contains("<option value=\"touch\">Touch</option>"));