Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generators #2

Merged
merged 22 commits into from
Aug 5, 2023
Merged

Generators #2

merged 22 commits into from
Aug 5, 2023

Conversation

tbela99
Copy link
Owner

@tbela99 tbela99 commented May 25, 2023

Minification

  • merge identical rules
  • merge adjacent rules
  • minify colors
  • compute shorthand: border-radius, border-width, margin, padding
  • remove redundant declarations
  • simple shorthand properties (padding, margin, etc). must have all required properties
  • complex shorthand properties (background, font, etc.). may have optional properties
  • conditionally unwrap :is()
  • automatic css nesting
  • automatically wrap selectors using :is()
  • multi-level shorthand properties (border - [border-width, border-color, etc.]) https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties
  • avoid reparsing (declarations, selectors, at-rule)
  • avoid rerendering (declarations, selectors, at-rule)
  • node and browser versions
  • decode and replace utf-8 escape sequence

Performance

Testing

  • node tests
  • browser tests

Code Coverage

  • node
  • browser

@tbela99 tbela99 added this to the v0.0.1 milestone Jul 6, 2023
@tbela99 tbela99 marked this pull request as draft July 6, 2023 13:28
@tbela99 tbela99 marked this pull request as ready for review August 5, 2023 07:29
@tbela99 tbela99 merged commit 0d214fa into master Aug 5, 2023
5 checks passed
@tbela99 tbela99 deleted the generators branch August 5, 2023 23:23
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