From 951250882b6ca35cfff36e2c6e846193e7c1e0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 7 Mar 2018 11:57:58 +0100 Subject: [PATCH] style: Document #[css(skip_if)] --- components/style_traits/values.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style_traits/values.rs b/components/style_traits/values.rs index aad75d51b8a..d6bd05b7b40 100644 --- a/components/style_traits/values.rs +++ b/components/style_traits/values.rs @@ -34,6 +34,9 @@ use std::fmt::{self, Write}; /// dimension token, like: ; /// * 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 {