mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:37:35 +00:00
LibWeb: Remove unknown
value in @supports
query logic
This is in line with this recent change to Conditional-3: > Removed the “unknown” value in CSS feature queries’ boolean logic, > defining unrecognized syntaxes as “false” instead. > https://github.com/w3c/csswg-drafts/issues/6175
This commit is contained in:
parent
6d3a3f279a
commit
7bea0d501e
2 changed files with 22 additions and 19 deletions
|
@ -16,20 +16,21 @@
|
|||
|
||||
namespace Web::CSS {
|
||||
|
||||
// https://www.w3.org/TR/css-conditional-3/#at-supports
|
||||
class Supports final : public RefCounted<Supports> {
|
||||
friend class Parser;
|
||||
|
||||
public:
|
||||
struct Feature {
|
||||
String declaration;
|
||||
MatchResult evaluate() const;
|
||||
bool evaluate() const;
|
||||
};
|
||||
|
||||
struct Condition;
|
||||
struct InParens {
|
||||
Variant<NonnullOwnPtr<Condition>, Feature, GeneralEnclosed> value;
|
||||
|
||||
MatchResult evaluate() const;
|
||||
bool evaluate() const;
|
||||
};
|
||||
|
||||
struct Condition {
|
||||
|
@ -41,7 +42,7 @@ public:
|
|||
Type type;
|
||||
Vector<InParens> children;
|
||||
|
||||
MatchResult evaluate() const;
|
||||
bool evaluate() const;
|
||||
};
|
||||
|
||||
static NonnullRefPtr<Supports> create(NonnullOwnPtr<Condition>&& condition)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue