1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

LibWeb: Add rex and rch Length units

These are the same as `ex` and `ch`, but using the root element's
metrics. We now have this information available, so let's use it. :^)
This commit is contained in:
Sam Atkins 2023-04-28 16:58:12 +01:00 committed by Andreas Kling
parent 3c171593f8
commit a8e0fa403a
2 changed files with 16 additions and 0 deletions

View file

@ -21,7 +21,9 @@ public:
Em,
Rem,
Ex,
Rex,
Ch,
Rch,
Lh,
Rlh,
@ -84,7 +86,9 @@ public:
return m_type == Type::Em
|| m_type == Type::Rem
|| m_type == Type::Ex
|| m_type == Type::Rex
|| m_type == Type::Ch
|| m_type == Type::Rch
|| m_type == Type::Lh
|| m_type == Type::Rlh;
}