Skip to content

Commit b84fd71

Browse files
committed
Add patch for ed/css/css-values-5.json
Amend syntax of `if()`, drop value of `<if-condition>`
1 parent ddde6e7 commit b84fd71

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ed/csspatches/css-values-5.json.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
From 7c701a918b3d08e85a6cfa70a531d019882378dc Mon Sep 17 00:00:00 2001
1+
From 8c563b373f70cd3fce87fdb457e429d88797aba0 Mon Sep 17 00:00:00 2001
22
From: Francois Daoust <[email protected]>
3-
Date: Sat, 2 Nov 2024 10:59:54 +0100
3+
Date: Wed, 13 Nov 2024 10:17:40 +0100
44
Subject: [PATCH] Amend syntax of `if()`, drop value of `<if-condition>`
55

66
For `if()`, parsing fails on `;?`.
@@ -9,19 +9,19 @@ For `<if-condition>`, the problem is that the spec extends the Value Definition
99
Syntax with a new construct that is not yet supported by the CSS parser.
1010

1111
Both problems have been fixed in CSSTree already, but a new version still needs
12-
to be released. See tracking issue in:
12+
to be released and the CSS WG changed the syntax of the boolean expression
13+
multiplier. See tracking issues in:
1314
https://github.com/w3c/webref/issues/1378
14-
15-
15+
https://github.com/csstree/csstree/issues/307
1616
---
1717
ed/css/css-values-5.json | 5 ++---
1818
1 file changed, 2 insertions(+), 3 deletions(-)
1919

2020
diff --git a/ed/css/css-values-5.json b/ed/css/css-values-5.json
21-
index 8aa66d177..7b6b54fb7 100644
21+
index 62386d10e..9f2b6c925 100644
2222
--- a/ed/css/css-values-5.json
2323
+++ b/ed/css/css-values-5.json
24-
@@ -462,13 +462,12 @@
24+
@@ -468,13 +468,12 @@
2525
"name": "<if()>",
2626
"href": "https://drafts.csswg.org/css-values-5/#typedef-if",
2727
"type": "type",
@@ -32,7 +32,7 @@ index 8aa66d177..7b6b54fb7 100644
3232
"name": "<if-condition>",
3333
"href": "https://drafts.csswg.org/css-values-5/#typedef-if-condition",
3434
- "type": "type",
35-
- "value": "<boolean[ <if-test> ]> | else"
35+
- "value": "<boolean-expr[ <if-test> ]> | else"
3636
+ "type": "type"
3737
},
3838
{

0 commit comments

Comments
 (0)