Skip to content

Commit 956d0fd

Browse files
authored
Add patch for ed/css/css-mixins.json (#1592)
Add grouping to please CSS parser
1 parent 5aaef17 commit 956d0fd

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From 08e6dfc7c8867571f0036f0ed0f1c199defc92ca Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Fri, 20 Jun 2025 16:27:04 +0200
4+
Subject: [PATCH] Add grouping to please CSS parser
5+
6+
Syntax in the spec is valid, but CSSTree does not like it. This adds grouping
7+
to make the syntax valid for the parser, pending resolution of:
8+
https://github.com/csstree/csstree/issues/345
9+
---
10+
ed/css/css-mixins.json | 2 +-
11+
1 file changed, 1 insertion(+), 1 deletion(-)
12+
13+
diff --git a/ed/css/css-mixins.json b/ed/css/css-mixins.json
14+
index 5f542d6253..5208a76d77 100644
15+
--- a/ed/css/css-mixins.json
16+
+++ b/ed/css/css-mixins.json
17+
@@ -31,7 +31,7 @@
18+
"name": "@mixin",
19+
"href": "https://drafts.csswg.org/css-mixins-1/#at-ruledef-mixin",
20+
"descriptors": [],
21+
- "value": "@mixin <function-token> <function-parameter>#? , @contents? ) { <declaration-rule-list> }"
22+
+ "value": "@mixin <function-token> <function-parameter>#? , [@contents]? ) { <declaration-rule-list> }"
23+
},
24+
{
25+
"name": "@contents",
26+
--
27+
2.37.1.windows.1
28+

0 commit comments

Comments
 (0)