diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-computed.txt new file mode 100644 index 00000000000..88604063bb1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-computed.txt @@ -0,0 +1,8 @@ +Harness status: OK + +Found 3 tests + +3 Fail +Fail Property clip-path value 'path(nonzero, 'M10,10h80v80h-80zM25,25h50v50h-50z')' +Fail Property clip-path value 'path(evenodd, 'M10,10h80v80h-80zM25,25h50v50h-50z')' +Fail Property clip-path value 'path(evenodd, 'M10,10h80v80h-80zM25,25h50v50h-50')' \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-invalid.txt new file mode 100644 index 00000000000..9db59dd3b36 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-invalid.txt @@ -0,0 +1,7 @@ +Harness status: OK + +Found 2 tests + +2 Pass +Pass e.style['clip-path'] = "path(evenodd, 'not-a-path')" should not set the property value +Pass e.style['clip-path'] = "path(badfillrule, 'M10,10')" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-valid.txt new file mode 100644 index 00000000000..a23b19dc1d4 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-shapes/shape-functions/path-function-valid.txt @@ -0,0 +1,7 @@ +Harness status: OK + +Found 2 tests + +2 Fail +Fail e.style['clip-path'] = "path(evenodd, 'M10,10h80v80h-80zM25,25h50v50h-50z')" should set the property value +Fail e.style['clip-path'] = "path(evenodd, 'M10,10h80v80h-80zM25,25h50v50h-50')" should set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-shapes/shape-functions/path-function-computed.html b/Tests/LibWeb/Text/input/wpt-import/css/css-shapes/shape-functions/path-function-computed.html new file mode 100644 index 00000000000..cf40cb4e422 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-shapes/shape-functions/path-function-computed.html @@ -0,0 +1,20 @@ + + +
+ +