tiny.css.StyleSheet
Defined in sheet.
A parsed stylesheet.
API (9)
Actions
Public operations.
context: The matching context the selector engine reads for this sheet.name: The text behind an atom this sheet interned.token: The atom this sheet gavetext, oratom.nonewhen no selector in the sheet named it.
Fields and members
Public fields and members.
Source
Source: lib/css/src/sheet.zig:61
zig
/// A parsed stylesheet. Every slice borrows from one placement and from the/// caller owned source bytes.pub const StyleSheet = struct { source: []const u8 = &.{}, rules: []const Rule = &.{}, diagnostics: []const []const u8 = &.{}, atoms: atom.Table = .{ .records = &.{}, .slots = &.{}, .arena = &.{} }, classes: []const u32 = &.{}, nths: []const selector.nth.Nth = &.{}, /// The atom this sheet gave `text`, or `atom.none` when no selector in the /// sheet named it. A consumer resolves its element tags through this once. pub fn token(self: *const StyleSheet, text: []const u8) u32 { return self.atoms.lookup(text); } /// The text behind an atom this sheet interned. pub fn name(self: *const StyleSheet, id: u32) []const u8 { return self.atoms.name(id); } /// The matching context the selector engine reads for this sheet. pub fn context(self: *const StyleSheet) matching.Context { return .{ .classes = self.classes, .nths = self.nths }; }};Source: lib/css/src/root.zig:57
zig
pub const StyleSheet = sheet.StyleSheet;Audit
| Definitions | 4 |
|---|---|
| Public names | 8 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |