Callum Law
595848b0fa
LibWeb: Implement CounterStyle::equals
...
This makes `ValueComparingRefPtr<CounterStyle>` work
2026-04-15 11:07:38 +01:00
Callum Law
b86377b9dc
LibWeb: Clamp CSS <integer> value to i32 at parse time
...
This matches the behavior of other browsers. Previously we implemented
this at used-value time for z-index specifically.
2026-03-26 12:30:01 +01:00
Callum Law
d0eabada0b
LibWeb: Support extended Korean counter styles
2026-02-27 12:10:44 +00:00
Callum Law
1877c20c7b
LibWeb: Support extended Japanese counter styles
2026-02-27 12:10:44 +00:00
Callum Law
08a5ed7ec6
LibWeb: Support Chinese counter styles
...
We implement the extended version of this algorithm but don't take full
advantage of it since we are limited to an i32 for our counter values.
2026-02-27 12:10:44 +00:00
Callum Law
120cabd35c
LibWeb: Support ethiopic-numeric counter style
2026-02-27 12:10:44 +00:00
Callum Law
bd1ebdb8bb
LibWeb: Add reusable CounterStyleAlgorithmOrExtends type
...
We already use this in a few places and will use it even more in later
commits
2026-02-27 12:10:44 +00:00
Callum Law
c467c2f9ca
LibWeb: Make CounterStyleDefinition::create return type non-optional
...
And also use it within `from_counter_style`
2026-02-27 12:10:44 +00:00
Callum Law
73b07d25ac
LibWeb: Resolve and register counter styles from @counter-style rules
...
The tricky bit of this is resolving cycles in extending rules and
ensuring that counter styles are registered in the required order for
extension (i.e. for any pair of extended/extending rules the extended
one should be registered first).
2026-02-23 11:21:09 +00:00
Callum Law
bb5c8bb5be
LibWeb: Add CounterStyleDefinition
...
This serves as an intermediate step between `CSSCounterStyleRule` and a
fully built counter style which will be helpful for:
- Determining whether a rule defines a counter style
- Resolving extends cycles
- Determining registration order
2026-02-23 11:21:09 +00:00