Skip to content

feat: add OutputStyle::GtkCompressed - #122

Open
DOD-101 wants to merge 2 commits into
connorskees:masterfrom
DOD-101:add-gtk-compressed
Open

feat: add OutputStyle::GtkCompressed#122
DOD-101 wants to merge 2 commits into
connorskees:masterfrom
DOD-101:add-gtk-compressed

Conversation

@DOD-101

@DOD-101 DOD-101 commented Jul 29, 2026

Copy link
Copy Markdown

Adds a new OutputStyle similar to Compressed designed to work with GTK CSS.

The issue with the current Compressed style when used with GTK CSS is that it
strips semicolons at the end of rule blocks, which GTK doesn't allow leading to
warnings from the parser.

The GtkCompressed style also ensures that no "@charset" or bom is outputted,
since GTK doesn't support them. All GTK CSS is automatically assumed to be
UTF-8. Other encodings are not supported.

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