"text-decoration: underline" appears not to work in syntax styling

Hi!

According to the API docs, it should be possible to use text-decoration: underline in theme classes for the editor:

Each syntax highlighting selector supports the following CSS attributes:

background-color
color
font-style: support for italic / oblique
font-weight
text-decoration: support for underline and strike-through

(OT: Shouldn’t this be line-through instead of strike-through there?)

However, when I try to do something like the following using nova 7.5 on an otherwise editable CSS class, nothing happens:

comment, declaration {
  color: hsl(0, 0%, 50%);
  font-style: italic;
  text-decoration: underline;
}

I can change the color or the font-style alright, but text-decoration is ignored. I’ve tried using different front in the editor prefs as well, Menlo, Hack, even Courier, doesn’t work for neither of them.

(I like to style method definition names underlined to give it the appearance of a “title” or sorts. Helps a lot when scrolling through source files.)

Am I doing something wrong or could this be a bug?

Cheers!

Ah, this is incorrect documentation. Nova does not allow themes to set underline and strikethrough style, as that’s reserved for automatically generated links.

I’ll file an issue to update our documentation!

Ah, sad, I really like underline for method definitions. Guess I’ll have to live with a slightly different background color instead (which IMO doesn’t do the visual separation nearly as elegantly :slight_smile: