Skip to content

Conversation

@karlseguin
Copy link
Collaborator

The only functionality change is adding a named_set to the CSSStyleDeclaration so that styles can be set (named_get was already defined)

Combine the StringHashMapUnmanaged + ArrayListUnmanaged into a single StringArrayHashMapUnmanaged.

Use file structs, because @import("css_style_declaration.zig").CSSStyleDeclaration is a bit tedious.

Various micro-optimization around parsing CSS, e.g. ascii.eqlIgnoreCase in loops replaced by 1 lowercase + N*mem.eql.

The only functionality change is adding a `named_set` to the CSSStyleDeclaration
so that styles can be set (`named_get` was already defined)

Combine the StringHashMapUnmanaged + ArrayListUnmanaged into a single
StringArrayHashMapUnmanaged.

Use file structs, because @import("css_style_declaration.zig").CSSStyleDeclaration
is a bit tedious.

Various micro-optimization around parsing CSS, e.g. ascii.eqlIgnoreCase in loops
replaced by 1 lowercase + N*mem.eql.
@karlseguin karlseguin merged commit 02fe46d into main Jul 24, 2025
10 checks passed
@karlseguin karlseguin deleted the css_tweaks branch July 24, 2025 11:28
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants