lib/css/src/property/root.zig

daab053ee43316e1809a84551d573ddd1e5bf3d2

 1 //! The closed property set: identifiers, initial values, inheritance, and the
 2 //! value grammar each property accepts.
 3 //!
 4 //! A declaration carries `Id` rather than a byte slice, so the cascade compares
 5 //! integers and a computed style is a dense array indexed by `@intFromEnum`.
 6 //! `count` sizes that array.
 7 //!
 8 //! Shorthands never reach a computed style. `expand` lowers one shorthand into
 9 //! its longhands at parse time, which keeps the cascade free of shorthand
10 //! precedence rules.
11 
12 const expansion = @import("expand.zig");
13 const table = @import("table.zig");
14 
15 pub const Expansion = expansion.Expansion;
16 pub const Id = table.Id;
17 pub const Metadata = table.Metadata;
18 pub const Shorthand = expansion.Shorthand;
19 pub const componentSpans = expansion.componentSpans;
20 pub const count = table.count;
21 pub const entries = table.entries;
22 pub const expand = expansion.expand;
23 pub const isCustom = table.isCustom;
24 pub const longhands = expansion.longhands;
25 pub const lookup = table.lookup;
26 pub const max_components = expansion.max_components;
27 pub const max_expansions = expansion.max_expansions;
28 pub const metadata = table.metadata;
29 pub const shorthandOf = expansion.shorthandOf;