1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

LibWeb: Implement relative lengths in media queries :^)

As noted, this is not entirely right, since we are using the computed
font's metrics instead of the initial font's metrics, but we do not
have a good way to obtain the latter.
This commit is contained in:
Sam Atkins 2022-02-15 16:12:22 +00:00 committed by Andreas Kling
parent 50cc008efd
commit d2ade9800f
2 changed files with 25 additions and 14 deletions

View file

@ -135,7 +135,7 @@ private:
{
}
static bool compare(MediaFeatureValue left, Comparison comparison, MediaFeatureValue right);
static bool compare(DOM::Window const& window, MediaFeatureValue left, Comparison comparison, MediaFeatureValue right);
struct Range {
MediaFeatureValue left_value;