Skip to content

Commit

Permalink
Suppress line breaks before field/slot references (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 authored Aug 16, 2024
1 parent 1a619b2 commit f5c2c45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ var.field {
font: inherit;
color: inherit;
}
/* suppress line break opportunities between `.` and `[[FieldName]]` */
var.field::before {
content: '\2060'
}

var.referenced {
color: inherit;
Expand Down
4 changes: 4 additions & 0 deletions test/baselines/generated-reference/assets-inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,10 @@
font: inherit;
color: inherit;
}
/* suppress line break opportunities between `.` and `[[FieldName]]` */
var.field::before {
content: '\2060'
}
var.referenced {
color: inherit;
Expand Down

0 comments on commit f5c2c45

Please sign in to comment.