[csswg-drafts] [css-syntax] Do token streams vend component values? (#10863)

amn has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-syntax] Do token streams vend component values? ==
I am confused as to whether a token stream as defined at https://drafts.csswg.org/css-syntax/#parser-definitions, ever vends _component values_ [evidently allowed in the stream], or only tokens?

The first parable states:

> A token stream is a [struct](https://infra.spec.whatwg.org/#struct) representing a stream of [tokens](https://drafts.csswg.org/css-syntax/#token-stream-tokens) and/or [component values](https://drafts.csswg.org/css-syntax/#component-value).

It's made clear with the above that there _may_ be component values "represented" in the stream. Further down, the `tokens` item of the struct is said to be, quoting:

> A [list](https://infra.spec.whatwg.org/#list) of [tokens](https://drafts.csswg.org/css-syntax/#token-stream-tokens) and/or [component values](https://drafts.csswg.org/css-syntax/#component-value).

Which only supports the argument that component values are in the struct.

However, it doesn't outright say what would say be the effect of the above, for example as the "next token" and "consume token" steps are invoked -- does the stream decompose contained component values into individual tokens before vending them, or outright vend said component values?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10863 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 10 September 2024 13:51:15 UTC