API: document which Preferences are experimental or enabled by default (#44171)

Referred users to
```https://book.servo.org/design-documentation/experimental-features.html```
documentation for ```Preferences``` and ```EXPERIMENTAL_PREFS```

Testing: No testing required, build was successful.
Fixes: #43706

---------

Signed-off-by: Sabb <sarafaabbas@gmail.com>
Signed-off-by: Abbas Olanrewaju Sarafa <109840351+sabbCodes@users.noreply.github.com>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Abbas Olanrewaju Sarafa
2026-04-15 05:25:25 +01:00
committed by GitHub
parent 0260fe8869
commit 316e6215a4
2 changed files with 14 additions and 0 deletions

View File

@@ -25,6 +25,11 @@ use url::Url;
use crate::VERSION;
/// Preferences enabled when servoshell is launched with the `--enable-experimental-web-platform-features` flag.
///
/// These preferences are disabled by default but activated in experimental mode.
/// For more details, see the
/// [experimental features documentation](https://book.servo.org/design-documentation/experimental-features.html).
pub(crate) static EXPERIMENTAL_PREFS: &[&str] = &[
"dom_async_clipboard_enabled",
"dom_exec_command_enabled",