1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 12:05:07 +00:00
serenity/Userland/Libraries/LibWeb/CSS/Parser
Karol Kosek ffa7da0ca5 LibWeb: Handle CSS "ch" length unit (mostly)
This isn't 100% spec complaint, as it should use glyph_height()
depending on what the value of the writing-mode is, but we haven't
implemented it yet, so I think it'll be good enough for now.

This can be tested in https://wpt.live/css/css-values/ch-unit-008.html
Other css-unit tests fail as:
- 001 shows an issue related to a renderer (looks to me like you can't
  pass a width and height property to a span -- adding `display: block`
  to it passes the test),
- 002-004 and 009-012 use mentioned writing-mode,
- 016-017 loads custom fonts, which we also don't support (yet).
2021-08-25 17:55:53 +02:00
..
DeclarationOrAtRule.h LibWeb: Add accessors to CSS::DeclarationOrAtRule 2021-07-11 23:19:56 +02:00
Parser.cpp LibWeb: Handle CSS "ch" length unit (mostly) 2021-08-25 17:55:53 +02:00
Parser.h LibWeb: Parse CSS builtins before other values 2021-08-25 12:14:34 +02:00
StyleBlockRule.h LibWeb: Give CSS Token and StyleComponentValueRule matching is() funcs 2021-07-11 23:19:56 +02:00
StyleComponentValueRule.h LibWeb: Increase clarity with CSS token debug logging 2021-07-11 23:19:56 +02:00
StyleDeclarationRule.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
StyleFunctionRule.h LibWeb: Use Selectors instead of a String for :not() selectors 2021-07-14 13:31:00 +02:00
StyleRule.h LibWeb: Merge CSS Parser's QualifiedStyleRule and AtStyleRule 2021-07-11 23:19:56 +02:00
StyleRules.cpp LibWeb: Convert StyleFunctionRule.m_values to ComponentValues 2021-07-11 23:19:56 +02:00
Token.cpp LibWeb: Make CSS 'An+B' parsing spec-compliant 2021-07-31 00:18:11 +02:00
Token.h LibWeb: Make CSS 'An+B' parsing spec-compliant 2021-07-31 00:18:11 +02:00
Tokenizer.cpp LibWeb: Fix EOF handling in CSS Tokenizer peek_{twin,triplet}() 2021-08-04 19:04:12 +04:30
Tokenizer.h LibWeb: Correct escape handling in CSS Tokenizer 2021-07-11 23:19:56 +02:00