1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

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
parent e905f25911
commit 0fb6f87d49

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;