diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-04-17 20:03:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-19 18:25:18 +0200 |
commit | 5647d37d4286e35a507e390edc8311673e5554ba (patch) | |
tree | c0bd674e40911be72237cd1b33dfbb7845dd58ec /Userland/Libraries/LibWeb/FontCache.h | |
parent | 7458cf4231d08703746c8b091259e95d80e4c492 (diff) | |
download | serenity-5647d37d4286e35a507e390edc8311673e5554ba.zip |
LibWeb: Stop parsing `auto` as a Length
Previously, whether trying to parse a `<length>` or `<dimension>`, we
would accept `auto` and produce a `LengthStyleValue` from it. This
would fool the `property_accepts_value()` into allowing `auto` where it
does not belong, if the property did accept lengths.
Of the few places in the parser that called `parse_dimension_value()` or
`parse_length()`, none of them were expecting it to accept `auto`, so
this fixes those too. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/FontCache.h')
0 files changed, 0 insertions, 0 deletions