Skip to documentation
SLOP

tiny.css.Rule

Reference tiny.css Rule

Defined in sheet.

One style rule.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssheetRule
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions2
Public names4
Members5
Version26.7.0
Revisiondaab053ee433