Re: [csswg-drafts] [mediaqueries-5] [css-syntax-3] Unclear how <general-enclosed> is terminated (#9002)

  > However it doesn't mention how to detect how this production terminates.

I terminates with the end of the input. Any CSS input goes through [*consume a list of component values*](https://drafts.csswg.org/css-syntax-3/#consume-list-of-components), which consumes `(...)`, `[...]`, `{...}`, into a single component value.

  > **component value**
  >
  > A component value is one of the preserved tokens, a function, or a simple block.
  >
  > **preserved tokens**
  >
  > Any token produced by the tokenizer except for `<function-token>`s, `<{-token>`s, `<(-token>`s, and `<[-token>`s.
  >
  > NOTE: The non-preserved tokens listed above are always consumed into higher-level objects, either functions or simple blocks, and so never appear in any parser output themselves.
  
https://drafts.csswg.org/css-syntax-3/#preserved-tokens

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9002#issuecomment-1604331681 using your GitHub account


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

Received on Friday, 23 June 2023 14:03:41 UTC