Cells and CSS role

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cells and CSS role

christophe
Hello,
I have seen may posts on that but no final status.
Is there a way to assign a role to a cell ?
I would like to change BGColor depending on values using css properties.
Thx
Reply | Threaded
Open this post in threaded view
|

Re: Cells and CSS role

mojavelinux
Administrator
No, there is not. It's an open issue. https://github.com/asciidoctor/asciidoctor/issues/1338 And since it is a language change, it will require ratification by the AsciiDoc language spec project, which is still getting underway. It's not likely to be resolved this year. However, it is something we plan to write into the first version of the specification, if possible.

What you can do is set a role on the table, then use CSS to target specific cells. You could even have a lot of different roles that target cells in different ways. So it is possible to do...it just happens to be more clumsy.

Best Regards,

-Dan