Re: [csswg-drafts] [css-fonts] Drop bracket matching step from `@font-face` src: line parsing (#6340)

I don't think @drott's original comment here:

> In my quick analysis, at least WebKit and Blink do not do that but the top level step for parsing the `src:` descriptors value is to split this into a comma separated list of values, then parse these individually

can be quite accurate, given that an example like:

```
@font-face {
  font-family: test;
  src: url(data:font/ttf;base64,AAEA[...snipped...]QjUA);
}
```

successfully loads the base64-encoded font resource in all of Safari, Chrome and Firefox. If they were splitting the `src:` value on comma as a *top-level step*, surely that wouldn't work. They'd end up seeing two items, neither of them complete or parsable.


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


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

Received on Wednesday, 2 June 2021 20:36:17 UTC