mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
Automatic update from web-platform-testsCSS: path string computed style uses absolute commands The canonical computed style format for path strings uses absolute commands only. Discussed in https://github.com/w3c/svgwg/issues/321 Previously, Blink only normalized path string to absolute commands when they were animated. BUG=696395 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: I773ceb40f22fc5ce1e5f7ea0b4eca6cc612e763e Reviewed-on: https://chromium-review.googlesource.com/1215150 Commit-Queue: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#591996} -- wpt-commits: 9b900a584259526b6927565fa010d4036c1224af wpt-pr: 12906
43 lines
2.4 KiB
HTML
43 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Motion Path Module Level 1: parsing offset with valid values</title>
|
|
<link rel="author" title="Eric Willigers" href="mailto:ericwilligers@chromium.org">
|
|
<link rel="help" href="https://drafts.fxtf.org/motion-1/#offset-shorthand">
|
|
<meta name="assert" content="offset supports the full grammar from the spec.">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/parsing-testcommon.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
test_valid_value("offset", "100px none auto 90deg", "100px center none auto 90deg");
|
|
test_valid_value("offset", "100px", "100px center");
|
|
test_valid_value("offset", "auto none reverse");
|
|
test_valid_value("offset", "auto");
|
|
test_valid_value("offset", "center bottom path(\"M 1 2 V 3 Z\")");
|
|
test_valid_value("offset", "center center path(\"M 0 0 L 100 100 M 100 200 L 200 200 Z L 300 300 Z\") 100% 90deg / left bottom");
|
|
test_valid_value("offset", "left bottom ray(0rad closest-side) 10px auto 30deg / right bottom");
|
|
test_valid_value("offset", "left top");
|
|
test_valid_value("offset", "none 30deg reverse", "none reverse 30deg");
|
|
test_valid_value("offset", "none 50px reverse 30deg");
|
|
test_valid_value("offset", "none calc(10px + 20%) auto");
|
|
test_valid_value("offset", "none reverse");
|
|
test_valid_value("offset", "path(\"M 0 0 H 1\") -200% auto");
|
|
test_valid_value("offset", "path(\"M 0 0 H 1\") -200%");
|
|
test_valid_value("offset", "path('M 0 0 H 1') 50px", "path(\"M 0 0 H 1\") 50px");
|
|
test_valid_value("offset", "path(\"M 0 0 H 1\") auto");
|
|
test_valid_value("offset", "path('M 0 0 H 1') reverse 30deg 50px", "path(\"M 0 0 H 1\") 50px reverse 30deg");
|
|
test_valid_value("offset", "path(\"M 0 0 H 1\")");
|
|
test_valid_value("offset", "path('m 20 0 h 100') -7rad 8px / auto", "path(\"m 20 0 h 100\") 8px -7rad / auto");
|
|
test_valid_value("offset", "path('m 0 30 v 100') -7rad 8px / left top", "path(\"m 0 30 v 100\") 8px -7rad / left top");
|
|
test_valid_value("offset", "path('m 0 0 h 100') -7rad 8px", "path(\"m 0 0 h 100\") 8px -7rad");
|
|
test_valid_value("offset", "path(\"M 0 0 H 100\") 100px 0deg");
|
|
test_valid_value("offset", "path( 'm 1 2 v 3.00 z')", "path(\"m 1 2 v 3 Z\")");
|
|
test_valid_value("offset", "ray(farthest-corner 90deg) 1%", "ray(90deg farthest-corner) 1%");
|
|
test_valid_value("offset", "ray(sides 0deg) 50% 90deg auto", "ray(0deg sides) 50% auto 90deg");
|
|
test_valid_value("offset", "right bottom / left top");
|
|
</script>
|
|
</body>
|
|
</html>
|