Changeset 0c6b92a for imaps-frontend/node_modules/stylis/src
- Timestamp:
- 12/12/24 17:06:06 (6 weeks ago)
- Branches:
- main
- Children:
- 79a0317
- Parents:
- d565449
- Location:
- imaps-frontend/node_modules/stylis/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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 -
TabularUnified imaps-frontend/node_modules/stylis/src/Prefixer.js ¶
rd565449 r0c6b92a 17 17 // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break 18 18 case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: 19 // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,20 case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:21 19 // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) 22 20 case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: 21 // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position 22 case 6391: case 5879: case 5623: case 6135: case 4599: 23 23 return WEBKIT + value + value 24 // mask-composite 25 case 4855: 26 return WEBKIT + value.replace('add', 'source-over').replace('substract', 'source-out').replace('intersect', 'source-in').replace('exclude', 'xor') + value 24 27 // tab-size 25 28 case 4789: … … 77 80 // justify-content 78 81 case 4968: 79 return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s .+-b[^;]+/, 'justify') + WEBKIT + value + value82 return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /space-between/, 'justify') + WEBKIT + value + value 80 83 // justify-self 81 84 case 4200:
Note:
See TracChangeset
for help on using the changeset viewer.