akira-kurogane / furigana-injector

Automatically exported from code.google.com/p/furigana-injector
2 stars 1 forks source link

Fix bad furigana font size caused by bad CSS rules #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

On some site, e.g. www.asahi.com, there are CSS rules that use the wildcard 
selector and apply font-size rules, e.g. "body * { font-size: 100%; }"

This causes furigana (in <rt> tags) to be the same size as their base text.

Apply code to put rt-specific rules after each bad rule to set the ruby-test 
size to 60%, e.g. 
"body * { font-size: 100%; }
body * rt { font-size: 60%; }"

Make it an option that is on by default after first install. Apply to both 
Firefox and Chrome versions.

Original issue reported on code.google.com by akira%ya...@gtempaccount.com on 16 Aug 2010 at 1:23

GoogleCodeExporter commented 9 years ago
Update: font-size is inherited into <rt>'s, so basically any rule that includes 
a font or font-size value needs to be fixed.

Maybe this should be a bug for Chromium?

Original comment by akira%ya...@gtempaccount.com on 16 Aug 2010 at 3:47

GoogleCodeExporter commented 9 years ago
Code applied to the Chrome version.

Code not applied to the Firefox version because it does not yet natively 
support ruby. The current extensions to support Ruby already fix the size.

Original comment by akira%ya...@gtempaccount.com on 16 Aug 2010 at 3:50