Use parseFloat() to parse CSS pixels values in two WPT
Two WPT use CSSNumericValue.parse() to parse CSS pixel values, which makes the tests basically Chrome-only. This patch changes them to use parseFloat() directly so that other browsers can pass. Bug: 441925 Change-Id: I01d6d2999cf4266bd6d3bda521d2bdfc8732ab7c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031932Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#737036}
Showing
Please register or sign in to comment