mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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:
parent
e905f25911
commit
0fb6f87d49
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0fb6f87d49
Pull-request: https://github.com/SerenityOS/serenity/pull/17583
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue