Title: [94006] trunk
- Revision
- 94006
- Author
- [email protected]
- Date
- 2011-08-29 13:06:52 -0700 (Mon, 29 Aug 2011)
Log Message
As per HTML specification, default font style of dfn tag should be italic.
https://bugs.webkit.org/show_bug.cgi?id=56670
Patch by Nayan Kumar K <[email protected]> on 2011-08-29
Reviewed by Adam Barth.
Source/WebCore:
Test: fast/css/dfn-default-font-style.html
* css/html.css:
(i, cite, em, var, address, dfn):
LayoutTests:
* fast/css/dfn-default-font-style-expected.txt: Added.
* fast/css/dfn-default-font-style.html: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (94005 => 94006)
--- trunk/LayoutTests/ChangeLog 2011-08-29 20:03:33 UTC (rev 94005)
+++ trunk/LayoutTests/ChangeLog 2011-08-29 20:06:52 UTC (rev 94006)
@@ -1,3 +1,13 @@
+2011-08-29 Nayan Kumar K <[email protected]>
+
+ As per HTML specification, default font style of dfn tag should be italic.
+ https://bugs.webkit.org/show_bug.cgi?id=56670
+
+ Reviewed by Adam Barth.
+
+ * fast/css/dfn-default-font-style-expected.txt: Added.
+ * fast/css/dfn-default-font-style.html: Added.
+
2011-08-29 Chris Palmer <[email protected]>
Fix failures when FFT array size is changed.
Added: trunk/LayoutTests/fast/css/dfn-default-font-style-expected.txt (0 => 94006)
--- trunk/LayoutTests/fast/css/dfn-default-font-style-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/css/dfn-default-font-style-expected.txt 2011-08-29 20:06:52 UTC (rev 94006)
@@ -0,0 +1,2 @@
+This test ensures that whatever written within dfn tag is italicized.
+For example the dfn should be italicized. PASS
Added: trunk/LayoutTests/fast/css/dfn-default-font-style.html (0 => 94006)
--- trunk/LayoutTests/fast/css/dfn-default-font-style.html (rev 0)
+++ trunk/LayoutTests/fast/css/dfn-default-font-style.html 2011-08-29 20:06:52 UTC (rev 94006)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<body>
+This test ensures that whatever written within dfn tag is italicized. <br>
+For example the <dfn id="dfntag">dfn</dfn> should be italicized.
+
+<script>
+var dfnfont = document.defaultView.getComputedStyle(document.getElementById('dfntag'), "").getPropertyValue("font-style");
+var testresult;
+
+if (dfnfont == 'italic')
+ testresult = 'PASS';
+else
+ testresult = 'FAIL';
+
+if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+}
+
+document.writeln(testresult);
+
+</script>
+</body>
+</html>
Modified: trunk/Source/WebCore/ChangeLog (94005 => 94006)
--- trunk/Source/WebCore/ChangeLog 2011-08-29 20:03:33 UTC (rev 94005)
+++ trunk/Source/WebCore/ChangeLog 2011-08-29 20:06:52 UTC (rev 94006)
@@ -1,3 +1,15 @@
+2011-08-29 Nayan Kumar K <[email protected]>
+
+ As per HTML specification, default font style of dfn tag should be italic.
+ https://bugs.webkit.org/show_bug.cgi?id=56670
+
+ Reviewed by Adam Barth.
+
+ Test: fast/css/dfn-default-font-style.html
+
+ * css/html.css:
+ (i, cite, em, var, address, dfn):
+
2011-08-29 Patrick Gansterer <[email protected]>
Consider Conditional attribute in CodeGeneratorJS' JSValueToNative and NativeToJSValue function
Modified: trunk/Source/WebCore/css/html.css (94005 => 94006)
--- trunk/Source/WebCore/css/html.css 2011-08-29 20:03:33 UTC (rev 94005)
+++ trunk/Source/WebCore/css/html.css 2011-08-29 20:06:52 UTC (rev 94006)
@@ -848,7 +848,7 @@
font-weight: bolder
}
-i, cite, em, var, address {
+i, cite, em, var, address, dfn {
font-style: italic
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes