[css-properties-values-api] Avoid viewport dependent tests.
The test registered-property-computation.html fails on wpt.fyi, because it assumes that the tests are run in a viewport with specific dimensions. This CL fixes that by using a standard property as a reference. For instance, to figure out the expected value in pixels for '10vw', we compute min-height:10vw and use that result as the expected value. Also added some generally useful utils, and rewrote the test using those utils to make the test more understandable. R=futhark@chromium.org Bug: 641877 Change-Id: Ie1ceb334eefee6e76015447f24148638ad8c55a6 Reviewed-on: https://chromium-review.googlesource.com/c/1275893Reviewed-by:Rune Lillesveen <futhark@chromium.org> Commit-Queue: Anders Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#598847}
Showing
This diff is collapsed.
Please register or sign in to comment