Changeset 0c6b92a for imaps-frontend/node_modules/stylis/src/Parser.js
- Timestamp:
- 12/12/24 17:06:06 (5 weeks ago)
- Branches:
- main
- Parents:
- d565449
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/stylis/src/Parser.js
rd565449 r0c6b92a 1 1 import {COMMENT, RULESET, DECLARATION} from './Enum.js' 2 2 import {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js' 3 import {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'3 import {node, char, prev, next, peek, token, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js' 4 4 5 5 /** … … 66 66 case 42: case 47: 67 67 append(comment(commenter(next(), caret()), root, parent, declarations), declarations) 68 if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== ' ') characters += ' ' 68 69 break 69 70 default: … … 81 82 // ; 82 83 case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '') 83 if (property > 0 && (strlen(characters) - length ))84 if (property > 0 && (strlen(characters) - length || (variable === 0 && previous === 47))) 84 85 append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations) 85 86 break
Note:
See TracChangeset
for help on using the changeset viewer.