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

Method spec_siblings

crates/css_feature_data/src/css_feature.rs:91–97  ·  view source on GitHub ↗

Get all CSS properties in the same specification as this one

(&self)

Source from the content-addressed store, hash-verified

89
90 /// Get all CSS properties in the same specification as this one
91 pub fn spec_siblings(&self) -> impl Iterator<Item = &'static CSSFeature> {
92 SPECS
93 .get(self.spec)
94 .map(|names| names.iter().filter_map(|name| Self::by_feature_name(name)))
95 .into_iter()
96 .flatten()
97 }
98
99 /// Check if a CSS property is supported across browsers specified by a browserslist query
100 #[cfg(feature = "browserslist")]

Callers

nothing calls this directly

Calls 4

by_feature_nameFunction · 0.85
into_iterMethod · 0.80
iterMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected