MCPcopy Create free account
hub / github.com/csskit/csskit / property_group

Method property_group

crates/csskit_ast/src/selector/query.rs:788–792  ·  view source on GitHub ↗

Returns the PropertyGroup for this pseudo-class, or None if unknown.

(&self)

Source from the content-addressed store, hash-verified

786impl QueryPropertyTypePseudo {
787 /// Returns the PropertyGroup for this pseudo-class, or None if unknown.
788 pub fn property_group(&self) -> Option<PropertyGroup> {
789 let c: Cursor = self.group.into();
790 let atom = CsskitAtomSet::from_bits(c.atom_bits());
791 atom.to_property_group()
792 }
793}
794
795/// `:prefixed(<vendor>)` pseudo-class.

Callers 2

self_metadataMethod · 0.45
matchesMethod · 0.45

Calls 2

to_property_groupMethod · 0.80
atom_bitsMethod · 0.45

Tested by

no test coverage detected