servo/components/script/layout_dom
Simon Wülker b100a98e1d
Fully support <input type=color> (#36992)
This change adds a shadow-tree widget for `<input type=color>` elements.
It also involves some changes to the way layout interacts with the DOM,
because currently all `input` and `textarea` elements are rendered as
plain text and their descendants are ignored. This obviously doesn't
work for `<input type={color, date, range, etc}>`.


![image](https://github.com/user-attachments/assets/4f16c3b0-1f79-4095-b19d-1153f5853dd5)

<details><summary>HTML used for the screenshot above</summary>

```html
<input type=color>
```

</details>



Testing: I doubt that this affects WPT tests, because the appearance and
behaviour of the widget is almost entirely unspecified.

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-05-15 17:30:38 +00:00
..
document.rs script: Limit public exports. (#34915) 2025-01-10 08:19:19 +00:00
element.rs Use version of markup5ever with web_atoms crate (#36542) 2025-04-19 11:49:37 +00:00
mod.rs
node.rs Fully support <input type=color> (#36992) 2025-05-15 17:30:38 +00:00
shadow_root.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00