Skip to content

Commit fcde781

Browse files
authored
Add patch for ed/css/css-values-5.json (#1376)
Amend syntax of `if()`, drop value of `<if-condition>`
1 parent cc176f6 commit fcde781

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 7c701a918b3d08e85a6cfa70a531d019882378dc Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Sat, 2 Nov 2024 10:59:54 +0100
4+
Subject: [PATCH] Amend syntax of `if()`, drop value of `<if-condition>`
5+
6+
For `if()`, parsing fails on `;?`.
7+
8+
For `<if-condition>`, the problem is that the spec extends the Value Definition
9+
Syntax with a new construct that is not yet supported by the CSS parser.
10+
11+
Both problems have been fixed in CSSTree already, but a new version still needs
12+
to be released. See tracking issue in:
13+
https://github.com/w3c/webref/issues/1378
14+
15+
16+
---
17+
ed/css/css-values-5.json | 5 ++---
18+
1 file changed, 2 insertions(+), 3 deletions(-)
19+
20+
diff --git a/ed/css/css-values-5.json b/ed/css/css-values-5.json
21+
index 8aa66d177..7b6b54fb7 100644
22+
--- a/ed/css/css-values-5.json
23+
+++ b/ed/css/css-values-5.json
24+
@@ -462,13 +462,12 @@
25+
"name": "<if()>",
26+
"href": "https://drafts.csswg.org/css-values-5/#typedef-if",
27+
"type": "type",
28+
- "value": "if( [ <if-condition> : <declaration-value>? ; ]* <if-condition> : <declaration-value>? ;? )"
29+
+ "value": "if( [ <if-condition> : <declaration-value>? ; ]* <if-condition> : <declaration-value>? ';'? )"
30+
},
31+
{
32+
"name": "<if-condition>",
33+
"href": "https://drafts.csswg.org/css-values-5/#typedef-if-condition",
34+
- "type": "type",
35+
- "value": "<boolean[ <if-test> ]> | else"
36+
+ "type": "type"
37+
},
38+
{
39+
"name": "<if-test>",
40+
--
41+
2.37.1.windows.1
42+

0 commit comments

Comments
 (0)