Resolve lengths in @counter-style using MediaValues.
This fixes a number of crashes in parsing integers,
and also removes a large chunk of the remaining calls
to the problematic GetIntValue() function.
We use the metrics from the initial style (like with
media queries), as specified in css-values-4.
Bug: 40946458
Change-Id: I87799b606a01854bed69f7b474ef85cab1845a60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6032724
Commit-Queue: Steinar H Gunderson sesse@chromium.org
Reviewed-by: Rune Lillesveen futhark@chromium.org
Cr-Commit-Position: refs/heads/main@{#1384933}