Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When rendering HTML with styleType: 'css', one text block cannot be both underline and strikethrough #1

Open
kbjr opened this issue Oct 27, 2014 · 1 comment
Labels

Comments

@kbjr
Copy link
Member

kbjr commented Oct 27, 2014

Underlines and strikethroughs are both handled by text-decoration in css, which means one node cannot have both. This could be fixed by wrapping it in a second element, like this:

<span style="text-decoration: underline">
  <span style="text-decoration: line-through">
    content
  </span>
</span>
@kbjr kbjr added the bug label Oct 27, 2014
@kbjr kbjr changed the title When rendering HTML with styleType: 'css', one text block cannot be both underline and strkethrogh When rendering HTML with styleType: 'css', one text block cannot be both underline and strkethrough Oct 27, 2014
@kbjr kbjr changed the title When rendering HTML with styleType: 'css', one text block cannot be both underline and strkethrough When rendering HTML with styleType: 'css', one text block cannot be both underline and strikethrough Oct 27, 2014
@kbjr
Copy link
Member Author

kbjr commented Jan 4, 2015

This can now (theoretically) be fixed as the text-decoration property can now take multiple values:

element {
    text-decoration-line: underline line-through;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant