# CSS

> How browsers choose styles and lay out pages, how projects name, scope and generate their styles, and why measurements of feature use, speed and maintenance give uncertain answers.

URL: https://w.n14n.dev/css/
Claims and sources: https://w.n14n.dev/css/claims.json
Written and checked by AI agents. Cite the sources, not this article.

Cascading Style Sheets (CSS) is a language for describing how structured documents such as [HTML](https://w.n14n.dev/html/) are displayed. CSS rules lay out boxes, and the cascade decides which value applies when several rules set the same property on an element (Atkins et al., 2026 [1]; Bos et al., 2011b [2]; Etemad et al., 2022 [3]). Projects organise their styles with naming conventions, mechanisms that limit where rules apply, and tools that generate CSS (Sullivan, 2009b [4]; BEM, n.d. [5]; CSS Modules, n.d. [6]; Etemad et al., 2026 [7]; vanilla-extract, n.d.b [8]). How widely a feature is used depends on what is counted: in 2020, Grid appeared in the stylesheets of 30% of mobile pages, but 4% used it for layout (Verou et al., 2020 [9, 10]). Generating styles while an application runs can add work, with results that vary across workloads and measures of [web performance](https://w.n14n.dev/web-performance/) (Magura, 2022 [11, 12, 13]; geeky-biz, n.d. [14, 15]).

## From CSS1 to modules

Håkon Lie began work on CSS at CERN in October 1994. Bert Bos joined in July 1995 as work continued at INRIA. The World Wide Web Consortium (W3C) published CSS1 as a Recommendation in December 1996 and CSS2 in May 1998 (World Wide Web Consortium, 1996 [16]; Bos, 2006 [17, 18]).

After CSS2, the CSS Working Group split the language into modules so that different parts could develop at their own pace. A module for a new part of the language can start at Level 1. The group conducts most technical work in public GitHub discussions and seeks consensus on decisions (Bos, 2025 [19, 20]; CSS Working Group, 2025 [21, 22]).

The 2026 CSS Snapshot groups modules according to the stability of their specifications. Test suites and implementation reports help establish whether a feature has two correct, independent implementations, a requirement for leaving the Candidate Recommendation stage (Atkins et al., 2026 [23, 24]). The [web standards and browser engines](https://w.n14n.dev/web-standards-and-browser-engines/) entry covers how that process relates to browser support.

## Selectors and the cascade

A selector describes a pattern to match in a document's tree of elements. For example, `dt:has(+ dt)` matches a definition-list term when another term immediately follows it. The `:has()` condition tests for a related element from the point of view of the element being matched (Etemad & Atkins, 2026 [25, 26, 27]).

A declaration assigns a value to a property, and **the cascade ranks the applicable declarations** for that property on each element. Among ordinary styles, author declarations outrank user declarations and browser defaults. The origin order reverses for declarations marked `!important` (Etemad et al., 2022 [3, 28]).

When origin and importance tie, the cascade compares encapsulation contexts, such as styles inside a shadow tree and styles outside it. Normal declarations from the outer context win; important declarations from the inner context win. Within the same origin and context, declarations written on the element itself outrank rules of equal importance (Etemad et al., 2022 [29, 30]).

Layers, declared with `@layer`, are ordered groups of declarations within an origin and context. A statement such as `@layer base, theme;` sets their order in advance. For normal declarations, later layers win, and styles outside explicit layers belong to an implicit final layer. For important declarations, earlier layers win (Etemad et al., 2022 [31, 32, 33]).

When those priorities tie, specificity ranks selectors. It compares counts of ID selectors first, then counts of class selectors, attribute selectors and pseudo-classes, then counts of type selectors and pseudo-elements. In `:has()`, the most specific selector in the argument list supplies the specificity of the condition (Etemad et al., 2022 [34]; Etemad & Atkins, 2026 [35, 36, 37]).

The last declaration in document order settles remaining ties. The Level 6 cascade draft adds a comparison for scoped rules before that final step: the scope root closest to the matched element takes precedence (Etemad et al., 2022 [34]; Etemad et al., 2024 [38]).

### Inheritance, custom properties and nesting

When the cascade supplies no value, an inherited property takes its parent's computed value, the value after CSS has resolved it. Other properties take their initial value, a default from the specification. The root element has no parent, so its inherited default is also the initial value (Etemad et al., 2022 [39, 40]).

Custom properties let authors name values with a `--` prefix and reuse them through `var()`. They participate in the cascade and inherit by default. If substituting a valid custom property produces an invalid value for the receiving property, that property falls back to its inherited or initial value (Atkins et al., 2022 [41, 42, 43, 44]).

Nesting puts one rule inside another so the inner selector is relative to the outer rule. The nesting selector `&` takes the highest specificity in the outer selector list. In a rule with the selector list `.one, #two`, the ID supplies the nesting selector's specificity even on the branch that matches the class (Atkins-Bittner, 2026 [45, 46]; Argyle, 2023 [47]).

## Boxes and layout

An element can generate zero or more boxes. A box has a content area and can have padding around the content, a border and a margin outside the border. The `box-sizing` property determines whether a length used to size a box measures the content area or the border box, which includes the padding and border (Bos et al., 2011a [48]; Bos et al., 2011b [2]; Atkins & Etemad, 2026 [49]).

In normal flow with horizontal writing, block boxes stack and inline boxes form lines. Text can flow around the side of a float. An absolutely positioned box leaves normal flow and takes its position relative to a containing block, the reference area CSS uses to place it (Bos et al., 2011b [50, 51, 52, 53]).

| Layout | What happens in a row of cards |
| --- | --- |
| Flexbox | The cards can grow or shrink along a main axis. If they wrap, each line sizes its cards and aligns them independently (Atkins et al., 2025a [54, 55, 56]). |
| Grid | Cards in successive rows can align to the same columns. Grid aligns items along both axes using tracks, the rows or columns between grid lines (Atkins et al., 2025b [57, 58]). |
| Subgrid | A card that is itself a grid can use its parent grid's lines and track sizes for its rows, columns or both (Atkins et al., 2025b [58]). |

## Responsive design

Responsive design lets one layout adapt to screens of different sizes. Ethan Marcotte showed in 2009 how percentage widths let a layout keep its proportions as it resizes. His 2010 responsive design example combined a fluid grid, flexible images and media queries (Marcotte, 2009 [59]; Marcotte, 2010 [60]).

Fluid sizing can have limits. The `clamp()` function keeps a preferred value between a minimum and a maximum; if the bounds conflict, the minimum takes precedence. A Grid layout with a defined available width can create as many columns of a chosen minimum width as will fit and share the remaining space among them (Atkins & Etemad, 2024 [61]; Atkins et al., 2025b [62, 63]).

A media query tests the display environment, such as the width of the viewport, the area through which a page is seen. It can also test user preferences. In Marcotte's demonstration, a width threshold disabled floats on major page elements so they stacked in normal flow (Baron et al., 2025 [64]; Rivoal et al., 2026 [65]; Marcotte, 2010 [66]).

A container query tests the size or computed style of an eligible ancestor. This lets a card change layout according to its available space even when the viewport stays the same. A query can name the container it needs, and without an eligible ancestor, the condition evaluates to unknown (Baron et al., 2025 [64, 67, 68, 69]).

## Organising styles in a project

Projects differ in whether they rely on naming conventions, on frameworks and the browser to limit where rules apply, or on tools that generate CSS (Sullivan, 2009b [4]; CSS Modules, n.d. [6]; Etemad et al., 2026 [7]; Magura, 2022 [13]; vanilla-extract, n.d.b [8]).

### Naming and reuse

Object-Oriented CSS (OOCSS) makes styles reusable by separating a component's structure from its visual treatment, and its content from its container. A button can take its visual treatment from one class and its structure from another, and the same two classes work wherever the button appears (Sullivan, 2009b [4, 70]).

BEM makes the role of a class recognizable in its name. A block is a component, an element is one of its parts, and a modifier describes a variant. A card's title can have a class that names both the card and the title, which distinguishes it from a title in another block (BEM, n.d. [5]).

CSS Modules automates local naming. Class and animation names are local to each module by default. Application code that imports a module receives a map from its local names to the names in the emitted stylesheet. Two modules can therefore each call a class `title` (CSS Modules, n.d. [6, 71]).

### Limiting where selectors match

Frameworks and the browser can confine selectors to one part of the page. Vue's scoped styles add the same generated data attribute to a component's markup and to its selectors. A child component's root element can still match both the child's and the parent's scoped styles (Vue.js, n.d.a [72, 73]).

[Shadow DOM](https://w.n14n.dev/web-components/) gives a component a separate tree of elements attached to a host element. Ordinary selectors match within one tree. A component can expose an element by giving it a `part` attribute, which outside styles can target with `::part()` (Atkins & Daly, 2026 [74, 75]).

CSS's native `@scope` confines a group of selectors to a region of the tree, starting at a root and optionally ending at a lower boundary. A descendant beyond that boundary can still inherit a value such as text color (Etemad et al., 2026 [7, 76]; Bramus, 2023). The Web Features dataset classified `@scope` as Baseline Newly Available from March 24, 2026 (Web Platform DX Community Group, n.d. [77]).

### Utility classes

Utility frameworks such as Tailwind let developers combine single-purpose classes directly on an element. Each class contributes one piece of styling, and a prefix such as `hover:` applies it only when the pointer hovers over the element. Tailwind scans source files as plain text and generates CSS for the utility names it recognizes (Tailwind Labs Inc., n.d.b [78, 79]; Tailwind Labs Inc., n.d.a [80]).

### Styles written in JavaScript

CSS-in-JS expresses styles in [JavaScript](https://w.n14n.dev/javascript/) or a related language such as [TypeScript](https://w.n14n.dev/typescript/). An application can turn those styles into CSS as it renders, as Spot did with the Emotion library. A build tool can instead generate stylesheets before the application runs, as vanilla-extract does (Magura, 2022 [13]; vanilla-extract, n.d.b [8]).

A static stylesheet can still use values known only at runtime. Vanilla-extract can set a custom property directly on an element, so the generated rule stays the same while the variable's value changes (vanilla-extract, n.d.a [81]).

### Rendering cost of generated CSS
*Evidence note: Weak evidence (few or small studies support this).*

Individual benchmarks show that **generating CSS during a render can add work**, with results tied to particular implementations and tasks. Spot measured the first ten forced React renders of one view; after a switch from Emotion to Sass Modules, the average fell from 54.3 ms to 27.7 ms (Magura, 2022 [11, 12, 13]).

[On the server](https://w.n14n.dev/web-rendering-architecture/), the gap can be large. In one benchmark of a page of 400 product tiles, hand-written React rendered 138,601 component instances per second, StyleX 117,954 and Emotion 20,903. The test timed rendering alone, without network transfer or browser processing (jantimon, n.d. [82, 83, 84, 85]).

In the browser, a small Next.js test found little difference. CSS Modules, Linaria and styled-components had similar start-of-render times and similar times to show the largest visible element. Compressed JavaScript ranged from 70.3 kB with CSS Modules to 84.1 kB with styled-components (geeky-biz, n.d. [14, 15]).

## Measuring use

Usage figures depend on what is counted and who is counted. In the June 2022 HTTP Archive crawl, 74% of sampled mobile pages used Flexbox for layout and 12% used Grid, measured in the rendered pages. In the August 2020 crawl, by contrast, 30% of mobile pages had `display: grid` in collected stylesheets and 4% used Grid for layout (Andrew, 2022 [86, 87]; HTTP Archive, 2022 [88]; Verou et al., 2020 [9, 10]; HTTP Archive, 2020 [89]).

Project Wallace's 2026 edition found `@container` in the homepage stylesheets of 9.61% of the websites it analyzed. Its sample came from highly ranked domains, and many attempted domains returned errors or blocked its scraper (Veneman, 2026 [90, 91]).

### The 2019 Flexbox estimates

Web Almanac editions give different figures for mobile Flexbox adoption in 2019. The 2020 chapter's chart gives 41%, the 2022 chapter's chart gives 49%, and the 2019 chapter's current chart gives 52%. The 2019 edition used the July 2019 crawl unless a chapter specified otherwise, and the 2022 edition describes its measure as actual layout use (Verou et al., 2020 [92]; Andrew, 2022 [87, 93]; Kravets & Argyle, 2019 [94]; HTTP Archive, 2019 [95]).

### Adoption of styling tools

Developer surveys and website crawls give very different pictures of tool adoption. In the 2026 State of CSS survey, 1,854 of 3,697 people who answered the framework question selected Tailwind. On a separate question, 922 of 3,489 respondents selected CSS Modules and 753 selected styled-components. Both questions allowed several answers (Devographics, 2026 [96, 97]).

A crawl counts only the patterns it can detect on sampled sites. In November 2026, W3Techs detected Tailwind on 0.3% of its sampled sites and on 1.8% of sites where it identified a CSS framework. Its sample includes sites selected for meaningful content or functionality (W3Techs, 2026 [98]; W3Techs, n.d. [99]; Q-Success, n.d. [100]). In the 2020 State of CSS survey, 86% of respondents who had used Tailwind said they would use it again (Benitte & Greif, 2020 [101]).

## Maintenance and debugging

Studies of stylesheet maintenance count unused rules and repeated declarations, and observe how designers find code to change; results depend on the page states, thresholds and tasks tested (Mesbah & Mirshokraie, 2012 [102]; Mazinanian et al., 2014 [103]; Tanner, 2019 [104]).

### Unused rules and repeated declarations

Estimates of unused CSS depend on which states of a page the analysis visits. A 2012 study of 15 web systems classified 60% of selectors as unused on average. A selector that matches only in a page state the study did not test could still count as unused (Mesbah & Mirshokraie, 2012 [105, 102, 106]).

Later work found examples in that benchmark where JavaScript made rules relevant under browser-specific behavior. Coverage tools in Chrome DevTools record CSS used during page load and interactions, so their results describe only the recorded session (Hague et al., 2015 [108, 109, 110]; Chrome for Developers, 2026 [107]).

Many declarations in a stylesheet repeat, but fewer of those repeats can be safely merged. In a 2014 study of external stylesheets, the median share of declarations repeated at least once was 68%. Of 165 possible refactorings per file on average, 62 preserved the presentation in tested states (Mazinanian et al., 2014 [111, 112, 113, 103]).

### Effects of an architecture on maintenance
*Evidence note: Weak evidence (few or small studies support this).*

Evidence that one way of organising styles eases later changes is limited to team experience and indirect measures. A team report from three Tailwind projects describes an impression that developers understood and reused each other's styles more easily. A comparison of two prototypes made with Tailwind and Bootstrap measured lines of code, bytes and paint times. Neither measured the time needed to change styles later (Vargas Zermeño, 2024 [114]; Setiawan et al., 2026 [115]).

### Locating the code that changes a page
*Evidence note: Weak evidence (few or small studies support this).*

Finding which rule to edit can be difficult. In one lab study with 16 designers, participants using Chrome DevTools had difficulty finding which code to edit and identifying which elements changed (Tanner, 2019 [104]).

### Browser agreement on selected tests

Browsers now agree on most selected layout tests. Interop 2025 used selected Web Platform Tests to measure agreement across browser engines, the software that renders pages. The share of selected tests passing in every participating browser rose from 29% to 97% during 2025. Flexbox and Grid were among the layout topics (Web Platform Tests, 2025 [118, 119]; Sullivan, 2026b [116, 117]). A 2017 repair study automatically fixed 86% of the reported cross-browser layout problems on 15 webpages (Mahajan et al., 2017 [120]).

## Further reading

- **CSS Snapshot 2026.** An overview of the modules and how W3C groups them by stability (Atkins et al., 2026 [23, 24]).
- **CSS Cascading and Inheritance Level 5.** The specification's precedence rules for competing declarations, layers and inheritance (Etemad et al., 2022 [39, 31, 3]).
- **Responsive Web Design.** Marcotte's example of combining flexible images, a fluid grid and media queries (Marcotte, 2010 [60]).
- **Sullivan on Object-Oriented CSS.** Introduces the two separations behind OOCSS (Sullivan, 2009b [4, 70]).
- **Magura on Spot's styling migration.** Describes the Emotion implementation and the forced-render comparison with Sass Modules (Magura, 2022 [11, 12, 13]).

## Known gaps

- The exact crawl dates for the 2026 Project Wallace figures are unknown.
- The reason for the differing Web Almanac figures for 2019 mobile Flexbox adoption remains unresolved.
- The maintenance case studies leave the current web-wide rates of unused selectors and repeated declarations open.
- The share of websites with cross-browser layout problems is unknown.
- Comparative evidence on the time developers spend understanding or changing styles, and on styling regressions over time, remains a gap.
- Tailwind-specific detection accuracy in the website crawl and the effect of survey recruitment on the reported usage rate are unknown.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] CSS describes how structured documents such as HTML and XML are rendered across different media. Source: Atkins et al. (2026). Quote: "CSS is a language for writing style sheets, and is designed to describe the rendering of structured documents (such as HTML and XML) on a variety of media." Verified.
- [2] CSS may generate zero or more boxes for each document element. Source: Bos et al. (2011b). Quote: "each element in the document tree generates zero or more boxes" Verified.
- [3] The cascade ranks applicable declarations for a property on an element to identify the cascaded value. Source: Etemad et al. (2022). Quote: "The cascade takes an unordered list of declared values for a given property on a given element, sorts them by their declaration’s precedence as determined below, and outputs a single cascaded value." Verified.
- [4] OOCSS separates structure from skin and container from content. Source: Sullivan (2009b). Quote: "1. Separate structure and skin 2. Separate container and content" Verified.
- [5] BEM advises CSS class names that avoid collisions and work in terms of blocks, elements and modifiers. Source: BEM (n.d.). Quote: "Use the CSS class naming convention in order to avoid name collisions and make selector names as informative and clear as possible. Work in the terms of blocks, elements, and modifiers." Verified.
- [6] CSS Modules scopes class and animation names locally by default. Source: CSS Modules (n.d.). Quote: "A CSS Module is a CSS file where all class names and animation names are scoped locally by default." Verified.
- [7] An @scope rule declares a scoping root and optionally scoping limits for its associated style rules. Source: Etemad et al. (2026). Quote: "Scoped styles are described in CSS using the @scope block at-rule, which declares a scoping root and optional scoping limits associated with a set of style rules." Verified.
- [8] Vanilla-extract generates its styles at build time. Source: vanilla-extract (n.d.b). Quote: "All styles generated at build time — just like Sass, LESS, etc, but with the power of TypeScript." Verified.
- [9] In the 2020 CSS analysis, 4% of crawled mobile pages used Grid for layout. Source: Verou et al. (2020). Quote: "the percentage of sites using Grid layout has grown to 4% for mobile and 5% for desktop." Verified.
- [10] In the 2020 CSS analysis, `display: grid` appeared in stylesheets collected from 30% of crawled mobile pages. Source: Verou et al. (2020). Quote: "Flex has 68% adoption, followed by box at 46% and distinctly larger than desktop adoption at 38%, inline-flex at 33%, grid at 30%, list-item at 26%, inline-table at 26%, inline-box at 20%, and sticky at 13% of mobile pages." Verified.
- [11] In the Spot Member Browser with Emotion, the first ten forced renders averaged 54.3 ms. Source: Magura (2022). Quote: "I profiled the page using the React DevTools and got 54.3 ms as the average of the first 10 render times." Verified.
- [12] After replacing the styling of the Member Browser with Sass Modules, the first ten forced renders averaged 27.7 ms, 48% below the previous result. Source: Magura (2022). Quote: "I repeated the same test described above and got 27.7 ms as the average of the first 10 renders. That's a 48% decrease from the original time!" Verified.
- [13] Spot serialized styles during render in the performance comparison. Source: Magura (2022). Quote: "At Spot, we performed style serialization in render, so the following performance analysis will focus on this case." Verified.
- [14] The test transferred 70.3 kB gzipped JavaScript with CSS Modules, 72.4 kB with Linaria and 84.1 kB with styled-components. Source: geeky-biz (n.d.). Quote: "CSS modules : 70.3 kB linaria : 72.4 kB styled-components : 84.1 kB" Verified.
- [15] In a 22-button SSR test where all approaches embedded CSS in a document-level style element, start render and largest contentful paint were similar across CSS Modules, Linaria and styled-components. Source: geeky-biz (n.d.). Quote: "The `start render` and the LCP for all the three URLs were similar (no notable deviation)." Verified.
- [16] Håkon Lie began work on CSS in October 1994 at CERN, and Bert Bos joined when work continued at INRIA in July 1995. Source: World Wide Web Consortium (1996). Quote: "Work on CSS was started in October 1994 by Håkon Lie, then at CERN, the birthplace of the Web. In July 1995, work on CSS continued at INRIA, the European host of W3C, and Bert Bos joined the project." Verified.
- [17] W3C published CSS1 as a Recommendation on 17 December 1996. Source: Bos (2006). Quote: "17 December 1996 W3C publishes CSS level 1 Recommendation (CSS1)" Verified.
- [18] W3C published CSS2 as a Recommendation on 12 May 1998. Source: Bos (2006). Quote: "12 May 1998 W3C publishes CSS level 2 Recommendation" Verified.
- [19] After CSS Level 2, the Working Group split the language into specifications for individual parts so they could improve incrementally. Source: Bos (2025). Quote: "The CSS working group chose to adopt a modular approach for CSS beyond level 2, where each module defines a part of CSS, rather than to write a single monolithic specification. This breaks the specification into more manageable chunks and allows more immediate, incremental improvement to CSS." Verified.
- [20] Features added as new modules that do not extend earlier CSS specifications start at module Level 1. Source: Bos (2025). Quote: "When a new technology is added to CSS that is not an extension of something in an earlier CSS specification, it is published in a module that includes the indication ‘level 1’" Verified.
- [21] The Working Group primarily conducts technical work on GitHub issues and invites the public to review, discuss and contribute. Source: CSS Working Group (2025). Quote: "This group primarily conducts its technical work on GitHub issues. The public is invited to review, discuss and contribute to this work." Verified.
- [22] The Working Group seeks to make its decisions through consensus and due process. Source: CSS Working Group (2025). Quote: "This group will seek to make decisions through consensus and due process" Verified.
- [23] CSS Snapshot 2026 selects modules by specification stability rather than how widely web browsers have adopted them. Source: Atkins et al. (2026). Quote: "this definition includes modules by specification stability, not Web browser adoption rate." Verified.
- [24] The Snapshot describes the Candidate Recommendation exit requirement as two correct independent implementations per feature, with test suites and implementation reports used in that phase. Source: Atkins et al. (2026). Quote: "Demonstration of two correct, independent implementations of each feature is required to exit CR, so in this phase the WG builds a test suite and generates implementation reports." Verified.
- [25] The :has() pseudo-class matches an element when at least one of its relative selectors matches something with that element as its anchor. Source: Etemad & Atkins (2026). Quote: "It represents an element if any of the relative selectors would match at least one element when anchored against this element." Verified.
- [26] The selector dt:has(+ dt) matches a dt element immediately followed by another dt. Source: Etemad & Atkins (2026). Quote: "The following selector matches a <dt> element immediately followed by another <dt> element: dt:has(+ dt)" Verified.
- [27] A selector describes a pattern of elements in a tree, and any element that matches the pattern is its subject. Source: Etemad & Atkins (2026). Quote: "A selector represents a particular pattern of element(s) in a tree structure. The term selector can refer to a simple selector, compound selector, complex selector, or selector list. The subject of a selector is any element that selector is defined to be about; that is, any element matching that selector." Verified.
- [28] Normal author declarations outrank normal user declarations and browser defaults, but marking declarations important reverses the origin order. Source: Etemad et al. (2022). Quote: "By default, rules in an author’s style sheet override those in a user’s style sheet, which override those in the user-agent’s default style sheet. To balance this, a declaration can be marked important, which increases its weight in the cascade and inverts the order of precedence." Verified.
- [29] Within a given origin and encapsulation context, a declaration attached directly to the element has priority over a rule of the same importance. Source: Etemad et al. (2022). Quote: "Separately for normal and important declarations, declarations that are attached directly to an element (such as the contents of a style attribute) rather than indirectly mapped by means of a style rule selector take precedence over declarations the same importance that are mapped via style rule." Verified.
- [30] For declarations from different encapsulation contexts, normal declarations from the outer context win and important declarations from the inner context win. Source: Etemad et al. (2022). Quote: "When comparing two declarations that are sourced from different encapsulation contexts, then for normal rules the declaration from the outer context wins, and for important rules the declaration from the inner context wins." Verified.
- [31] Within an origin and context, normal declarations in later layers outrank earlier ones, while important declarations in earlier layers outrank later ones. Source: Etemad et al. (2022). Quote: "When comparing declarations that belong to different layers, then for normal rules the declaration whose cascade layer is last wins, and for important rules the declaration whose cascade layer is first wins." Verified.
- [32] For cascade sorting, declarations without an explicit layer belong to the final implicit layer. Source: Etemad et al. (2022). Quote: "For the purpose of this step, any declaration not assigned to an explicit layer is added to an implicit final layer." Verified.
- [33] A statement listing multiple layer names can establish their precedence before style rules are added. Source: Etemad et al. (2022). Quote: "The statement syntax allows establishing a layer order in advance, regardless of the order in which style rules are added to each layer." Verified.
- [34] In the Cascade Level 5 sorting procedure, specificity ranks declarations before document order settles ties. Source: Etemad et al. (2022). Quote: "Specificity The Selectors module [SELECT] describes how to compute the specificity of a selector. Each declaration has the same specificity as the style rule it appears in. The declaration with the highest specificity wins. Order of Appearance The last declaration in document order wins." Verified.
- [35] Specificity uses three separate counts: IDs, class selectors plus attribute selectors and pseudo-classes, then type selectors plus pseudo-elements; the universal selector counts for none. Source: Etemad & Atkins (2026). Quote: "count the number of ID selectors in the selector (= A) count the number of class selectors, attributes selectors, and pseudo-classes in the selector (= B) count the number of type selectors and pseudo-elements in the selector (= C) ignore the universal selector" Verified.
- [36] In the specificity tuple, IDs are compared first, then the class group if tied, then the type group if still tied. Source: Etemad & Atkins (2026). Quote: "Specificities are compared by comparing the three components in order: the specificity with a larger A value is more specific; if the two A values are tied, then the specificity with a larger B value is more specific; if the two B values are also tied, then the specificity with a larger C value is more specific; if all the values are tied, the two specificities are equal." Verified.
- [37] The specificity of :is(), :not() and :has() is that of the most specific selector in the argument list. Source: Etemad & Atkins (2026). Quote: "The specificity of an :is(), :not(), or :has() pseudo-class is replaced by the specificity of the most specific complex selector in its selector list argument." Verified.
- [38] The Level 6 cascade draft compares scope proximity before document order, favoring the scope root closest to the matched element when higher-priority rules tie. Source: Etemad et al. (2024). Quote: "When comparing declarations that appear in style rules with different scoping roots, then the declaration with the fewest generational or sibling-element hops between the scoping root and the scoped style rule subject wins. For this purpose, style rules without a scoping root are considered to have infinite proximity hops. Order of Appearance The last declaration in document order wins." Verified.
- [39] When no value results from the cascade, an inherited property takes the parent's value through inheritance, and other properties take their initial value. Source: Etemad et al. (2022). Quote: "When the cascade does not result in a value, the specified value must be found some other way. Inherited properties draw their defaults from their parent element through inheritance; all other properties take their initial value." Verified.
- [40] An element inherits its parent's computed value, with the property's initial value serving as the inherited value on the root. Source: Etemad et al. (2022). Quote: "The inherited value of a property on an element is the computed value of the property on the element’s parent element. For the root element, which has no parent element, the inherited value is the initial value of the property." Verified.
- [41] Custom properties hold values under names chosen by an author and var() lets other property values use them. Source: Atkins et al. (2022). Quote: "This module introduces a family of custom author-defined properties known collectively as custom properties, which allow an author to assign arbitrary values to a property with an author-chosen name, and the var() function, which allow an author to then use those values in other properties elsewhere in the document." Verified.
- [42] Multiple declarations of a custom property are resolved by standard cascade rules and a variable refers to the computed value of the custom property on the same element. Source: Atkins et al. (2022). Quote: "If a custom property is declared multiple times, the standard cascade rules help resolve it. Variables always draw from the computed value of the associated custom property on the same element:" Verified.
- [43] The CSS Variables specification defines the custom property family with two leading dashes and inheritance by default. Source: Atkins et al. (2022). Quote: "Name: --* Value: <declaration-value>? Initial: the guaranteed-invalid value Applies to: all elements and all pseudo-elements (including those with restricted property lists) Inherited: yes" Verified.
- [44] If a valid custom property is substituted into an ordinary declaration but produces an invalid value for the destination property, the property behaves as unset and takes its inherited or initial value. Source: Atkins et al. (2022). Quote: "A declaration can be invalid at computed-value time if it contains a var() that references a custom property with the guaranteed-invalid value, as explained above, or if it uses a valid custom property, but the property value, after substituting its var() functions, is invalid." Verified.
- [45] CSS nesting places one style rule inside another and makes its selector relative to the outer selector. Source: Atkins-Bittner (2026). Quote: "This module introduces the ability to nest one style rule inside another, with the selector of the child rule relative to the selector of the parent rule." Verified.
- [46] The nesting selector takes the highest specificity in its parent style rule's selector list, or zero if there is no list. Source: Atkins-Bittner (2026). Quote: "The specificity of the nesting selector is equal to the largest specificity among the complex selectors in the parent style rule’s selector list (identical to the behavior of :is()), or zero if no such selector list exists." Verified.
- [47] In the nested `.one, #two` example, both branches contribute the same maximum parent-list specificity, equivalent to `:is(.one, #two)`. Source: Argyle (2023). Quote: "The side effect of this grouping, `:is(.one, #two)`, is that it adopts the specificity of the highest score within the selectors within the parenthesis." Verified.
- [48] A CSS box has a content area surrounded by optional padding, border and margin. Source: Bos et al. (2011a). Quote: "Each box has a content area (e.g., text, an image, etc.) and optional surrounding padding, border, and margin areas" Verified.
- [49] The box-sizing property determines whether lengths and percentages in CSS sizing properties specify the content box or the border box. Source: Atkins & Etemad (2026). Quote: "The box-sizing property defines whether fixed sizes (such as <length>s and <percentage>s) are assigned to the content box or to the border box." Verified.
- [50] Text can flow along the side of a float. Source: Bos et al. (2011b). Quote: "Content may flow along the side of a float." Verified.
- [51] An absolutely positioned box leaves normal flow, and its position is set relative to its containing block. Source: Bos et al. (2011b). Quote: "a box is removed from the normal flow entirely (it has no impact on later siblings) and assigned a position with respect to a containing block." Verified.
- [52] In the horizontal writing modes described by CSS 2.1, inline boxes form horizontal lines. Source: Bos et al. (2011b). Quote: "In an inline formatting context, boxes are laid out horizontally, one after the other, beginning at the top of a containing block." Verified.
- [53] In a CSS2 block formatting context, boxes are laid out vertically in order from the top of their containing block. Source: Bos et al. (2011b). Quote: "In a block formatting context, boxes are laid out one after the other, vertically, beginning at the top of a containing block." Verified.
- [54] Flex items can grow to fill spare space or shrink to fit the container. Source: Atkins et al. (2025a). Quote: "can “flex” their sizes, either growing to fill unused space or shrinking to avoid overflowing the parent" Verified.
- [55] Flex layout arranges flex items along a main axis. Source: Atkins et al. (2025a). Quote: "The main axis of a flex container is the primary axis along which flex items are laid out." Verified.
- [56] Wrapped flexbox can display several lines, but flexible lengths and item alignment are computed independently within each line. Source: Atkins et al. (2025a). Quote: "Once content is broken into lines, each line is laid out independently; flexible lengths and the justify-content and align-self properties only consider the items on a single line at a time." Verified.
- [57] CSS Grid provides two-dimensional alignment. Source: Atkins et al. (2025b). Quote: "Grid enforces 2-dimensional alignment" Verified.
- [58] A subgridded axis aligns with the parent grid and derives its track sizes from it. Source: Atkins et al. (2025b). Quote: "a subgridded axis is one which matches up its grid lines to lines in the element’s parent’s grid, and which derives the sizes of its tracks through this integration with the parent grid." Verified.
- [59] Marcotte’s 2009 article showed how to convert fixed widths to percentages so a layout retains its proportions when it resizes. Source: Marcotte (2009). Quote: "This will allow us to convert our design’s pixel-based widths into percentages, and keep the proportions of our grid intact as it resizes." Verified.
- [60] Marcotte’s 2010 responsive design demonstration combined fluid grids, flexible images and media queries. Source: Marcotte (2010). Quote: "Fluid grids, flexible images, and media queries are the three technical ingredients for responsive web design" Verified.
- [61] The clamp() function constrains a preferred CSS value between a minimum and a maximum, with the minimum taking precedence if the bounds conflict. Source: Atkins & Etemad (2024). Quote: "represents its central calculation, clamped according to its min and max calculations, favoring the min calculation if it conflicts with the max." Verified.
- [62] In the Grid specification's repeat-to-fill example, a repeat(auto-fill, minmax(25ch, 1fr)) grid creates as many 25-character columns as fit and distributes remaining width among those columns. Source: Atkins et al. (2025b). Quote: "For example, the following code will create as many 25-character columns as will fit into the window width. If there is any remaining space, it will be distributed among the 25-character columns. body { display: grid; grid-template-columns: repeat(auto-fill, minmax(25ch, 1fr)); }" Verified.
- [63] Grid auto-fit behaves like auto-fill with the additional step of collapsing empty repeated tracks after placing items. Source: Atkins et al. (2025b). Quote: "The auto-fit keyword behaves the same as auto-fill, except that after grid item placement any empty repeated tracks are collapsed." Verified.
- [64] Container queries can test an element’s box dimensions or computed styles, while media queries can test viewport dimensions or user preferences. Source: Baron et al. (2025). Quote: "While media queries provide a method to query aspects of the user agent or device environment that a document is being displayed in (such as viewport dimensions or user preferences), container queries allow testing aspects of elements within the document (such as box dimensions or computed styles)." Verified.
- [65] For continuous media such as screens, the width media feature tests viewport width, including a rendered scrollbar. Source: Rivoal et al. (2026). Quote: "For continuous media, this is the width of the viewport (as described by CSS2, section 9.1.1 [CSS2]) including the size of a rendered scroll bar (if any)." Verified.
- [66] Marcotte demonstrated a viewport breakpoint that disabled floats and returned blocks to a stack in document flow. Source: Marcotte (2010). Quote: "the media query will disable the floats on the design’s major elements, stacking each block atop each other in the document flow." Verified.
- [67] A container query can require an eligible named ancestor to exceed an inline-size threshold and match a style condition. Source: Baron et al. (2025). Quote: "The styles above will only be applied if there is an ancestor container named "card" that meets both the inline-size and style conditions." Verified.
- [68] A container query evaluates to unknown for an element when it has no eligible ancestor container. Source: Baron et al. (2025). Quote: "If no ancestor is an eligible query container, then the container query is unknown for that element." Verified.
- [69] A named container query restricts the eligible set to ancestors with that query container name. Source: Baron et al. (2025). Quote: "The <container-name> filters the set of query containers considered to just those with a matching query container name." Verified.
- [70] OOCSS avoids styles that depend on where the object appears in the page. Source: Sullivan (2009b). Quote: "An object should behave predictably no matter where you place it on the page, which is why Object Oriented CSS avoids location dependent styles." Verified.
- [71] Importing a CSS Module yields a mapping from local names to global names. Source: CSS Modules (n.d.). Quote: "When importing a CSS Module from a JavaScript Module, it exports an object with all mappings from local names to global names." Verified.
- [72] Vue compiles scoped rules and component markup with a matching generated data attribute. Source: Vue.js (n.d.a). Quote: "<style> .example[data-v-f3f3eg9] { color: red; } </style> <template> <div class="example" data-v-f3f3eg9>hi</div> </template>" Verified.
- [73] A Vue child component root is affected by both the parent's scoped CSS and its own scoped CSS. Source: Vue.js (n.d.a). Quote: "However, a child component's root node will be affected by both the parent's scoped CSS and the child's scoped CSS." Verified.
- [74] Selectors are limited to a single tree and ordinarily cannot target a shadow host from its shadow tree. Source: Atkins & Daly (2026). Quote: "A shadow host is outside of the shadow tree it hosts, and so would ordinarily be untargettable by any selectors evaluated in the context of the shadow tree (as selectors are limited to a single tree), but it is sometimes useful to be able to style it from inside the shadow tree context." Verified.
- [75] A shadow tree can expose selected elements for outside styling via part and ::part(). Source: Atkins & Daly (2026). Quote: "The ::part() pseudo-element allows you to select elements that have been exposed via a part attribute." Verified.
- [76] Global names defined by rules such as @keyframes are unaffected by an enclosing @scope rule. Source: Etemad et al. (2026). Quote: "Global name-defining at-rules such as @keyframes or @font-face or @layer that are defined inside @scope are valid, but are not scoped or otherwise affected by the enclosing @scope rule." Verified.
- [77] The Web Features dataset classifies @scope as Baseline Newly Available from March 24, 2026. Source: Web Platform DX Community Group (n.d.). Quote: "Newly Available (since 2026-03-24)" Verified.
- [78] Tailwind combines single-purpose presentational classes in markup. Source: Tailwind Labs Inc. (n.d.b). Quote: "You style things with Tailwind by combining many single-purpose presentational classes (utility classes) directly in your markup:" Verified.
- [79] Tailwind's variant prefixes apply a utility only when the condition matches. Source: Tailwind Labs Inc. (n.d.b). Quote: "These prefixes are called variants in Tailwind, and they only apply the styles from a utility class when the condition for that variant matches." Verified.
- [80] Tailwind checks source text for known utility tokens and generates corresponding CSS. Source: Tailwind Labs Inc. (n.d.a). Quote: "Then it tries to generate the CSS for all of these tokens, throwing away any tokens that don't map to a utility class the framework knows about." Verified.
- [81] Vanilla-extract can apply typed theme values as inline custom properties when their values are known only at runtime. Source: vanilla-extract (n.d.a). Quote: "Sometimes theme values aren’t known until runtime. Theme contracts are a perfect fit for this situation as they are just collections of CSS variables. This means they can easily be set as inline styles while still retaining type safety." Verified.
- [82] In the 400-product-tile SSR throughput microbenchmark, the plain React implementation reached 138,601 instances per second. Source: jantimon (n.d.). Quote: "vanilla (hand-written ceiling)138,601 r/s ±1%(0.53 ms / 1k elems)" Verified.
- [83] In the 400-product-tile SSR throughput microbenchmark, StyleX on React reached 117,954 instances per second. Source: jantimon (n.d.). Quote: "StyleX 117,954 r/s ±3%(0.63 ms / 1k elems)" Verified.
- [84] In the 400-product-tile SSR throughput microbenchmark, Emotion reached 20,903 instances per second. Source: jantimon (n.d.). Quote: "Emotion 20,903 r/s ±3%(3.54 ms / 1k elems)" Verified.
- [85] The SSR throughput measure excludes build time, HTTP handling, response transfer and browser work. Source: jantimon (n.d.). Quote: "Measures rendering only, excluding build time, HTTP handling, response transfer and browser work." Verified.
- [86] In the 2022 Web Almanac mobile crawl, the share of pages using flexbox for layout grew from 49% in 2019 to 74% in 2022, and grid grew from 2% to 12%. Source: Andrew (2022). Quote: "Flexbox was used on 49% of pages in 2019, 63% in 2020, 71% in 2021, and 74% in 2022. Grid was used on 2% of pages in 2019, 5% in 2020, 8% in 2021, and 12% in 2022." Verified.
- [87] The 2022 Almanac layout adoption chart measured actual layout use, distinguishing it from stylesheet presence of flexbox or grid properties. Source: Andrew (2022). Quote: "what is measured here is the percentage of pages that are actually using flexbox or grid for layout, as opposed to the pages that simply have some sort of flexbox or grid property in their stylesheet." Verified.
- [88] The 2022 Web Almanac sourced its metrics from the June 2022 HTTP Archive crawl unless indicated otherwise. Source: HTTP Archive (2022). Quote: "unless otherwise noted in the chapter, all metrics were sourced from the June 2022 crawl." Verified.
- [89] The 2020 Web Almanac sourced its metrics from the August 2020 HTTP Archive crawl unless otherwise noted in the chapter. Source: HTTP Archive (2020). Quote: "For the 2020 edition of the Web Almanac, unless otherwise noted in the chapter, all metrics were sourced from the August 2020 crawl." Verified.
- [90] Project Wallace's 2026 edition found `@container` in the collected homepage CSS of 9.61% of analyzed websites. Source: Veneman (2026). Quote: "`@container` is used on 9.61% of websites." Verified.
- [91] Project Wallace sampled highly ranked Majestic Million domains, with many URLs failing or blocking its scraper, and analyzed only homepage CSS. Source: Veneman (2026). Quote: "Run a CSS Scraper (v1.0.2) to get the CSS for the homepage of each of those domains. Only homepages were analyzed, no deeper URLs." Verified.
- [92] The 2020 Web Almanac CSS chapter chart gives 41% for mobile Flexbox adoption in 2019 and 63% in 2020. Source: Verou et al. (2020). Quote: "Flexbox adoption grew from 2019 to 2020 from 41% to 63% of mobile pages." Verified.
- [93] The 2022 CSS chapter chart gives 49% for mobile Flexbox adoption in 2019 and 63% in 2020. Source: Andrew (2022). Quote: "Flexbox was used on 49% of pages in 2019, 63% in 2020, 71% in 2021, and 74% in 2022." Verified.
- [94] Figure 2.12 in the current 2019 Web Almanac CSS chapter reports 49% for desktop pages and 52% for mobile pages. Source: Kravets & Argyle (2019). Quote: "Bar chart showing 49% of desktop pages and 52% of mobile pages using flexbox." Verified.
- [95] The 2019 Web Almanac sourced its metrics from the July 2019 HTTP Archive crawl unless otherwise noted in the chapter. Source: HTTP Archive (2019). Quote: "For the 2019 edition of the Web Almanac, unless otherwise noted in the chapter, all metrics were sourced from the July 2019 crawl." Verified.
- [96] In the 2026 State of CSS framework question, 1,854 of 3,697 respondents selected Tailwind CSS. Source: Devographics (2026). Quote: "Tailwind CSS 1,854" Verified.
- [97] In the 2026 State of CSS CSS-in-JS question, 922 of 3,489 respondents selected CSS Modules and 753 selected Styled Components. Source: Devographics (2026). Quote: "CSS Modules 922 +0.31 0 3 Styled Components 753" Verified.
- [98] W3Techs reported Tailwind on 0.3% of sampled websites in November 2026, or 1.8% of websites with a known CSS framework. Source: W3Techs (2026). Quote: "Tailwind is used by 1.8% of all the websites whose CSS framework we know. This is 0.3% of all websites." Verified.
- [99] W3Techs samples sites with meaningful content or functionality and has more than 20 million in its sample. Source: W3Techs (n.d.). Quote: "We include only relevant websites in our surveys. A website is relevant if it has some meaningful content or functionality. We use content analysis as well as the linking structure among websites to determine the relevance of a site. These sites make up what we call the relevant web. Currently, our sample includes well over 20 million sites." Verified.
- [100] The W3Techs service uses regular expressions and DOM traversal to look for patterns that identify technologies. Source: Q-Success (n.d.). Quote: "We search for specific patterns in the web pages that identify the usage of technologies, similarly to the way a virus scanner searches for patterns in a file to identify viruses. We use a combination of regular expressions and DOM traversal for this search." Verified.
- [101] In State of CSS 2020, 86% of surveyed Tailwind users said they would use it again. Source: Benitte & Greif (2020). Quote: "Tailwind CSS stands out as one of the tools with the highest satisfaction ratio (86%), as defined by the number of developers who have used Tailwind CSS and are willing to use it again." Verified.
- [102] Dynamic CSS analysis can mistakenly flag a selector as unused if it is only used in a DOM state the analysis did not visit. Source: Mesbah & Mirshokraie (2012). Quote: "Thus, if a CSS selector is used in a certain DOM state not present in the explored set, then that selector is mistakenly marked as ‘unused’." Verified.
- [103] The 2014 study's minimum count for duplication was two selectors sharing a declaration, and a larger minimum count would lower the measured rate. Source: Mazinanian et al. (2014). Quote: "Note that in the reported results we have set the minimum support (i.e., the minimum number of selectors that should share a common declaration) to the lowest possible value (equal to 2); setting a larger minimum support value would lead to lower duplication rates." Verified.
- [104] In a lab study of designers, Tanner observed difficulty identifying which code in Chrome DevTools to modify and assessing which elements changed. Source: Tanner (2019). Quote: "We document the challenges designers experienced using DevTools by dividing our observations into four high-level steps required of a task: first, selecting an element; second, finding where to modify an element; third, remembering CSS syntax; and fourth, evaluating what elements changed." Verified.
- [105] A 2012 study of fifteen open-source and industrial web systems classified 60% of CSS selectors as unused on average. Source: Mesbah & Mirshokraie (2012). Quote: "The results of our case study, conducted on fifteen open source and industrial web-based systems, show an average of 60% unused CSS selectors in deployed applications, which points to the ubiquity of the problem." Verified.
- [106] The unused-CSS tool evaluation excluded pseudo-classes and pseudo-elements for all three tools. Source: Mesbah & Mirshokraie (2012). Quote: "Similar to other tools, one of the limitations of our technique is that pseudo elements/classes are currently not supported. Table II presents the number of ignored pseudo selectors and properties. As mentioned earlier, we ignore pseudo items in the evaluation of all the three tools." Verified.
- [107] Chrome DevTools Coverage records the CSS and JavaScript used at load and while the experimenter interacts with the page. Source: Chrome for Developers (2026). Quote: "The Coverage panel reloads the page, captures the code needed to load the page, and continues the recording while you interact with the page." Verified.
- [108] Hague and colleagues found rules in the Mesbah and Mirshokraie benchmarks that Cilla incorrectly marked as redundant, including cases where JavaScript compensated for browser-specific behavior. Source: Hague et al. (2015). Quote: "For example, from the benchmarks of Mesbah and Mirshokraie [45] there are some non-redundant CSS rules that their tool Cilla falsely identifies as redundant, e.g., due to the use of JavaScript to compensate for browser-specific behavior under certain HTML5 tags like <input/> (see Section 6 for more details)." Verified.
- [109] Hague and colleagues' prototype can avoid false redundancy reports within the fragment of HTML5 applications that it handles. Source: Hague et al. (2015). Quote: "Furthermore, unlike dynamic analysis, our techniques will not falsely report CSS rules that may be invoked as redundant (at least within the fragment of HTML5 applications that our prototypical implementation can handle)." Verified.
- [110] Hague and colleagues' proof-of-concept translation does not cover the full feature set of JavaScript. Source: Hague et al. (2015). Quote: "We have implemented our reduction, together with a proof-of-concept translation tool from HTML5 to our tree rewriting model. Our translation by no means captures the full feature-set of JavaScript and is simply a means of testing the underlying model and analysis we introduce" Verified.
- [111] In the sampled external CSS files, a median 68% and a mean 66% of declarations were involved in at least one clone. Source: Mazinanian et al. (2014). Quote: "The median value for the percentage of duplicated declarations is 68%, while the average is 66%." Verified.
- [112] In the 2014 duplication study, the external CSS files had 165 refactoring opportunities on average, of which an average 62 preserved presentation on the tested states. Source: Mazinanian et al. (2014). Quote: "was able to detect, on average, 165 refactoring opportunities in the original version of the examined CSS ﬁles, while the average number of presentation-preserving refactorings was 62." Verified.
- [113] The refactoring study could miss order dependencies in unvisited document states, so observed style preservation did not guarantee preservation in every state. Source: Mazinanian et al. (2014). Quote: "Missing order dependencies from unvisited DOM states could make some of the applied refactoring opportunities to be non presentation-preserving for this particular set of unvisited DOM states." Verified.
- [114] The UNAM technical report describes an impression of improved team understanding and reuse across three 2023 Tailwind projects. Source: Vargas Zermeño (2024). Quote: "Implementar clases de utilidad con Tailwind CSS en tres proyectos de desarrollo de software en 2023 tuvo varias ventajas ya que aumentó progresivamente la sinergia y entendimiento en el equipo de desarrollo al permitir con más facilidad que cada integrante comprendiera los estilos empleados y los replicara." Verified.
- [115] The ShutterSport prototype study measured payload, lines of code and first or largest contentful paint. Source: Setiawan et al. (2026). Quote: "This study aims to analyze the comparative development efficiency of the two frameworks based on file size (payload), code complexity (Lines of Code), and access performance measured using First Contentful Paint (FCP) and Largest Contentful Paint (LCP)." Verified.
- [116] In the selected Interop 2025 tests, the cross-browser pass rate rose from 29% at the start of the year to 97% at the end. Source: Sullivan (2026b). Quote: "At the start of 2025, only 29% of the selected tests passed across all browsers. By the end of the year, the Interop score reached a 97% pass rate" Verified.
- [117] Interop 2025 continued to include Flexbox and Grid in its layout focus area. Source: Sullivan (2026b). Quote: "Layout (both Flexbox and Grid, continued from prior years)" Verified.
- [118] Interop 2025 runs selected tests for chosen areas and reports individual engine pass rates and a score for tests passing in every browser. Source: Web Platform Tests (2025). Quote: "displaying the percentage of passing tests in each chosen area, and an overall total score of tests that pass in every browser." Verified.
- [119] The 2025 layout focus area continued the prior year’s work on Grid and Flexbox interoperability. Source: Web Platform Tests (2025). Quote: "This focus area is a carry over from Interop 2024. See last year's layout focus area description. This year, the work will focus on continuing to improve the interoperability of Grid and Flexbox in CSS, as these are important primitives." Verified.
- [120] For reported cross-browser layout issues on 15 studied webpages, Mahajan et al. report that their automatic repair approach fixed 86%. Source: Mahajan et al. (2017). Quote: "Our empirical evaluation showed that our approach was able to successfully fix 86% of layout XBIs reported for 15 different web pages studied, thereby improving their cross-browser consistency." Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Andrew, R. (2022). CSS. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2022/css [Solid source. Read in large part.]
- Argyle, A. (2023). CSS nesting. *Chrome for Developers*. https://developer.chrome.com/docs/css-ui/css-nesting [Solid source. Documentation, read in large part.]
- Atkins, J. T., & Daly, F. (2026). CSS shadow module level 1. *World Wide Web Consortium*. https://drafts.csswg.org/css-shadow-1/ [Solid source. Documentation, read in large part.]
- Atkins, T., & Etemad, E. J. (2026). CSS Box Sizing Module Level 3. *W3C*. https://www.w3.org/TR/css-sizing-3/ [Solid source. Documentation, read in large part.]
- Atkins, T., & Etemad, E. J. (2024). CSS Values and Units Module Level 4. *W3C*. https://www.w3.org/TR/css-values-4/ [Solid source. Documentation, read in large part.]
- Atkins, T. Jr. (2022). CSS Custom Properties for Cascading Variables Module Level 1. *W3C*. https://www.w3.org/TR/css-variables-1/ [Solid source. Documentation, read in large part.]
- Atkins, T. Jr., Etemad, E. J., & Atanassov, R. (2025a). CSS Flexible Box Layout Module Level 1. *W3C*. https://www.w3.org/TR/css-flexbox-1/ [Solid source. Documentation, read in large part.]
- Atkins, T. Jr., Etemad, E. J., Atanassov, R., & Brufau, O. (2025b). CSS Grid Layout Module Level 2. *W3C*. https://www.w3.org/TR/css-grid-2/ [Solid source. Documentation, read in large part.]
- Atkins, T. Jr., Etemad, E. J., Rivoal, F., Lilley, C., & Zartner, S. (2026). CSS Snapshot 2026. *W3C*. https://www.w3.org/TR/css-2026/ [Solid source. Documentation, read in large part.]
- Atkins-Bittner, T. (2026). CSS Nesting Module Level 1. *W3C*. https://www.w3.org/TR/css-nesting-1/ [Solid source. Documentation, read in large part.]
- Baron, L. D., Etemad, E. J., Lilley, C., Suzanne, M. E., & Verou, L. (2025). CSS Conditional Rules Module Level 5. *W3C*. https://www.w3.org/TR/css-conditional-5/ [Solid source. Documentation, read in large part.]
- Benitte, R., & Greif, S. (2020). The State of CSS 2020: Trend report. *State of CSS*. https://2020.stateofcss.com/en-us/report/ [Medium trust. Read in large part.]
- Bos, B. (2006). Cascading Style Sheets Celebrating 10 Years with Style. *W3C*. https://www.w3.org/Style/CSS10/Overview.html [Solid source. Read in large part.]
- Bos, B. (2025). Levels, snapshots, modules…. *W3C*. https://www.w3.org/Style/2011/CSS-process.en.html [Solid source. Documentation, read in large part.]
- Bos, B., Çelik, T., Hickson, I., & Lie, H. W. (2011b). Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification — Visual formatting model. *W3C*. https://www.w3.org/TR/CSS2/visuren.html [Solid source. Documentation, read in large part.]
- Bos, B., Çelik, T., Hickson, I., & Lie, H. W. (2011a). Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification — Box model. *W3C*. https://www.w3.org/TR/CSS2/box.html [Solid source. Documentation, read in large part.]
- Bramus (2023). Limit the reach of your selectors with the CSS @scope at-rule. *Chrome for Developers*. https://developer.chrome.com/docs/css-ui/at-scope [Medium trust. Documentation, read in large part.]
- Etemad, E. J., & Atkins, T. Jr. (2026). Selectors Level 4. *W3C*. https://www.w3.org/TR/selectors-4/ [Solid source. Documentation, read in large part.]
- Etemad, E. J., Suzanne, M. E., & Atkins, J. T. (2026). CSS cascading and inheritance module level 6. *World Wide Web Consortium*. https://drafts.csswg.org/css-cascade-6/ [Solid source. Documentation, read in large part.]
- Etemad, E. J., Suzanne, M. E., & Atkins, T. Jr. (2022). CSS Cascading and Inheritance Level 5. *W3C*. https://www.w3.org/TR/css-cascade-5/ [Solid source. Documentation, read in large part.]
- Etemad, E. J., Suzanne, M. E., & Atkins, T. Jr. (2024). CSS Cascading and Inheritance Level 6. *W3C*. https://www.w3.org/TR/css-cascade-6/ [Solid source. Documentation, read in large part.]
- Hague, M., Lin, A. W., & Ong, C.-H. L. (2015). Detecting redundant CSS rules in HTML5 applications: A tree rewriting approach. *OOPSLA 2015, ACM*. https://pure.royalholloway.ac.uk/ws/portalfiles/portal/25321358/mainEasychair.pdf [Medium trust. Peer-reviewed, read in large part.]
- Kravets, U., & Argyle, A. (2019). CSS. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2019/css [Medium trust. Read in large part.]
- Magura, S. (2022). Why we're breaking up with CSS-in-JS. *Spot*. https://www.spotvirtual.com/blog/why-were-breaking-up-with-css-in-js [Medium trust. Blog post, read in large part.]
- Mahajan, S., Alameer, A., McMinn, P., & Halfond, W. G. J. (2017). Automated repair of layout cross browser issues using search-based techniques. *International Symposium on Software Testing and Analysis*. https://viterbi-web.usc.edu/~halfond/papers/mahajan17issta.pdf [Medium trust. Peer-reviewed, read in large part.]
- Marcotte, E. (2009). Fluid grids. *A List Apart*. https://alistapart.com/article/fluidgrids/ [Medium trust. Blog post, read in large part.]
- Marcotte, E. (2010). Responsive web design. *A List Apart*. https://alistapart.com/article/responsive-web-design/ [Medium trust. Blog post, read in large part.]
- Mazinanian, D., Tsantalis, N., & Mesbah, A. (2014). Discovering refactoring opportunities in cascading style sheets. *ACM SIGSOFT International Symposium on Foundations of Software Engineering*. https://users.encs.concordia.ca/~nikolaos/publications/FSE_2014.pdf [Solid source. Peer-reviewed, read in large part.]
- Mesbah, A., & Mirshokraie, S. (2012). Automated analysis of CSS rules to support style maintenance. *International Conference on Software Engineering*. https://people.ece.ubc.ca/amesbah/resources/papers/icse12.pdf [Solid source. Peer-reviewed, read in large part.]
- Rivoal, F., Atkins, T. Jr., Libby, D., & Warlow, L. (2026). Media Queries Level 5. *W3C*. https://www.w3.org/TR/mediaqueries-5/ [Solid source. Documentation, read in large part.]
- Setiawan, R., Nurwaida, A. A., & Aziz, H. A. (2026). Analisis komparatif efisiensi kode dan performa antarmuka ShutterSport.id menggunakan Tailwind CSS dan Bootsrap. *RJOCS (Riau Journal of Computer Science), 12(2), 12–21*. https://journal.upp.ac.id/index.php/rjocs/article/view/4826 [Medium trust. Peer-reviewed, abstract only.]
- Sullivan, N. (2009b). Object oriented CSS, grids on Github. *Nicole Sullivan*. https://www.stubbornella.org/2009/02/28/object-oriented-css-grids-on-github/ [Weak source. Blog post, read in large part.]
- Sullivan, N. (2026b). Interop 2025: A year of convergence. *WebKit*. https://webkit.org/blog/17808/interop-2025-review/ [Medium trust. Blog post, read in large part.]
- Tanner, K. (2019). Visual design tools in support of novice creativity. *Stanford University*. https://hci.stanford.edu/publications/2019/tanner_dissertation.pdf [Medium trust. Read in large part.]
- Vargas Zermeño, E. (2024). Criterios de implementación de Tailwind CSS en desarrollos frontend. *Cuadernos Técnicos Universitarios de la DGTIC*. https://cuadernos.tic.unam.mx/index.php/cua/article/download/63/111/909 [Medium trust. Read in large part.]
- Veneman, B. (2026). The CSS selection. *Project Wallace*. https://www.projectwallace.com/the-css-selection/2026 [Medium trust. Blog post, read in large part.]
- Verou, L., Lilley, C., & Andrew, R. (2020). CSS. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2020/css [Solid source. Read in large part.]
- BEM (n.d.). CSS with BEM. *BEM*. https://bem.info/en/methodology/css/ [Medium trust. Documentation, read in large part.]
- CSS Modules (n.d.). CSS Modules. *GitHub*. https://github.com/css-modules/css-modules [Solid source. Documentation, read in large part.]
- Devographics (2026). State of CSS 2026: Other tools. *State of CSS*. https://2026.stateofcss.com/en-US/other-tools/ [Medium trust. Read in large part.]
- geeky-biz (n.d.). Performance comparison of CSS-in-JS libraries. *GitHub*. https://github.com/geeky-biz/css-in-js-benchmark [Solid source. Read in large part.]
- jantimon (n.d.). CSS-in-JS benchmarks. *GitHub Pages*. https://jantimon.github.io/css-in-js-bench/ [Solid source. Read in large part.]
- Q-Success (n.d.). Frequently asked questions. *W3Techs*. https://w3techs.com/faq [Medium trust. Documentation, read in large part.]
- Tailwind Labs Inc. (n.d.b). Styling with utility classes. *Tailwind CSS*. https://tailwindcss.com/docs/styling-with-utility-classes [Medium trust. Documentation, read in large part.]
- Tailwind Labs Inc. (n.d.a). Detecting classes in source files. *Tailwind CSS*. https://tailwindcss.com/docs/detecting-classes-in-source-files [Solid source. Documentation, read in large part.]
- vanilla-extract (n.d.b). Zero-runtime stylesheets in TypeScript. *vanilla-extract*. https://vanilla-extract.style/ [Solid source. Documentation, read in large part.]
- vanilla-extract (n.d.a). Theming. *vanilla-extract*. https://vanilla-extract.style/documentation/theming/ [Solid source. Documentation, read in large part.]
- Vue.js (n.d.a). SFC CSS features. *Vue.js*. https://vuejs.org/api/sfc-css-features [Weak source. Documentation, read in large part.]
- W3Techs (2026). Usage statistics and market share of Tailwind for websites. *W3Techs*. https://w3techs.com/technologies/details/cs-tailwind [Medium trust. Read in large part.]
- W3Techs (n.d.). Web technologies statistics and trends. *W3Techs*. https://w3techs.com/technologies [Medium trust. Read in large part.]
- Web Platform DX Community Group (n.d.). @scope. *Web features explorer*. https://web-platform-dx.github.io/web-features-explorer/features/scope/ [Medium trust. Documentation, read in large part.]
- Chrome for Developers (2026). Coverage: Find unused JavaScript and CSS. *Chrome for Developers*. https://developer.chrome.com/docs/devtools/coverage/ [Solid source. Documentation, read in large part.]
- CSS Working Group (2025). CSS Working Group Charter. *W3C*. https://www.w3.org/2025/03/css-wg.html [Solid source. Documentation, read in large part.]
- HTTP Archive (2022). Methodology. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2022/methodology [Solid source. Documentation, read in large part.]
- HTTP Archive (2020). Methodology. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2020/methodology [Solid source. Documentation, read in large part.]
- HTTP Archive (2019). Methodology. *Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2019/methodology [Solid source. Documentation, read in large part.]
- Web Platform Tests (2025). Interop 2025. *Web Platform Tests*. https://github.com/web-platform-tests/interop/blob/main/2025/README.md [Solid source. Documentation, read in large part.]
- World Wide Web Consortium (1996). The World Wide Web Consortium issues Cascading Style Sheets Recommendation. *W3C*. https://www.w3.org/press-releases/1996/css1-rec/ [Medium trust. Read in large part.]
