From f4c960de5379787802f080b9eae10fee75f59d98 Mon Sep 17 00:00:00 2001 From: Shark Date: Thu, 14 Nov 2024 10:41:17 +0100 Subject: [PATCH] fix inset property parser --- crates/gosub_taffy/src/style/parse_properties.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/gosub_taffy/src/style/parse_properties.rs b/crates/gosub_taffy/src/style/parse_properties.rs index 1d345e633..1e4448a69 100644 --- a/crates/gosub_taffy/src/style/parse_properties.rs +++ b/crates/gosub_taffy/src/style/parse_properties.rs @@ -80,10 +80,10 @@ pub fn parse_position(node: &mut impl Node) -> Position { pub fn parse_inset(node: &mut impl Node) -> Rect { Rect { - top: parse_len_auto(node, "inset-top"), - right: parse_len_auto(node, "inset-right"), - bottom: parse_len_auto(node, "inset-bottom"), - left: parse_len_auto(node, "inset-left"), + top: parse_len_auto(node, "top"), + right: parse_len_auto(node, "right"), + bottom: parse_len_auto(node, "bottom"), + left: parse_len_auto(node, "left"), } }