flutter_html icon indicating copy to clipboard operation
flutter_html copied to clipboard

Cannot style <ruby> by class name

Open AlienKevin opened this issue 3 years ago • 0 comments

Describe the bug: <ruby> cannot be styled by referring to its class name. The reason why I can't style the ruby tag directly is because I have nested rubies inside whose fontSize gets quadrupled when I double the fontSize of all ruby tags.

HTML to reproduce the issue:

<ruby class="clause">
生<rt>sang1</rt>
命<rt>ming6</rt>
</ruby>

Html widget configuration:

".clause": Style(fontSize: FontSize.percent(200))

Expected behavior: Ruby text to be doubled the size of normal text.

Device details and Flutter/Dart/flutter_html versions: Flutter_html version: Jan 14, 2022 commit hash ed48ee825a997abfcc1dfe43a98280ce0ea3a39a

AlienKevin avatar Jan 14 '22 22:01 AlienKevin