You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- #125 Removing last selector causes exception
- #126 Subsequent-sibling Combinator 'swallows' characters that follow it
- #127 Shortening 0(unit) to 0 breaks declarations in some cases
- #128 raising the minimum php version to 8.0
Input CSS:
Code:
Output:
As you can see, during the parsing the "fi" in "figure" after tilde
~
disappeared.I tracked it to an increment in the following line. Removing increment solves the issue.
css/src/TBela/CSS/Value.php
Line 1202 in 16810e7
From what I can see that part of the switch-case handles the following situations:
=
in the attribute context. This is handled by the following linecss/src/TBela/CSS/Value.php
Line 1196 in 16810e7
~=
^=
$=
in the attribute context. You're using$string[$i++]
to move past the=
sign to not consume it againcss/src/TBela/CSS/Value.php
Line 1199 in 16810e7
~
in no context which becomes part of selector. From what I can see, there is no need for increment, since you're handling only one character.css/src/TBela/CSS/Value.php
Line 1202 in 16810e7
The text was updated successfully, but these errors were encountered: