Skip to content

Commit bcc5cbb

Browse files
committed
Generate grid shorthands from longhands
1 parent ab01759 commit bcc5cbb

File tree

3 files changed

+659
-5
lines changed

3 files changed

+659
-5
lines changed

src/declaration.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use crate::properties::{
1919
position::PositionHandler,
2020
overflow::OverflowHandler,
2121
list::ListStyleHandler,
22+
grid::GridHandler,
2223
};
2324
use crate::targets::Browsers;
2425

@@ -158,6 +159,7 @@ pub(crate) struct DeclarationHandler {
158159
border: BorderHandler,
159160
outline: OutlineHandler,
160161
flex: FlexHandler,
162+
grid: GridHandler,
161163
align: AlignHandler,
162164
margin: MarginHandler,
163165
padding: PaddingHandler,
@@ -203,6 +205,7 @@ impl DeclarationHandler {
203205
self.border.handle_property(property, &mut self.decls) ||
204206
self.outline.handle_property(property, &mut self.decls) ||
205207
self.flex.handle_property(property, &mut self.decls) ||
208+
self.grid.handle_property(property, &mut self.decls) ||
206209
self.align.handle_property(property, &mut self.decls) ||
207210
self.margin.handle_property(property, &mut self.decls) ||
208211
self.padding.handle_property(property, &mut self.decls) ||
@@ -226,6 +229,7 @@ impl DeclarationHandler {
226229
self.border.finalize(&mut self.decls);
227230
self.outline.finalize(&mut self.decls);
228231
self.flex.finalize(&mut self.decls);
232+
self.grid.finalize(&mut self.decls);
229233
self.align.finalize(&mut self.decls);
230234
self.margin.finalize(&mut self.decls);
231235
self.padding.finalize(&mut self.decls);

0 commit comments

Comments
 (0)