diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/parsing/supports-import-parsing.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/parsing/supports-import-parsing.txt new file mode 100644 index 00000000000..13f9fa737db --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-cascade/parsing/supports-import-parsing.txt @@ -0,0 +1,28 @@ +Harness status: OK + +Found 22 tests + +5 Pass +17 Fail +Pass @import url("nonexist.css") supports(); should be an invalid import rule due to an invalid supports() declaration +Pass @import url("nonexist.css") supports(foo: bar); should be an invalid import rule due to an invalid supports() declaration +Fail @import url("nonexist.css") supports(display:block); should be a valid supports() import rule +Fail @import url("nonexist.css") supports((display:flex)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(not (display: flex)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports((display: flex) and (display: block)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports((display: flex) or (display: block)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports((display: flex) or (foo: bar)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(display: block !important); should be a valid supports() import rule +Pass @import url("nonexist.css") layer supports(); should be an invalid import rule due to an invalid supports() declaration +Pass @import url("nonexist.css") layer supports(foo: bar); should be an invalid import rule due to an invalid supports() declaration +Fail @import url("nonexist.css") layer(A) supports((display: flex) or (foo: bar)); should be a valid supports() import rule +Fail @import url("nonexist.css") layer(A.B) supports((display: flex) and (foo: bar)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(selector(a)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(selector(p a)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(selector(p > a)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(selector(p + a)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(font-tech(color-colrv1)); should be a valid supports() import rule +Fail @import url("nonexist.css") supports(font-format(opentype)); should be a valid supports() import rule +Fail @import url(nonexist.css) supports(display:block); should be a valid supports() import rule +Fail @import "nonexist.css" supports(display:block); should be a valid supports() import rule +Pass @import url("nonexist.css") supports; should still be a valid import rule with an invalid supports() declaration \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.txt new file mode 100644 index 00000000000..e45e3813268 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.txt @@ -0,0 +1,40 @@ +Harness status: OK + +Found 34 tests + +30 Pass +4 Fail +Pass @media is CSSGroupingRule +Pass @media rule type +Pass Empty @media rule length +Fail insertRule of @import into @media +Pass insertRule into empty @media at bad index +Pass insertRule into @media updates length +Pass insertRule of valid @media into @media +Pass insertRule of valid style rule into @media +Fail insertRule of invalid @media into @media +Pass insertRule of empty string into @media +Pass insertRule of valid @media rule followed by garbage into @media +Pass insertRule of valid style rule followed by garbage into @media +Pass insertRule of mutiple valid @media into @media +Pass insertRule of valid style rulle followed by valid @media into @media +Pass insertRule of valid style rule followed by valid @media into @media +Pass insertRule of two valid style rules into @media +Pass Return value of insertRule into @media +Pass @supports is CSSGroupingRule +Pass @supports rule type +Pass Empty @supports rule length +Fail insertRule of @import into @supports +Pass insertRule into empty @supports at bad index +Pass insertRule into @supports updates length +Pass insertRule of valid @media into @supports +Pass insertRule of valid style rule into @supports +Fail insertRule of invalid @media into @supports +Pass insertRule of empty string into @supports +Pass insertRule of valid @media rule followed by garbage into @supports +Pass insertRule of valid style rule followed by garbage into @supports +Pass insertRule of mutiple valid @media into @supports +Pass insertRule of valid style rulle followed by valid @media into @supports +Pass insertRule of valid style rule followed by valid @media into @supports +Pass insertRule of two valid style rules into @supports +Pass Return value of insertRule into @supports \ No newline at end of file diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom/cssimportrule.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/cssimportrule.txt new file mode 100644 index 00000000000..17f7264c257 --- /dev/null +++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom/cssimportrule.txt @@ -0,0 +1,17 @@ +Harness status: OK + +Found 11 tests + +7 Pass +4 Fail +Pass CSSRule and CSSImportRule types +Pass Type of CSSRule#type and constant values +Pass Existence and writability of CSSRule attributes +Fail Values of CSSRule attributes +Pass Existence and writability of CSSImportRule attributes +Fail Values of CSSImportRule attributes +Fail CSSImportRule : MediaList mediaText attribute should be updated due to [PutForwards] +Fail CSSStyleDeclaration cssText attribute should be updated due to [PutForwards] +Pass StyleSheet : MediaList mediaText attribute should be updated due to [PutForwards] +Pass Existence and writability of CSSImportRule supportsText attribute +Pass Value of CSSImportRule supportsText attribute \ No newline at end of file diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-cascade/parsing/supports-import-parsing.html b/Tests/LibWeb/Text/input/wpt-import/css/css-cascade/parsing/supports-import-parsing.html new file mode 100644 index 00000000000..831c864024c --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-cascade/parsing/supports-import-parsing.html @@ -0,0 +1,92 @@ + + +@import rule with supports parsing / serialization + + + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.html b/Tests/LibWeb/Text/input/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.html new file mode 100644 index 00000000000..d0bd5c3a616 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/css-conditional/js/conditional-CSSGroupingRule.html @@ -0,0 +1,244 @@ + + + CSSGroupingRule Conditional Rules Test + + + + + + + + + +
+
+ + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom/cssimportrule.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom/cssimportrule.html new file mode 100644 index 00000000000..1a87e7be7c3 --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom/cssimportrule.html @@ -0,0 +1,124 @@ + + + + CSSOM CSSRule CSSImportRule interface + + + + + + + + + + + + +
+ + + + diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom/support/a-green.css b/Tests/LibWeb/Text/input/wpt-import/css/cssom/support/a-green.css new file mode 100644 index 00000000000..b0dbb071d5b --- /dev/null +++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom/support/a-green.css @@ -0,0 +1 @@ +.a { color: green; }