mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
style: Correctly serialize CSS Custom Property names.
This commit is contained in:
parent
f284a15e4b
commit
53eb1bb5c6
2 changed files with 35 additions and 4 deletions
|
@ -1169,7 +1169,7 @@ pub extern "C" fn Servo_DeclarationBlock_GetNthProperty(declarations: RawServoDe
|
|||
read_locked_arc(declarations, |decls: &PropertyDeclarationBlock| {
|
||||
if let Some(&(ref decl, _)) = decls.declarations().get(index as usize) {
|
||||
let result = unsafe { result.as_mut().unwrap() };
|
||||
decl.id().to_css(result).unwrap();
|
||||
result.assign_utf8(&decl.id().name());
|
||||
true
|
||||
} else {
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue