Bug 34198 - Ruby text should not inherit line-height
(https://bugs.webkit.org/show_bug.cgi?id=34198)
Reviewed by Adele Peterson.
Resetting line-height to 'normal' in the default UA style sheet.
Adding layout-test to check for this.
WebCore:
Test: fast/ruby/ruby-line-height.html
* css/html.css:
LayoutTests:
* fast/ruby/script-tests: Added.
* fast/ruby/script-tests/ruby-line-height.js: Added.
* fast/ruby/ruby-line-height-expected.txt: Added.
* fast/ruby/ruby-line-height.html: Added.
git-svn-id: svn://svn.chromium.org/blink/trunk@54273 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/WebCore/css/html.css b/WebCore/css/html.css
index 913dbe5..9d9225c 100644
--- a/WebCore/css/html.css
+++ b/WebCore/css/html.css
@@ -621,7 +621,8 @@
/* HTML5 ruby elements */
ruby, rt {
- text-indent: 0; /* blocks used for ruby rendering should not trigger this */
+ text-indent: 0; /* blocks used for ruby rendering should not trigger this */
+ line-height: normal;
}
ruby > rt {