Skip to content

Commit

Permalink
Change WPT test for offset-path parsing
Browse files Browse the repository at this point in the history
1) As per https://drafts.csswg.org/css-box-4/#typedef-coord-box
<coord-box> can't be defined with margin-box.

2) "at <position" changes come from
w3c/csswg-drafts#8695 (comment)

Resolved here: web-platform-tests/interop#340

Change-Id: I6fe865d5248c7004257cd17669353d810f6e3d09
  • Loading branch information
danielsakhapov authored and chromium-wpt-export-bot committed May 30, 2023
1 parent 2d4903d commit 62119b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions css/motion/parsing/offset-path-parsing-valid.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@

test_valid_value("offset-path", 'url("http://www.example.com/index.html#polyline1")');

test_valid_value("offset-path", "circle(100px)", "circle(100px at 50% 50%)");
test_valid_value("offset-path", "margin-box");
test_valid_value("offset-path", "circle(100px)");
test_valid_value("offset-path", "circle(100px at 50% 50%)");
test_valid_value("offset-path", "border-box");
test_valid_value("offset-path", "inset(10% 20% 30% 40%) border-box");
test_valid_value("offset-path", "fill-box ellipse(50% 60%)", "ellipse(50% 60%) fill-box");
test_valid_value("offset-path", "content-box ellipse(50% 60% at 50% 50%)", "ellipse(50% 60% at 50% 50%) content-box");
</script>
</body>
</html>

0 comments on commit 62119b5

Please sign in to comment.