mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Improve opacity value parser.
This commit is contained in:
@@ -75,7 +75,7 @@ custom_values = {
|
||||
'background-color': r'{color}',
|
||||
'border-color': r'{color}',
|
||||
'background-position': r'(({percentage}|{length}){0,3})?\s*(top|center|left)?\s*(left|center|right)?',
|
||||
'opacity': r'{num}',
|
||||
'opacity': r'^0?\.?[0-9]*|1\.0*|1|0',
|
||||
'filter': r'alpha\(opacity={num}\)',
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user