Ignore:
Timestamp:
12/12/24 17:06:06 (6 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Children:
79a0317
Parents:
d565449
Message:

Pred finalna verzija

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  
    11import {COMMENT, RULESET, DECLARATION} from './Enum.js'
    22import {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'
     3import {node, char, prev, next, peek, token, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'
    44
    55/**
     
    6666                                        case 42: case 47:
    6767                                                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 += ' '
    6869                                                break
    6970                                        default:
     
    8182                                        // ;
    8283                                        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)))
    8485                                                        append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)
    8586                                                break
  • TabularUnified imaps-frontend/node_modules/stylis/src/Prefixer.js

    rd565449 r0c6b92a  
    1717                // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
    1818                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:
    2119                // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
    2220                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:
    2323                        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
    2427                // tab-size
    2528                case 4789:
     
    7780                // justify-content
    7881                case 4968:
    79                         return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value
     82                        return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /space-between/, 'justify') + WEBKIT + value + value
    8083                // justify-self
    8184                case 4200:
Note: See TracChangeset for help on using the changeset viewer.