فهرست منبع

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

In the latest backgrounds-3 spec, these have official fixed values. :^)
Sam Atkins 2 سال پیش
والد
کامیت
0fb6f87d49
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Userland/Libraries/LibWeb/Layout/Node.cpp

+ 1 - 1
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;