tiny.css.Rule
Defined in sheet.
One style rule.
API (6)
Actions
Public operations.
head: The first selector, which every rule has and which carries the raw prelude text an at-rule descriptor block keeps.
Fields and members
Public fields and members.
Source
Source: lib/css/src/sheet.zig:44
zig
/// One style rule. The selector list, the authored declarations, and the/// lowered records all borrow from the sheet placement.pub const Rule = struct { selectors: []const selector.Selector = &.{}, source_order: usize = 0, declarations: []const Declaration = &.{}, lowered: []const value.Declaration = &.{}, customs: []const cascade.Custom = &.{}, /// The first selector, which every rule has and which carries the raw /// prelude text an at-rule descriptor block keeps. pub fn head(self: Rule) selector.Selector { std.debug.assert(self.selectors.len > 0); return self.selectors[0]; }};Source: lib/css/src/root.zig:53
zig
pub const Rule = sheet.Rule;Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 5 |
| Version | 26.7.0 |
| Revision | daab053ee433 |