浏览代码

Add gap and row_gap to style_trait_methods

Rasmus Lövegren 3 年之前
父节点
当前提交
5f4a72446e
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      packages/html/src/global_attributes.rs

+ 6 - 0
packages/html/src/global_attributes.rs

@@ -399,6 +399,9 @@ pub trait GlobalAttributes {
         /// Specify the font weight of the text.
         font_weight: "font-weight",
 
+        /// Sets gaps (gutters) between rows and columns. Shorthand for row_gap and column_gap.
+        gap: "gap",
+
         /// Specify the height of an element.
         height: "height",
 
@@ -530,6 +533,9 @@ pub trait GlobalAttributes {
 
         /// Specify the location of the right edge of the positioned element.
         right: "right",
+        
+        /// Specifies the gap between the rows in a multi_column element.
+        row_gap: "row-gap",
 
         /// Specifies the length of the tab character.
         tab_size: "tab-size",