cssints/widely-available, cssints/css-grid-2, …A group is a subpath of cssints that exports the members of cssints which a set of CSS features has, and refuses a value that holds a feature outside the set. It is the same import (with { type: "cssints" }), the same members, the same classes:
import { const color: P<"color">color, const display: P<"display">display, const media: GCondition<B, "media", QueryWrap>media } from "cssints/widely-available" with { type: "cssints" };
export const const card: Style[]card = [
display<readonly ["grid"]>(parts_0: "grid"): Styledisplay("grid"),
color<readonly ["rebeccapurple"]>(parts_0: "rebeccapurple"): Stylecolor("rebeccapurple"),
media<"(width >= 40rem)">(query: "(width >= 40rem)"): QueryWrap (+2 overloads)media("(width >= 40rem)")(color<readonly ["black"]>(parts_0: "black"): Stylecolor("black")),
];
display<readonly ["grid-lanes"]>(parts_0: "display: \"grid-lanes\" is not in cssints/widely-available"): Styledisplay("grid-lanes"); // error: display: "grid-lanes" is not in cssints/widely-availablecolor<readonly ["light-dark(white, black)"]>(parts_0: "color: \"light-dark()\" is not in cssints/widely-available"): Stylecolor("light-dark(white, black)"); // error: color: "light-dark()" is not in cssints/widely-availablemedia<Record<string, string>>(queries: {
[x: string]: string;
}): {
[x: string]: QueryWrap;
} (+2 overloads)
media("(prefers-reduced-data: reduce)"); // error: @media: "prefers-reduced-data" is not in cssints/widely-availableimport { const inlineSize: P<"inline-size">inlineSize } from "cssints/widely-available/with-downstream" with { type: "cssints" };
import { const color: P<"color">color } from "cssints/baseline-2022" with { type: "cssints" };
inlineSize<readonly ["10rem"]>(parts_0: "10rem"): StyleinlineSize("10rem");
inlineSize<readonly ["fit-content"]>(parts_0: "inline-size: \"fit-content\" is not in cssints/widely-available/with-downstream"): StyleinlineSize("fit-content"); // error: inline-size: "fit-content" is not in cssints/widely-available/with-downstreamcolor<readonly ["rebeccapurple"]>(parts_0: "rebeccapurple"): Stylecolor("rebeccapurple");
color<readonly ["color-mix(in oklab, red, blue)"]>(parts_0: "color: \"color-mix()\" is not in cssints/baseline-2022"): Stylecolor("color-mix(in oklab, red, blue)"); // error: color: "color-mix()" is not in cssints/baseline-2022widely-available is Baseline high, newly-available is high and low, limited-availability is everything (it is cssints itself, under its Baseline name) and not-discouraged is everything web-features does not mark discouraged (clip, the page-break-* aliases, ime-mode, word-break: break-word, text-decoration-line: blink, device media features). A feature web-features does not know is limited availability.widely-available/with-downstream and newly-available/with-downstream are the Baseline group also checked against Opera, Opera Mobile, Samsung Internet, Android WebView, UC and QQ, as browserslist-config-baseline/with-downstream is. A feature is in one when the Baseline group has it and every one of those browsers has it, by BCD, at the minimum version that baseline-browser-mapping 2.11.28 gives for the target (the rule of the support warnings: no prefix, no flag; UC and QQ are Blink, checked as Chrome at the Blink version of that build). widely-available/with-downstream has 520 of the 521 members (not maskImage: Opera has -webkit-mask-image only) and refuses inline-size: fit-content (Samsung Internet), shape-outside: xywh() and prefers-contrast; newly-available/with-downstream has 533 of 567 (UC and QQ are on Blink 123 and 121).baseline-2015 to baseline-2026 (the first year web-features has to the current one) and baseline-YYYY/with-downstream, as browserslist-config-baseline/YYYY has them. baseline-YYYY is cumulative: what was Baseline (newly available, baseline_low_date) by the end of YYYY, so baseline-2022 refuses color-mix() (2023) and baseline-2023 refuses light-dark() (2024). 220 members in baseline-2015, 387 in baseline-2020, 537 in baseline-2024. baseline-2026 is newly-available today.cssints/css-grid-2, cssints/css-color-4, cssints/mediaqueries-4, cssints/selectors-4, … (92 of them). A group holds what the spec defines, and a level includes the levels of its series before it: css-color-5 has what Color 3, 4 and 5 define, css-color-4 has Color 3 and 4. A level is a delta (Color 5 over Color 4) or a rewrite (Media Queries 4 over 3), and "I write for Color 5" means both. What only a later level defines is refused: css-color-4 has no colorMix and refuses color-mix(), mediaqueries-4 refuses prefers-color-scheme. A group has the properties, functions, pseudo-class wrappers and conditions its spec defines, so display is in css-display-4 and gridTemplateColumns in css-grid-2: import from several groups in one file.media, container, supports, keyframes and positionTry. Everything else (cn, cv, firstThatWorks, token, createTokens, createGlobalTheme, check, style, global, layers, attr, within, group, the Typed OM values) is in every group. A group has no css object: write import * as css from "cssints/widely-available".firstThatWorks too), a unit (10rch), a media feature, a scroll-state() or style() container query and a selector() support query, and a property, function or condition the group does not have (flex().gap() is checked as gap). A value that is not valid CSS is still the usual error.<color> in accent-color is any colour of any group), a feature of a module that is not in the series of the group (css-ui-4's accentColor takes color-mix() as text), and what nothing attributes to a feature: the grammar of a value that no BCD key names is not narrowed. A function with no BCD key counts as limited availability. A keyword of cursor has the status of cursor (web-features counts it limited for iOS Safari, which has no pointer).dist/ (the tarball: 303 kB for the first 96 groups, 384 kB with the Baseline years and the downstream groups; a downstream group re-exports the members it shares with its Baseline group, and a group the same as another is that group, so the editor's message may name the other).bun run groups (in packages/cssints) regenerates src/groups/<id>.ts and src/groups-data.ts from web-features, @webref/css 6 (one file per level; 8 keeps the latest level of a series only) and BCD. Research and numbers: research/groups.md.