mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add remaining keyword values of -moz-user-select (fixes #15197)
This commit is contained in:
parent
7cd4c69c40
commit
3d5b607ba5
4 changed files with 37 additions and 3 deletions
|
@ -70,7 +70,7 @@ class Keyword(object):
|
|||
moz_stripped = value.replace("-moz-", '') if self.gecko_strip_moz_prefix else value.replace("-moz-", 'moz-')
|
||||
mapped = self.consts_map.get(value)
|
||||
if self.gecko_enum_prefix:
|
||||
parts = moz_stripped.split('-')
|
||||
parts = moz_stripped.replace('-', '_').split('_')
|
||||
parts = mapped if mapped else [p.title() for p in parts]
|
||||
return self.gecko_enum_prefix + "::" + "".join(parts)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue