mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb/CSS: Serialize Supports::Declaration as original representation
Fixes some WPT tests that expected `supports(foo:bar)` to serialize as `supports(foo:bar)`, instead of `supports(foo: bar)` with a space between. Reading the original_full_text directly also lets us delete Declaration::to_string(), which was only used here.
This commit is contained in:
Notes:
github-actions[bot]
2025-12-02 09:50:44 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/b376ab4e819 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6986
@@ -2,12 +2,12 @@ Harness status: OK
|
||||
|
||||
Found 22 tests
|
||||
|
||||
16 Pass
|
||||
6 Fail
|
||||
20 Pass
|
||||
2 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
|
||||
Pass @import url("nonexist.css") supports(display:block); should be a valid supports() import rule
|
||||
Pass @import url("nonexist.css") supports((display:flex)); should be a valid supports() import rule
|
||||
Pass @import url("nonexist.css") supports(not (display: flex)); should be a valid supports() import rule
|
||||
Pass @import url("nonexist.css") supports((display: flex) and (display: block)); should be a valid supports() import rule
|
||||
Pass @import url("nonexist.css") supports((display: flex) or (display: block)); should be a valid supports() import rule
|
||||
@@ -23,6 +23,6 @@ Pass @import url("nonexist.css") supports(selector(p > a)); should be a valid su
|
||||
Pass @import url("nonexist.css") supports(selector(p + a)); should be a valid supports() import rule
|
||||
Pass @import url("nonexist.css") supports(font-tech(color-colrv1)); should be a valid supports() import rule
|
||||
Pass @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(display:block); should be a valid supports() import rule
|
||||
Pass @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
|
||||
Reference in New Issue
Block a user