mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Document #[css(skip_if)]
This commit is contained in:
parent
bf08c659a0
commit
951250882b
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ use std::fmt::{self, Write};
|
|||
/// dimension token, like: <member><identifier>;
|
||||
/// * if `#[css(skip)]` is found on a field, the `ToCss` call for that field
|
||||
/// is skipped;
|
||||
/// * if `#[css(skip_if = "function")]` is found on a field, the `ToCss` call
|
||||
/// for that field is skipped if `function` returns true. This function is
|
||||
/// provided the field as an argument;
|
||||
/// * finally, one can put `#[css(derive_debug)]` on the whole type, to
|
||||
/// implement `Debug` by a single call to `ToCss::to_css`.
|
||||
pub trait ToCss {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue