Skip to content

v1.6.2 - #153

Merged
tbela99 merged 16 commits into
masterfrom
v.next
Sep 8, 2026
Merged

v1.6.2#153
tbela99 merged 16 commits into
masterfrom
v.next

Conversation

@tbela99

@tbela99 tbela99 commented Sep 8, 2026

Copy link
Copy Markdown
Owner
  • fix base64 encoding error when inline sourcemap is enabled
  • handle division by zero in calc()
  • strip escaped new line from string
  • range media query : parse more expression as range query
  • handle NaN and Infinity in computation
  • parse <url-modifiers>

strip escaped new line from string

a[title="a not s\
o very long title"] {
  
color: blue;

is escaped as

a[title="a not so very long title"] {
 color: blue
}

parsing range query is improved

@media (min-resolution: 2dppx) {}

is parsed as

@media (resolution>=2x) {}

NaN and Infinity are now handled in calc().

    @media (min-width: 300px) and (max-width: 768px){
    .s {
  
    top: calc(NaN * 1px);
    line-height: calc(NaN * 1);
  color: alpha(from red/calc(0/0));
  background: alpha(from red/calc(pi/0));
    height: calc(1px * (NaN + 1));  
    width: calc(NaN + 1 + calc(NaN - 1 + calc(NaN / 1 + calc(NaN * 1))));
    margin-left: calc(infinity + 1 + calc(infinity - 1 + calc(infinity / 1 + calc(infinity * 1))));
    margin-right: calc(infinity + 1px + calc(infinity - 1 + calc(infinity / 1 + calc(infinity * 1))));

}

is parsed as

@media (300px<=width<=768px) {
 .s {
  top: calc(NaN*1px);
  line-height: calc(NaN);
  color: alpha(from red/calc(NaN));
  background: alpha(from red/calc(1/0));
  height: calc(1px*NaN);
  width: calc(NaN);
  margin-left: calc(0/0);
  margin-right: calc(0/0 + 1px)
 }
}

Parsing url() <url-modifiers> is supported.

    .s {
    background: url("star.gif" crossorigin(anonymous));
}

is parsed as

.s {
 background: url(star.gif crossorigin(anonymous))
}

@tbela99 tbela99 added this to the v1.6.2 milestone Sep 8, 2026
@tbela99
tbela99 merged commit a7af916 into master Sep 8, 2026
7 checks passed
@tbela99 tbela99 linked an issue Sep 8, 2026 that may be closed by this pull request
6 tasks
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.

v1.6.2

1 participant