Title: [108690] trunk
- Revision
- 108690
- Author
- [email protected]
- Date
- 2012-02-23 15:55:51 -0800 (Thu, 23 Feb 2012)
Log Message
CSS2:text-decoration: <rt> element should not inherit text-decoration property
https://bugs.webkit.org/show_bug.cgi?id=71266
Patch by Koji Ishii <[email protected]> on 2012-02-23
Reviewed by Kentaro Hara.
Source/WebCore:
Tests: fast/ruby/text-decoration-in-descendants-ruby-expected.html
fast/ruby/text-decoration-in-descendants-ruby.html
The spec says "text decorations are not propagated to any out-of-flow descendants":
http://www.w3.org/TR/2011/WD-css3-text-20110901/#decoration
Floats etc. are fixed in bug 18611, but <rt> is not inline either and therefore
it should be included; it was confirmed at a discussion at www-style.
http://lists.w3.org/Archives/Public/www-style/2011Sep/0238.html
* rendering/RenderObject.cpp:
(WebCore::RenderObject::getTextDecorationColors):
LayoutTests:
The spec says "text decorations are not propagated to any out-of-flow descendants":
http://www.w3.org/TR/2011/WD-css3-text-20110901/#decoration
Floats etc. are fixed in bug 18611, but <rt> is not inline either and therefore
it should be included; it was confirmed at a discussion at www-style.
http://lists.w3.org/Archives/Public/www-style/2011Sep/0238.html
* fast/ruby/text-decoration-in-descendants-ruby-expected.html: Added.
* fast/ruby/text-decoration-in-descendants-ruby.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (108689 => 108690)
--- trunk/LayoutTests/ChangeLog 2012-02-23 23:54:01 UTC (rev 108689)
+++ trunk/LayoutTests/ChangeLog 2012-02-23 23:55:51 UTC (rev 108690)
@@ -1,3 +1,19 @@
+2012-02-23 Koji Ishii <[email protected]>
+
+ CSS2:text-decoration: <rt> element should not inherit text-decoration property
+ https://bugs.webkit.org/show_bug.cgi?id=71266
+
+ Reviewed by Kentaro Hara.
+
+ The spec says "text decorations are not propagated to any out-of-flow descendants":
+ http://www.w3.org/TR/2011/WD-css3-text-20110901/#decoration
+ Floats etc. are fixed in bug 18611, but <rt> is not inline either and therefore
+ it should be included; it was confirmed at a discussion at www-style.
+ http://lists.w3.org/Archives/Public/www-style/2011Sep/0238.html
+
+ * fast/ruby/text-decoration-in-descendants-ruby-expected.html: Added.
+ * fast/ruby/text-decoration-in-descendants-ruby.html: Added.
+
2012-02-23 Filip Pizlo <[email protected]>
Make fast/js/script-tests/dfg-inline-function-dot-caller not timeout.
Added: trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby-expected.html (0 => 108690)
--- trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby-expected.html (rev 0)
+++ trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby-expected.html 2012-02-23 23:55:51 UTC (rev 108690)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test: ruby layout items should block text decoration propagation just like atomic inlines do</title>
+<style type="text/css">
+.container { font-size:24pt; }
+.d {
+ text-decoration:underline line-through;
+}
+rt { color:blue; }
+</style>
+</head>
+<body>
+<p>Bug <a href="" CSS2:text-decoration: <rt> element should not inherit text-decoration property</p>
+<div class="container">
+<div><ruby><span class="d">X</span><rt>This line should NOT be underlined nor strike-through</rt></ruby></div>
+<div><ruby><span class="d">X</span><rt><span class="d">This line should be underlined and strike-through</span></rt></ruby></div>
+</div>
+</body>
+</html>
Added: trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby.html (0 => 108690)
--- trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby.html (rev 0)
+++ trunk/LayoutTests/fast/ruby/text-decoration-in-descendants-ruby.html 2012-02-23 23:55:51 UTC (rev 108690)
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>CSS Test: ruby layout items should block text decoration propagation just like atomic inlines do</title>
+<style type="text/css">
+.container { font-size:24pt; }
+.d {
+ text-decoration:underline line-through;
+}
+rt { color:blue; }
+</style>
+</head>
+<body>
+<p>Bug <a href="" CSS2:text-decoration: <rt> element should not inherit text-decoration property</p>
+<div class="container">
+<div><span class="d"><ruby>X<rt>This line should NOT be underlined nor strike-through</rt></ruby></span></div>
+<div><span class="d"><ruby>X<rt><span class="d">This line should be underlined and strike-through</span></rt></ruby></span></div>
+</div>
+</body>
+</html>
Modified: trunk/Source/WebCore/ChangeLog (108689 => 108690)
--- trunk/Source/WebCore/ChangeLog 2012-02-23 23:54:01 UTC (rev 108689)
+++ trunk/Source/WebCore/ChangeLog 2012-02-23 23:55:51 UTC (rev 108690)
@@ -1,3 +1,22 @@
+2012-02-23 Koji Ishii <[email protected]>
+
+ CSS2:text-decoration: <rt> element should not inherit text-decoration property
+ https://bugs.webkit.org/show_bug.cgi?id=71266
+
+ Reviewed by Kentaro Hara.
+
+ Tests: fast/ruby/text-decoration-in-descendants-ruby-expected.html
+ fast/ruby/text-decoration-in-descendants-ruby.html
+
+ The spec says "text decorations are not propagated to any out-of-flow descendants":
+ http://www.w3.org/TR/2011/WD-css3-text-20110901/#decoration
+ Floats etc. are fixed in bug 18611, but <rt> is not inline either and therefore
+ it should be included; it was confirmed at a discussion at www-style.
+ http://lists.w3.org/Archives/Public/www-style/2011Sep/0238.html
+
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::getTextDecorationColors):
+
2012-02-23 Zoltan Horvath <[email protected]>
[Qt] Allow to use WebCore imagedecoders
Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (108689 => 108690)
--- trunk/Source/WebCore/rendering/RenderObject.cpp 2012-02-23 23:54:01 UTC (rev 108689)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp 2012-02-23 23:55:51 UTC (rev 108690)
@@ -2549,7 +2549,7 @@
linethrough = decorationColor(curr);
}
}
- if (curr->isFloating() || curr->isPositioned())
+ if (curr->isFloating() || curr->isPositioned() || curr->isRubyText())
return;
curr = curr->parent();
if (curr && curr->isAnonymousBlock() && toRenderBlock(curr)->continuation())
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes