v154 · typed om in workers
Parsing off the main thread
The fallback for a worker without Typed OM is a regular expression. It works for 16px and then quietly gets everything else wrong. Run both against the same list and read the disagreements — they are not edge cases you can dismiss, they are calc(), units, and values that should have been rejected.
Parse a list of values
| input | Typed OM | regex fallback | agree? |
|---|---|---|---|
| Not run yet. | |||
Both parsers run in the same worker, so this is not a thread comparison — it is a correctness one. The point of having Typed OM in a worker is that the work can move off the main thread without giving up the CSS parser.