From 175c087257670cdae54f5ff7dc8b2fc2d0956b1b Mon Sep 17 00:00:00 2001 From: andruud Date: Thu, 2 Jan 2025 11:51:58 +0000 Subject: [PATCH] [css-properties-values-api] Allow dashed idents in syntax strings Currently, grammars like syntax:"auto | --mything" are not allowed, since we don't handle HYPHEN-MINUS during "consume a syntax component". This was likely an oversight when it was initially written. Note: we might want to just remove the algorithms that parse syntax components from a string, and instead tokenize/parse using the new `` production. If we do, that would *also* make dashed idents allowed unless we explicitly block it. --- css-properties-values-api/Overview.bs | 1 + 1 file changed, 1 insertion(+) diff --git a/css-properties-values-api/Overview.bs b/css-properties-values-api/Overview.bs index ed3591ac..503b1f0b 100644 --- a/css-properties-values-api/Overview.bs +++ b/css-properties-values-api/Overview.bs @@ -1117,6 +1117,7 @@ Parsing The Syntax String {#parsing-syntax} Otherwise, return failure. : ident-start code point + : U+002D HYPHEN-MINUS : U+005C REVERSE SOLIDUS (\) :: If the stream [=starts with an ident sequence=], reconsume the current input code point from |stream|