From 0fb6f87d49466330423ce3b8f2f7c30c2c41b46e Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 23 Feb 2023 16:18:55 +0000 Subject: [PATCH] LibWeb: Add spec link to border-width: thin/medium/thick definitions In the latest backgrounds-3 spec, these have official fixed values. :^) --- Userland/Libraries/LibWeb/Layout/Node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index 7bfd886de5..4581534ae6 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -578,7 +578,7 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style) if (value->has_length()) return value->to_length().to_px(*this).value(); if (value->is_identifier()) { - // FIXME: These values should depend on something, e.g. a font size. + // https://www.w3.org/TR/css-backgrounds-3/#valdef-line-width-thin switch (value->to_identifier()) { case CSS::ValueID::Thin: return 1.0f;