Auto-generate CSSStyleDeclaration.webidl for CSS properties based on the style crate

This commit is contained in:
Simon Sapin 2019-07-26 21:54:42 +02:00
parent 447ae1eae6
commit f1300bb98b
7 changed files with 83 additions and 485 deletions

View file

@ -3344,7 +3344,7 @@ class IDLBuiltinType(IDLType):
[self.location, attribute.location])
assert not self.nullable()
if not attribute.hasValue():
raise WebIDLError("[TreatNullAs] must take an identifier argument"
raise WebIDLError("[TreatNullAs] must take an identifier argument",
[attribute.location])
value = attribute.value()
if value != 'EmptyString':