flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

nth-child() CSS

Open maljassem opened this issue 3 years ago • 3 comments

Describe your feature request

hello, we need to use nth-child() css.

regards.

Additional context

A picture of a cute animal (not mandatory but encouraged)

maljassem avatar Apr 10 '22 00:04 maljassem

I'm sorry I don't understand what you mean.

erickok avatar Apr 10 '22 14:04 erickok

The :nth-child() CSS pseudo-class matches elements based on their position among a group of siblings for example: I have a Table contains 6 rows I need to access the the second cell in the third row to add some styles

table tr:nth-child(3) td:nth-child(2){ font-weight: bold !important;

table

:nth-child() CSS pseudo-class doesn't work in flutter_html

more information here https://www.w3schools.com/cssref/sel_nth-child.asp

can you please add this feature?

maljassem avatar Apr 10 '22 15:04 maljassem

I see. We have to check if the css parsing library supports this but even then it might be tricky to support this, as we'd have to count the cells in the dynamic table. Don't expect us to support this feature any time soon. Sorry.

erickok avatar Apr 13 '22 07:04 erickok