mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
LibWeb: Parse unknown media type in media queries
Prevent media query parser from falling back into MediaQuery::create_not_all() for queries with unknown media type. With this change following test works correctly: http://wpt.live/css/css-conditional/at-media-001.html
This commit is contained in:
parent
7f527ddde3
commit
2675b9390b
3 changed files with 11 additions and 9 deletions
|
@ -223,6 +223,7 @@ public:
|
|||
All,
|
||||
Print,
|
||||
Screen,
|
||||
Unknown,
|
||||
|
||||
// Deprecated, must never match:
|
||||
TTY,
|
||||
|
@ -258,7 +259,7 @@ String serialize_a_media_query_list(NonnullRefPtrVector<MediaQuery> const&);
|
|||
|
||||
bool is_media_feature_name(StringView name);
|
||||
|
||||
Optional<MediaQuery::MediaType> media_type_from_string(StringView);
|
||||
MediaQuery::MediaType media_type_from_string(StringView);
|
||||
StringView to_string(MediaQuery::MediaType);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue