1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:37:45 +00:00

LibWeb: Add ic and ric Length units

Using the rough heuristic instead of the actual spec measurement. It's
allowed by the spec, but not ideal:

> In the cases where it is impossible or impractical to determine the
  ideographic advance measure, it must be assumed to be 1em.
This commit is contained in:
Sam Atkins 2023-04-28 17:18:18 +01:00 committed by Andreas Kling
parent 03ed37eb14
commit 0dd585ba7b
2 changed files with 18 additions and 0 deletions

View file

@ -26,6 +26,8 @@ public:
Rcap,
Ch,
Rch,
Ic,
Ric,
Lh,
Rlh,
@ -94,6 +96,8 @@ public:
|| m_type == Type::Rcap
|| m_type == Type::Ch
|| m_type == Type::Rch
|| m_type == Type::Ic
|| m_type == Type::Ric
|| m_type == Type::Lh
|| m_type == Type::Rlh;
}