Skip to content

[feat] Hope to support new units 'rpx' #76

@bigmeow

Description

@bigmeow

In China, the Wechat applet is very popular. It defines a responsive unit,'rpx'

code:

width: calc(100% - 10rpx);

I hope the above code will work properly.

Try to modify the following code to make it work

([0-9]+("."[0-9]+)?|"."[0-9]+)px\b return 'LENGTH';

//update after
([0-9]+("."[0-9]+)?|"."[0-9]+)r?px\b              return 'LENGTH';

Is this proposal acceptable to you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions