diff --git a/Libraries/LibWeb/CSS/Parser/ValueParsing.cpp b/Libraries/LibWeb/CSS/Parser/ValueParsing.cpp index aceebd785c6..475de3ab9b3 100644 --- a/Libraries/LibWeb/CSS/Parser/ValueParsing.cpp +++ b/Libraries/LibWeb/CSS/Parser/ValueParsing.cpp @@ -4050,7 +4050,19 @@ RefPtr Parser::parse_a_calculation(Vector } // Otherwise, replace values with a Sum node containing the value items of values as its children. if (!single_value.has_value()) { - values.remove_all_matching([](CalcParsing::Node& value) { return value.has(); }); + auto operator_count = 0u; + for (size_t i = 0; i < values.size();) { + auto& value = values[i]; + if (value.has()) { + operator_count++; + values.remove(i); + } else { + i++; + } + } + if (values.size() == 0 || operator_count != values.size() - 1) + return nullptr; + single_value = make(move(values)); } } diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-columns-rows-get-set-multiple.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-columns-rows-get-set-multiple.txt index 2bd3d1f7221..eac077cb08d 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-columns-rows-get-set-multiple.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-grid/parsing/grid-columns-rows-get-set-multiple.txt @@ -2,8 +2,8 @@ Harness status: OK Found 40 tests -35 Pass -5 Fail +36 Pass +4 Fail Pass Test getting grid-template-columns and grid-template-rows set through CSS for element 'gridWithFixedElement' : grid-template-columns = '7px 11px', grid-template-rows = '17px 2px' Pass Test getting grid-template-columns and grid-template-rows set through CSS for element 'gridWithPercentElement' : grid-template-columns = '400px 800px', grid-template-rows = '150px 450px' Fail Test getting grid-template-columns and grid-template-rows set through CSS for element 'gridWithPercentWithoutSize' : grid-template-columns = '3.5px 7px', grid-template-rows = '4px 12px' @@ -39,7 +39,7 @@ Pass Test setting bad JS values: grid-template-columns = 'auto none 16em', grid- Pass Test setting bad JS values: grid-template-columns = '-webkit-fit-content -webkit-fit-content', grid-template-rows = '-webkit-fit-available -webkit-fit-available' Pass Test setting bad JS values: grid-template-columns = '-10px minmax(16px, 32px)', grid-template-rows = 'minmax(10%, 15%) -10vw' Pass Test setting bad JS values: grid-template-columns = '10px minmax(16px, -1vw)', grid-template-rows = 'minmax(-1%, 15%) 10vw' -Fail Test setting bad JS values: grid-template-columns = '10px calc(16px 30px)', grid-template-rows = 'calc(25px + auto) 2em' +Pass Test setting bad JS values: grid-template-columns = '10px calc(16px 30px)', grid-template-rows = 'calc(25px + auto) 2em' Pass Test setting bad JS values: grid-template-columns = 'minmax(min-content, calc() 250px', grid-template-rows = 'calc(2em(' Pass Test setting grid-template-columns and grid-template-rows to 'inherit' through JS Pass Test the default value diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/exp-log-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/exp-log-invalid.txt new file mode 100644 index 00000000000..6f70cee02e1 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/exp-log-invalid.txt @@ -0,0 +1,54 @@ +Harness status: OK + +Found 48 tests + +46 Pass +2 Fail +Pass e.style['opacity'] = "exp()" should not set the property value +Pass e.style['opacity'] = "exp( )" should not set the property value +Pass e.style['opacity'] = "exp(,)" should not set the property value +Pass e.style['opacity'] = "exp(1, )" should not set the property value +Pass e.style['opacity'] = "exp(, 1)" should not set the property value +Pass e.style['opacity'] = "exp(1 + )" should not set the property value +Pass e.style['opacity'] = "exp(1 - )" should not set the property value +Pass e.style['opacity'] = "exp(1 * )" should not set the property value +Pass e.style['opacity'] = "exp(1 / )" should not set the property value +Pass e.style['opacity'] = "exp(1 2)" should not set the property value +Pass e.style['opacity'] = "exp(1, , 2)" should not set the property value +Pass e.style['opacity'] = "log()" should not set the property value +Pass e.style['opacity'] = "log( )" should not set the property value +Pass e.style['opacity'] = "log(,)" should not set the property value +Fail e.style['opacity'] = "log(1, )" should not set the property value +Pass e.style['opacity'] = "log(, 1)" should not set the property value +Pass e.style['opacity'] = "log(1 + )" should not set the property value +Pass e.style['opacity'] = "log(1 - )" should not set the property value +Pass e.style['opacity'] = "log(1 * )" should not set the property value +Pass e.style['opacity'] = "log(1 / )" should not set the property value +Pass e.style['opacity'] = "log(1 2)" should not set the property value +Pass e.style['opacity'] = "log(1, , 2)" should not set the property value +Pass e.style['opacity'] = "exp(0px)" should not set the property value +Pass e.style['opacity'] = "exp(0s)" should not set the property value +Pass e.style['opacity'] = "exp(0deg)" should not set the property value +Pass e.style['opacity'] = "exp(0Hz)" should not set the property value +Pass e.style['opacity'] = "exp(0dpi)" should not set the property value +Pass e.style['opacity'] = "exp(0fr)" should not set the property value +Pass e.style['opacity'] = "exp(1, 1%)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0px)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0s)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0deg)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0Hz)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0dpi)" should not set the property value +Pass e.style['opacity'] = "exp(1, 0fr)" should not set the property value +Pass e.style['opacity'] = "log(0px)" should not set the property value +Pass e.style['opacity'] = "log(0s)" should not set the property value +Pass e.style['opacity'] = "log(0deg)" should not set the property value +Pass e.style['opacity'] = "log(0Hz)" should not set the property value +Pass e.style['opacity'] = "log(0dpi)" should not set the property value +Pass e.style['opacity'] = "log(0fr)" should not set the property value +Pass e.style['opacity'] = "log(1, 1%)" should not set the property value +Pass e.style['opacity'] = "log(1, 0px)" should not set the property value +Pass e.style['opacity'] = "log(1, 0s)" should not set the property value +Pass e.style['opacity'] = "log(1, 0deg)" should not set the property value +Pass e.style['opacity'] = "log(1, 0Hz)" should not set the property value +Pass e.style['opacity'] = "log(1, 0dpi)" should not set the property value +Fail e.style['opacity'] = "log(1, 0fr)" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/hypot-pow-sqrt-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/hypot-pow-sqrt-invalid.txt index 5e532c4b9b7..fd1ac9ea02c 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/hypot-pow-sqrt-invalid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/hypot-pow-sqrt-invalid.txt @@ -2,8 +2,7 @@ Harness status: OK Found 49 tests -47 Pass -2 Fail +49 Pass Pass e.style['opacity'] = "hypot()" should not set the property value Pass e.style['opacity'] = "hypot( )" should not set the property value Pass e.style['opacity'] = "hypot(,)" should not set the property value @@ -13,7 +12,7 @@ Pass e.style['opacity'] = "hypot(1 + )" should not set the property value Pass e.style['opacity'] = "hypot(1 - )" should not set the property value Pass e.style['opacity'] = "hypot(1 * )" should not set the property value Pass e.style['opacity'] = "hypot(1 / )" should not set the property value -Fail e.style['opacity'] = "hypot(1 2)" should not set the property value +Pass e.style['opacity'] = "hypot(1 2)" should not set the property value Pass e.style['opacity'] = "hypot(1, , 2)" should not set the property value Pass e.style['opacity'] = "sqrt()" should not set the property value Pass e.style['opacity'] = "sqrt( )" should not set the property value @@ -24,7 +23,7 @@ Pass e.style['opacity'] = "sqrt(1 + )" should not set the property value Pass e.style['opacity'] = "sqrt(1 - )" should not set the property value Pass e.style['opacity'] = "sqrt(1 * )" should not set the property value Pass e.style['opacity'] = "sqrt(1 / )" should not set the property value -Fail e.style['opacity'] = "sqrt(1 2)" should not set the property value +Pass e.style['opacity'] = "sqrt(1 2)" should not set the property value Pass e.style['opacity'] = "sqrt(1, , 2)" should not set the property value Pass e.style['opacity'] = "sqrt(1, 2)" should not set the property value Pass e.style['opacity'] = "pow( )" should not set the property value diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-angle-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-angle-invalid.txt new file mode 100644 index 00000000000..1dd06a7bef6 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-angle-invalid.txt @@ -0,0 +1,57 @@ +Harness status: OK + +Found 52 tests + +52 Pass +Pass e.style['transform'] = "rotate(min())" should not set the property value +Pass e.style['transform'] = "rotate(min( ))" should not set the property value +Pass e.style['transform'] = "rotate(min(,))" should not set the property value +Pass e.style['transform'] = "rotate(min(1dag))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, ))" should not set the property value +Pass e.style['transform'] = "rotate(min(, 1deg))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg + ))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg - ))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg * ))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg / ))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg 2deg))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, , 2deg))" should not set the property value +Pass e.style['transform'] = "rotate(max())" should not set the property value +Pass e.style['transform'] = "rotate(max( ))" should not set the property value +Pass e.style['transform'] = "rotate(max(,))" should not set the property value +Pass e.style['transform'] = "rotate(max(1dag))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, ))" should not set the property value +Pass e.style['transform'] = "rotate(max(, 1deg))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg + ))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg - ))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg * ))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg / ))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg 2deg))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, , 2deg))" should not set the property value +Pass e.style['transform'] = "rotate(min(0))" should not set the property value +Pass e.style['transform'] = "rotate(min(0%))" should not set the property value +Pass e.style['transform'] = "rotate(min(0px))" should not set the property value +Pass e.style['transform'] = "rotate(min(0s))" should not set the property value +Pass e.style['transform'] = "rotate(min(0Hz))" should not set the property value +Pass e.style['transform'] = "rotate(min(0dpi))" should not set the property value +Pass e.style['transform'] = "rotate(min(0fr))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0%))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0px))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0s))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0Hz))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0dpi))" should not set the property value +Pass e.style['transform'] = "rotate(min(1deg, 0fr))" should not set the property value +Pass e.style['transform'] = "rotate(max(0))" should not set the property value +Pass e.style['transform'] = "rotate(max(0%))" should not set the property value +Pass e.style['transform'] = "rotate(max(0px))" should not set the property value +Pass e.style['transform'] = "rotate(max(0s))" should not set the property value +Pass e.style['transform'] = "rotate(max(0Hz))" should not set the property value +Pass e.style['transform'] = "rotate(max(0dpi))" should not set the property value +Pass e.style['transform'] = "rotate(max(0fr))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0%))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0px))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0s))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0Hz))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0dpi))" should not set the property value +Pass e.style['transform'] = "rotate(max(1deg, 0fr))" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-length-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-length-invalid.txt index 5ecbf93ca27..c42a09c3605 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-length-invalid.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-length-invalid.txt @@ -2,8 +2,7 @@ Harness status: OK Found 48 tests -46 Pass -2 Fail +48 Pass Pass e.style['border-left-width'] = "min()" should not set the property value Pass e.style['border-left-width'] = "min( )" should not set the property value Pass e.style['border-left-width'] = "min(,)" should not set the property value @@ -14,7 +13,7 @@ Pass e.style['border-left-width'] = "min(1px + )" should not set the property va Pass e.style['border-left-width'] = "min(1px - )" should not set the property value Pass e.style['border-left-width'] = "min(1px * )" should not set the property value Pass e.style['border-left-width'] = "min(1px / )" should not set the property value -Fail e.style['border-left-width'] = "min(1px 2px)" should not set the property value +Pass e.style['border-left-width'] = "min(1px 2px)" should not set the property value Pass e.style['border-left-width'] = "min(1px, , 2px)" should not set the property value Pass e.style['border-left-width'] = "max()" should not set the property value Pass e.style['border-left-width'] = "max( )" should not set the property value @@ -26,7 +25,7 @@ Pass e.style['border-left-width'] = "max(1px + )" should not set the property va Pass e.style['border-left-width'] = "max(1px - )" should not set the property value Pass e.style['border-left-width'] = "max(1px * )" should not set the property value Pass e.style['border-left-width'] = "max(1px / )" should not set the property value -Fail e.style['border-left-width'] = "max(1px 2px)" should not set the property value +Pass e.style['border-left-width'] = "max(1px 2px)" should not set the property value Pass e.style['border-left-width'] = "max(1px, , 2px)" should not set the property value Pass e.style['border-left-width'] = "min(0)" should not set the property value Pass e.style['border-left-width'] = "min(0%)" should not set the property value diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-percentage-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-percentage-invalid.txt new file mode 100644 index 00000000000..3e8dcc45a0e --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-percentage-invalid.txt @@ -0,0 +1,53 @@ +Harness status: OK + +Found 48 tests + +48 Pass +Pass e.style['margin-left'] = "min()" should not set the property value +Pass e.style['margin-left'] = "min( )" should not set the property value +Pass e.style['margin-left'] = "min(,)" should not set the property value +Pass e.style['margin-left'] = "min(1#)" should not set the property value +Pass e.style['margin-left'] = "min(%1)" should not set the property value +Pass e.style['margin-left'] = "min(1%, )" should not set the property value +Pass e.style['margin-left'] = "min(, 1%)" should not set the property value +Pass e.style['margin-left'] = "min(1% + )" should not set the property value +Pass e.style['margin-left'] = "min(1% - )" should not set the property value +Pass e.style['margin-left'] = "min(1% * )" should not set the property value +Pass e.style['margin-left'] = "min(1% / )" should not set the property value +Pass e.style['margin-left'] = "min(1% 2%)" should not set the property value +Pass e.style['margin-left'] = "min(1%, , 2%)" should not set the property value +Pass e.style['margin-left'] = "max()" should not set the property value +Pass e.style['margin-left'] = "max( )" should not set the property value +Pass e.style['margin-left'] = "max(,)" should not set the property value +Pass e.style['margin-left'] = "max(1#)" should not set the property value +Pass e.style['margin-left'] = "max(%1)" should not set the property value +Pass e.style['margin-left'] = "max(1%, )" should not set the property value +Pass e.style['margin-left'] = "max(, 1%)" should not set the property value +Pass e.style['margin-left'] = "max(1% + )" should not set the property value +Pass e.style['margin-left'] = "max(1% - )" should not set the property value +Pass e.style['margin-left'] = "max(1% * )" should not set the property value +Pass e.style['margin-left'] = "max(1% / )" should not set the property value +Pass e.style['margin-left'] = "max(1% 2%)" should not set the property value +Pass e.style['margin-left'] = "max(1%, , 2%)" should not set the property value +Pass e.style['margin-left'] = "min(0s)" should not set the property value +Pass e.style['margin-left'] = "min(0deg)" should not set the property value +Pass e.style['margin-left'] = "min(0Hz)" should not set the property value +Pass e.style['margin-left'] = "min(0dpi)" should not set the property value +Pass e.style['margin-left'] = "min(0fr)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0s)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0deg)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0Hz)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0dpi)" should not set the property value +Pass e.style['margin-left'] = "min(1%, 0fr)" should not set the property value +Pass e.style['margin-left'] = "max(0s)" should not set the property value +Pass e.style['margin-left'] = "max(0deg)" should not set the property value +Pass e.style['margin-left'] = "max(0Hz)" should not set the property value +Pass e.style['margin-left'] = "max(0dpi)" should not set the property value +Pass e.style['margin-left'] = "max(0fr)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0s)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0deg)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0Hz)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0dpi)" should not set the property value +Pass e.style['margin-left'] = "max(1%, 0fr)" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-time-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-time-invalid.txt new file mode 100644 index 00000000000..5a6f042ab7b --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/minmax-time-invalid.txt @@ -0,0 +1,57 @@ +Harness status: OK + +Found 52 tests + +52 Pass +Pass e.style['transition-delay'] = "min()" should not set the property value +Pass e.style['transition-delay'] = "min( )" should not set the property value +Pass e.style['transition-delay'] = "min(,)" should not set the property value +Pass e.style['transition-delay'] = "min(1mt)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, )" should not set the property value +Pass e.style['transition-delay'] = "min(, 1s)" should not set the property value +Pass e.style['transition-delay'] = "min(1s + )" should not set the property value +Pass e.style['transition-delay'] = "min(1s - )" should not set the property value +Pass e.style['transition-delay'] = "min(1s * )" should not set the property value +Pass e.style['transition-delay'] = "min(1s / )" should not set the property value +Pass e.style['transition-delay'] = "min(1s 2s)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, , 2s)" should not set the property value +Pass e.style['transition-delay'] = "max()" should not set the property value +Pass e.style['transition-delay'] = "max( )" should not set the property value +Pass e.style['transition-delay'] = "max(,)" should not set the property value +Pass e.style['transition-delay'] = "max(1dag)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, )" should not set the property value +Pass e.style['transition-delay'] = "max(, 1s)" should not set the property value +Pass e.style['transition-delay'] = "max(1s + )" should not set the property value +Pass e.style['transition-delay'] = "max(1s - )" should not set the property value +Pass e.style['transition-delay'] = "max(1s * )" should not set the property value +Pass e.style['transition-delay'] = "max(1s / )" should not set the property value +Pass e.style['transition-delay'] = "max(1s 2s)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, , 2s)" should not set the property value +Pass e.style['transition-delay'] = "min(0)" should not set the property value +Pass e.style['transition-delay'] = "min(0%)" should not set the property value +Pass e.style['transition-delay'] = "min(0px)" should not set the property value +Pass e.style['transition-delay'] = "min(0deg)" should not set the property value +Pass e.style['transition-delay'] = "min(0Hz)" should not set the property value +Pass e.style['transition-delay'] = "min(0dpi)" should not set the property value +Pass e.style['transition-delay'] = "min(0fr)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0%)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0px)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0deg)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0Hz)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0dpi)" should not set the property value +Pass e.style['transition-delay'] = "min(1s, 0fr)" should not set the property value +Pass e.style['transition-delay'] = "max(0)" should not set the property value +Pass e.style['transition-delay'] = "max(0%)" should not set the property value +Pass e.style['transition-delay'] = "max(0px)" should not set the property value +Pass e.style['transition-delay'] = "max(0deg)" should not set the property value +Pass e.style['transition-delay'] = "max(0Hz)" should not set the property value +Pass e.style['transition-delay'] = "max(0dpi)" should not set the property value +Pass e.style['transition-delay'] = "max(0fr)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0%)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0px)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0deg)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0Hz)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0dpi)" should not set the property value +Pass e.style['transition-delay'] = "max(1s, 0fr)" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-values/signs-abs-invalid.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/signs-abs-invalid.txt new file mode 100644 index 00000000000..c6bea6bd54c --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-values/signs-abs-invalid.txt @@ -0,0 +1,58 @@ +Harness status: OK + +Found 52 tests + +51 Pass +1 Fail +Pass e.style['font-weight'] = "abs()" should not set the property value +Pass e.style['font-weight'] = "abs( )" should not set the property value +Pass e.style['font-weight'] = "abs(,)" should not set the property value +Pass e.style['font-weight'] = "abs(1, )" should not set the property value +Pass e.style['font-weight'] = "abs(, 1)" should not set the property value +Pass e.style['font-weight'] = "abs(1 + )" should not set the property value +Pass e.style['font-weight'] = "abs(1 - )" should not set the property value +Pass e.style['font-weight'] = "abs(1 * )" should not set the property value +Pass e.style['font-weight'] = "abs(1 / )" should not set the property value +Pass e.style['font-weight'] = "abs(1 2)" should not set the property value +Pass e.style['font-weight'] = "abs(1, , 2)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 2)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 1%)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0px)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0s)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0deg)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0Hz)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0dpi)" should not set the property value +Pass e.style['font-weight'] = "abs(1, 0fr)" should not set the property value +Pass e.style['font-weight'] = "sign()" should not set the property value +Pass e.style['font-weight'] = "sign( )" should not set the property value +Pass e.style['font-weight'] = "sign(,)" should not set the property value +Pass e.style['font-weight'] = "sign(1, )" should not set the property value +Pass e.style['font-weight'] = "sign(, 1)" should not set the property value +Pass e.style['font-weight'] = "sign(1 + )" should not set the property value +Pass e.style['font-weight'] = "sign(1 - )" should not set the property value +Pass e.style['font-weight'] = "sign(1 * )" should not set the property value +Pass e.style['font-weight'] = "sign(1 / )" should not set the property value +Pass e.style['font-weight'] = "sign(1 2)" should not set the property value +Pass e.style['font-weight'] = "sign(1, , 2)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 2)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 1%)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0px)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0s)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0deg)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0Hz)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0dpi)" should not set the property value +Pass e.style['font-weight'] = "sign(1, 0fr)" should not set the property value +Pass e.style['font-weight'] = "abs(0px)" should not set the property value +Pass e.style['font-weight'] = "abs(0s)" should not set the property value +Pass e.style['font-weight'] = "abs(0deg)" should not set the property value +Pass e.style['font-weight'] = "abs(0Hz)" should not set the property value +Pass e.style['font-weight'] = "abs(0dpi)" should not set the property value +Pass e.style['font-weight'] = "abs(0fr)" should not set the property value +Pass e.style['font-weight'] = "abs(1%)" should not set the property value +Pass e.style['font-weight'] = "sign(10px + 5rad)" should not set the property value +Fail e.style['font-weight'] = "sign(10%)" should not set the property value +Pass e.style['tab-size'] = "abs(10%)" should not set the property value +Pass e.style['tab-size'] = "1px * sign(10%)" should not set the property value +Pass e.style['tab-size'] = "1px * sign(1em + 10%)" should not set the property value +Pass e.style['margin-left'] = "1px * sign(10px + 5rad)" should not set the property value +Pass e.style['tab-size'] = "1px * sign(10px + 5rad)" should not set the property value \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/exp-log-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/exp-log-invalid.html new file mode 100644 index 00000000000..d1a135cb2d4 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/exp-log-invalid.html @@ -0,0 +1,65 @@ + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-angle-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-angle-invalid.html new file mode 100644 index 00000000000..bdabc8edb18 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-angle-invalid.html @@ -0,0 +1,69 @@ + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-percentage-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-percentage-invalid.html new file mode 100644 index 00000000000..46230becf9b --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-percentage-invalid.html @@ -0,0 +1,65 @@ + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-time-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-time-invalid.html new file mode 100644 index 00000000000..179c905087d --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/minmax-time-invalid.html @@ -0,0 +1,69 @@ + + + + + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-values/signs-abs-invalid.html b/Tests/LibWeb/Text/input/wpt-import/css/css-values/signs-abs-invalid.html new file mode 100644 index 00000000000..8cfbe6027be --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-values/signs-abs-invalid.html @@ -0,0 +1,77 @@ + + + + + + + + +