Skip to content

Commit

Permalink
Add Display::Contents support to the gentest script
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 11, 2023
1 parent 77bad9a commit 170580e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/gentest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ fn generate_node(ident: &str, node: &Value) -> TokenStream {
let display = match style["display"] {
Value::String(ref value) => match value.as_ref() {
"none" => quote!(display: taffy::style::Display::None,),
"contents" => quote!(display: taffy::style::Display::Contents,),
"block" => quote!(display: taffy::style::Display::Block,),
"grid" => quote!(display: taffy::style::Display::Grid,),
_ => quote!(display: taffy::style::Display::Flex,),
Expand Down

0 comments on commit 170580e

Please sign in to comment.