Skip to content

Commit 4bdf696

Browse files
Bump major version of CSS package - v8.0.0 (#1708)
Latest Reffy release introduces a "breaking" change with the flattening of at-rules. The change should be more theoretically breaking than practically breaking in practice. --------- Co-authored-by: Dominique Hazael-Massieux <[email protected]>
1 parent 8fe29cd commit 4bdf696

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

packages/css/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ Webref adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
77
applied to data. A new major version is released whenever a breaking change is
88
made to the data structure.
99

10+
## v8.0.0 - 2025-10-17
11+
12+
### Breaking change
13+
14+
Subsidiary at-rules are now reported at the root level, scoped to their parent at-rule through a `for` property.
15+
16+
### How to upgrade
17+
18+
Unless you're processing at-rules and only expecting unscoped ones, upgrade from version 7 should not require any code update. If you need to list only unscoped at-rules, filter out those that have a `for` property.
19+
20+
1021
## v7.0.11 - 2025-09-04
1122

1223
CSS extracts are now consolidated into a single file.

packages/css/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const ast = definitionSyntax.parse(properties['flex'].syntax);
5151
Additional keys may be set depending on the type of the CSS feature. For example:
5252

5353
- At-rules have a `descriptors` key that contains the list of descriptors defined for the given at-rule. That list may not be exhaustive. For example, it does not contain descriptors that are only implicitly defined in specs, such as families of properties that some at-rules (e.g, `@position-try`) accept as descriptors.
54+
- At-rule that are scoped to another at-rules have a `for` key that contains the list of scoping at-rules.
5455
- Functions and types that are scoped to a property or other feature have a `for` key that contains the list of scoping features for that feature. A scoping feature may be a property, a function or a type. When the scoping feature is a type, its name in the `for` key is enclosed between `<` and `>`.
5556
- Properties have a `styleDeclaration` key that contains the list of IDL attribute names that the property generates. A number of other keys may be set to describe the property's initial value, animation type and other parameters.
5657

packages/css/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webref/css",
33
"description": "CSS definitions of the web platform",
4-
"version": "7.1.5",
4+
"version": "8.0.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/w3c/webref.git"

0 commit comments

Comments
 (0)