Expand description
The Box style whitelist as a validator: validateStyle of
src/style.ts, keyed off the embedded catalog/style.json. The regexes of
the TS are small hand-written parsers here (no regex engine).
Re-exports§
pub use crate::conditions::is_condition_key;pub use crate::conditions::is_media_key;
Structs§
- KeySpec
- One
style.jsonkey spec. - Style
Issue
Statics§
- STYLE_
SPECS - Every whitelisted key → its spec (layout keys first, then visual).
Functions§
- is_
hex_ color ^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8}|[0-9a-fA-F]{3,4})$- is_
transform STYLE_TRANSFORM_PATTERN: one or more transform functions separated by ONE space, no leading or trailing space.- validate_
style - Every rule the client resolver relies on: whitelisted keys, well-typed
values, conditions one level deep,
directionon the root only (root == Some(false)flags it;None= unknown, allowed).