LibWeb: Add spec link to border-width: thin/medium/thick definitions

In the latest backgrounds-3 spec, these have official fixed values. :^)
This commit is contained in:
Sam Atkins 2023-02-23 16:18:55 +00:00 committed by Sam Atkins
commit 0fb6f87d49
Notes: sideshowbarker 2024-07-17 08:43:11 +09:00

View file

@ -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;