diff options
author | commit-queue@webkit.org <commit-queue@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-12-21 23:58:04 +0000 |
---|---|---|
committer | commit-queue@webkit.org <commit-queue@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-12-21 23:58:04 +0000 |
commit | a47a56a578be1aaa32c19d184b68e12083555a62 (patch) | |
tree | 86cbd7ccf0b2f3c7027da22fe68f7a5aaaf988bd /third_party/WebKit/LayoutTests/fast/html | |
parent | 11d65fc5414f39692dc8ba8da4a9223d98b04d75 (diff) | |
download | chromium_src-a47a56a578be1aaa32c19d184b68e12083555a62.zip chromium_src-a47a56a578be1aaa32c19d184b68e12083555a62.tar.gz chromium_src-a47a56a578be1aaa32c19d184b68e12083555a62.tar.bz2 |
Patch by Wyatt Carss <wcarss@chromium.org> on 2011-12-21
Reviewed by Ryosuke Niwa.
strong and b should be font-weight: bold, not bolder
https://bugs.webkit.org/show_bug.cgi?id=56400
Source/WebCore:
Test: fast/html/font-weight-bold-for-b-and-strong.html
* css/html.css:
(strong, b):
LayoutTests:
Changed html.css to specify that strong and b are font-weight: bold,
not font-weight: bolder. Test added to confirm.
* fast/html/font-weight-bold-for-b-and-strong-expected.png: Added.
* fast/html/font-weight-bold-for-b-and-strong-expected.txt: Added.
* fast/html/font-weight-bold-for-b-and-strong.html: Added.
* WebCore/css/html.css:
git-svn-id: svn://svn.chromium.org/blink/trunk@103468 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong-expected.txt | 29 | ||||
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong.html | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong-expected.txt b/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong-expected.txt new file mode 100644 index 0000000..85d56e5 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong-expected.txt @@ -0,0 +1,29 @@ +layer at (0,0) size 800x600 + RenderView at (0,0) size 800x600 +layer at (0,0) size 800x216 + RenderBlock {HTML} at (0,0) size 800x216 + RenderBody {BODY} at (8,16) size 784x184 + RenderBlock {P} at (0,0) size 784x20 + RenderInline {B} at (0,0) size 187x19 + RenderText {#text} at (0,0) size 187x19 + text run at (0,0) width 187: "Should be bold per HTML5." + RenderBlock {P} at (0,36) size 784x20 + RenderInline {B} at (0,0) size 153x19 + RenderInline {B} at (0,0) size 153x19 + RenderText {#text} at (0,0) size 153x19 + text run at (0,0) width 153: "Should be equally bold." + RenderBlock {P} at (0,72) size 784x20 + RenderInline {STRONG} at (0,0) size 187x19 + RenderText {#text} at (0,0) size 187x19 + text run at (0,0) width 187: "Should be bold per HTML5." + RenderBlock {P} at (0,108) size 784x20 + RenderInline {STRONG} at (0,0) size 153x19 + RenderInline {STRONG} at (0,0) size 153x19 + RenderText {#text} at (0,0) size 153x19 + text run at (0,0) width 153: "Should be equally bold." + RenderBlock {P} at (0,144) size 784x40 + RenderText {#text} at (0,0) size 757x39 + text run at (0,0) width 462: "The HTML5 spec says that b and strong should render as font-weight: bold, " + text run at (462,0) width 295: "not font-weight: bolder. The text above should all" + text run at (0,20) width 129: "render with the same " + text run at (129,20) width 57: "boldness." diff --git a/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong.html b/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong.html new file mode 100644 index 0000000..8c55a26 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/html/font-weight-bold-for-b-and-strong.html @@ -0,0 +1,12 @@ +<!doctype html> +<html> +<body> +<p style="font-weight: 100"><b>Should be bold per HTML5.</b></p> +<p style="font-weight: 100"><b><b>Should be equally bold. </b></b></p> +<p style="font-weight: 100"><strong>Should be bold per HTML5.</strong></p> +<p style="font-weight: 100"><strong><strong>Should be equally bold.</strong></strong></p> +<p id="description">The HTML5 spec says that b and strong should render as font-weight: bold, +not font-weight: bolder. The text above should all render with the same +boldness.</p> +</body> +</html> |