mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Correctly skip "decimal" in counter() serialization
It's not a keyword, it's a custom-ident. The simplest way of comparing is by serializing it as a string. This gets us 2 subtest passes.
This commit is contained in:
parent
917d659f8b
commit
bc17a3c2eb
Notes:
github-actions[bot]
2024-11-30 10:03:08 +00:00
Author: https://github.com/AtkinsSJ
Commit: bc17a3c2eb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2638
2 changed files with 5 additions and 5 deletions
|
@ -151,7 +151,7 @@ String CounterStyleValue::to_string() const
|
|||
list.append(CustomIdentStyleValue::create(m_properties.counter_name));
|
||||
if (m_properties.function == CounterFunction::Counters)
|
||||
list.append(StringStyleValue::create(m_properties.join_string.to_string()));
|
||||
if (m_properties.counter_style->to_keyword() != Keyword::Decimal)
|
||||
if (m_properties.counter_style->to_string() != "decimal"sv)
|
||||
list.append(m_properties.counter_style);
|
||||
|
||||
// 5. Let each item in list be the result of invoking serialize a CSS component value on that item.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue