diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-05 15:37:36 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-03-05 15:53:15 +0100 |
commit | ca45695db1fccf23d9f92d3e77243279d664804a (patch) | |
tree | 06db19eed22f26c6d0a32b0a61671821bf4dd81e /components/style_traits/values.rs | |
parent | 7931df716d3f2145758b5bfc278fa345d3b3b327 (diff) | |
download | servo-ca45695db1fccf23d9f92d3e77243279d664804a.tar.gz servo-ca45695db1fccf23d9f92d3e77243279d664804a.zip |
Introduce #[css(skip)]
Diffstat (limited to 'components/style_traits/values.rs')
-rw-r--r-- | components/style_traits/values.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/style_traits/values.rs b/components/style_traits/values.rs index 0c3dcc8851b..188fccc9691 100644 --- a/components/style_traits/values.rs +++ b/components/style_traits/values.rs @@ -26,10 +26,12 @@ use std::fmt::{self, Write}; /// serialised like unit variants and its fields are surrounded by parentheses; /// * if `#[css(iterable)]` is found on a function variant, that variant needs /// to have a single member, and that member needs to be iterable. The -/// iterable will be serialized as the arguments for the function. +/// iterable will be serialized as the arguments for the function; /// * if `#[css(dimension)]` is found on a variant, that variant needs /// to have a single member. The variant would be serialized as a CSS -/// dimension token, like: <member><identifier>. +/// dimension token, like: <member><identifier>; +/// * if `#[css(skip)]` is found on a field, the `ToCss` call for that field +/// is skipped; /// * 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 { |