diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-computed.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-computed.txt new file mode 100644 index 00000000000..c735c4934a2 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-computed.txt @@ -0,0 +1,41 @@ +Harness status: OK + +Found 36 tests + +36 Pass +Pass Property cursor value 'auto' +Pass Property cursor value 'default' +Pass Property cursor value 'none' +Pass Property cursor value 'context-menu' +Pass Property cursor value 'help' +Pass Property cursor value 'pointer' +Pass Property cursor value 'progress' +Pass Property cursor value 'wait' +Pass Property cursor value 'cell' +Pass Property cursor value 'crosshair' +Pass Property cursor value 'text' +Pass Property cursor value 'vertical-text' +Pass Property cursor value 'alias' +Pass Property cursor value 'copy' +Pass Property cursor value 'move' +Pass Property cursor value 'no-drop' +Pass Property cursor value 'not-allowed' +Pass Property cursor value 'grab' +Pass Property cursor value 'grabbing' +Pass Property cursor value 'e-resize' +Pass Property cursor value 'n-resize' +Pass Property cursor value 'ne-resize' +Pass Property cursor value 'nw-resize' +Pass Property cursor value 's-resize' +Pass Property cursor value 'se-resize' +Pass Property cursor value 'sw-resize' +Pass Property cursor value 'w-resize' +Pass Property cursor value 'ew-resize' +Pass Property cursor value 'ns-resize' +Pass Property cursor value 'nesw-resize' +Pass Property cursor value 'nwse-resize' +Pass Property cursor value 'col-resize' +Pass Property cursor value 'row-resize' +Pass Property cursor value 'all-scroll' +Pass Property cursor value 'zoom-in' +Pass Property cursor value 'zoom-out' \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-invalid.txt new file mode 100644 index 00000000000..9b18bcb3b5d --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-invalid.txt @@ -0,0 +1,11 @@ +Harness status: OK + +Found 6 tests + +6 Pass +Pass e.style['cursor'] = "en-resize" should not set the property value +Pass e.style['cursor'] = "url(\"https://example.com/\") alias" should not set the property value +Pass e.style['cursor'] = "1 2 url(\"https://example.com/\"), copy" should not set the property value +Pass e.style['cursor'] = "url(\"https://example.com/\"), url(\"https://example.com/\") 3, move" should not set the property value +Pass e.style['cursor'] = "url(\"https://example.com/\") 1px 2px, copy" should not set the property value +Pass e.style['cursor'] = "url(\"https://example.com/\"), url(\"https://example.com/\") 3% 4%, move" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-valid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-valid.txt new file mode 100644 index 00000000000..af1af0a3333 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-ui/parsing/cursor-valid.txt @@ -0,0 +1,48 @@ +Harness status: OK + +Found 42 tests + +36 Pass +6 Fail +Pass e.style['cursor'] = "auto" should set the property value +Pass e.style['cursor'] = "default" should set the property value +Pass e.style['cursor'] = "none" should set the property value +Pass e.style['cursor'] = "context-menu" should set the property value +Pass e.style['cursor'] = "help" should set the property value +Pass e.style['cursor'] = "pointer" should set the property value +Pass e.style['cursor'] = "progress" should set the property value +Pass e.style['cursor'] = "wait" should set the property value +Pass e.style['cursor'] = "cell" should set the property value +Pass e.style['cursor'] = "crosshair" should set the property value +Pass e.style['cursor'] = "text" should set the property value +Pass e.style['cursor'] = "vertical-text" should set the property value +Pass e.style['cursor'] = "alias" should set the property value +Pass e.style['cursor'] = "copy" should set the property value +Pass e.style['cursor'] = "move" should set the property value +Pass e.style['cursor'] = "no-drop" should set the property value +Pass e.style['cursor'] = "not-allowed" should set the property value +Pass e.style['cursor'] = "grab" should set the property value +Pass e.style['cursor'] = "grabbing" should set the property value +Pass e.style['cursor'] = "e-resize" should set the property value +Pass e.style['cursor'] = "n-resize" should set the property value +Pass e.style['cursor'] = "ne-resize" should set the property value +Pass e.style['cursor'] = "nw-resize" should set the property value +Pass e.style['cursor'] = "s-resize" should set the property value +Pass e.style['cursor'] = "se-resize" should set the property value +Pass e.style['cursor'] = "sw-resize" should set the property value +Pass e.style['cursor'] = "w-resize" should set the property value +Pass e.style['cursor'] = "ew-resize" should set the property value +Pass e.style['cursor'] = "ns-resize" should set the property value +Pass e.style['cursor'] = "nesw-resize" should set the property value +Pass e.style['cursor'] = "nwse-resize" should set the property value +Pass e.style['cursor'] = "col-resize" should set the property value +Pass e.style['cursor'] = "row-resize" should set the property value +Pass e.style['cursor'] = "all-scroll" should set the property value +Pass e.style['cursor'] = "zoom-in" should set the property value +Pass e.style['cursor'] = "zoom-out" should set the property value +Fail e.style['cursor'] = "url(\"https://example.com/\"), alias" should set the property value +Fail e.style['cursor'] = "url(\"https://example.com/\") 1 calc(2 + 0), copy" should set the property value +Fail e.style['cursor'] = "url(\"https://example.com/\"), url(\"https://example.com/\") 3 -4, move" should set the property value +Fail e.style['cursor'] = "url(\"https://example.com/\") 5 6, grab" should set the property value +Fail e.style['cursor'] = "image-set(\"https://example.com/\" 1x) 5 6, grab" should set the property value +Fail e.style['cursor'] = "image-set(\"https://example.com/\" 1x, \"https://example.com/highres\" 2x) 5 6, grab" should set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-computed.html b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-computed.html new file mode 100644 index 00000000000..efd667c5aa5 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-computed.html @@ -0,0 +1,56 @@ + + + + +CSS UI Level 3: getComputedStyle().cursor + + + + + + + +
+ + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-invalid.html new file mode 100644 index 00000000000..3584d3b0430 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-invalid.html @@ -0,0 +1,24 @@ + + + + +CSS UI Level 3: parsing cursor with invalid values + + + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-valid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-valid.html new file mode 100644 index 00000000000..646316a3e61 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-ui/parsing/cursor-valid.html @@ -0,0 +1,108 @@ + + + + +CSS UI Level 4: parsing cursor with valid values + + + + + + + + + + +