Skip to content

select: fix counter-increment/reset dropping named counters - #34

Open
metan-ucw wants to merge 1 commit into
netsurf-browser:masterfrom
metan-ucw:master
Open

select: fix counter-increment/reset dropping named counters#34
metan-ucw wants to merge 1 commit into
netsurf-browser:masterfrom
metan-ucw:master

Conversation

@metan-ucw

Copy link
Copy Markdown

css__cascade_counter_increment_reset() builds the computed counter array in the COUNTER_INCREMENT_NAMED case but never sets value to CSS_COUNTER_INCREMENT_NAMED. value stays at its initial CSS_COUNTER_INCREMENT_INHERIT (0x0), so the named counters are handed to the property setter tagged as INHERIT and discarded — computed counter-increment/counter-reset always read back as none/inherit.

The helper is shared, so both counter-increment and counter-reset were affected. Set value = CSS_COUNTER_INCREMENT_NAMED once counters are read.

css__cascade_counter_increment_reset() builds the computed counter array
in the COUNTER_INCREMENT_NAMED case but never sets `value` to
CSS_COUNTER_INCREMENT_NAMED. `value` stays at its initial
CSS_COUNTER_INCREMENT_INHERIT (0x0), so the named counters are handed to
the property setter tagged as INHERIT and discarded — computed
counter-increment/counter-reset always read back as none/inherit.

The helper is shared, so both counter-increment and counter-reset were
affected. Set value = CSS_COUNTER_INCREMENT_NAMED once counters are read.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Cyril Hrubis <metan@ucw.cz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant