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

LibWeb: Convert numeric tokens to numbers in CSS Tokenizer

The spec wants us to produce numeric values as the Tokenizer sees them,
rather than waiting until the parse stage. This is a first step towards
that.
This commit is contained in:
Sam Atkins 2021-11-17 21:01:51 +00:00 committed by Andreas Kling
parent d2ef8b29e8
commit f6869797a7
3 changed files with 90 additions and 5 deletions

View file

@ -152,6 +152,7 @@ private:
StringBuilder m_unit;
HashType m_hash_type { HashType::Unrestricted };
NumberType m_number_type { NumberType::Integer };
double m_number_value { 0 };
Position m_start_position;
Position m_end_position;