mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Serialize unquoted font-family without quote
This commit is contained in:
parent
54e2b7b2d5
commit
9991c496b3
8 changed files with 53 additions and 24 deletions
|
@ -282,7 +282,10 @@ macro_rules! font_face_descriptors {
|
|||
font_face_descriptors! {
|
||||
mandatory descriptors = [
|
||||
/// The name of this font face
|
||||
"font-family" family: FamilyName = FamilyName(atom!("")),
|
||||
"font-family" family: FamilyName = FamilyName {
|
||||
name: atom!(""),
|
||||
quoted: true,
|
||||
},
|
||||
|
||||
/// The alternative sources for this font face.
|
||||
"src" sources: Vec<Source> = Vec::new(),
|
||||
|
@ -308,7 +311,10 @@ font_face_descriptors! {
|
|||
font_face_descriptors! {
|
||||
mandatory descriptors = [
|
||||
/// The name of this font face
|
||||
"font-family" family: FamilyName = FamilyName(atom!("")),
|
||||
"font-family" family: FamilyName = FamilyName {
|
||||
name: atom!(""),
|
||||
quoted: true,
|
||||
},
|
||||
|
||||
/// The alternative sources for this font face.
|
||||
"src" sources: Vec<Source> = Vec::new(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue