mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
This commit modifies the `compute_foo()` code for `font-style` and `math-depth`. They previously assumed that their StyleValue was always a special kind: FontStyleStyleValue or MathDepthStyleValue. This was always true, because that's how we parse them, but it stops being true once StylePropertyMap is involved: An author can set font-style to a CSSKeywordValue of "italic", and this should work. There are multiple ways that we could solve this, but the simplest and easiest to maintain seems to be to handle those more basic StyleValues in this computation code. Going forward, we'll have to be aware that similar properties could have a basic StyleValue from the typed-OM instead of the property-specific one we'd expect.
193 KiB
193 KiB