[WK2] Small Caps font variant issue for Italic fonts
[framework/web/webkit-efl.git] / LayoutTests / editing / style / relative-font-size-change-004.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 .explanation { 
11     border: 2px solid blue; 
12     padding: 12px; 
13     font-size: 24px; 
14     margin-bottom: 24px;
15 }
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
18
19 <script>
20
21 function editingTest() {
22     moveSelectionForwardByLineCommand();
23     for (i = 0; i < 5; i++)
24         extendSelectionForwardByWordCommand();
25     for (i = 0; i < 6; i++)
26         fontSizeDeltaCommand("+1px");
27 }
28
29 </script>
30
31 <title>Editing Test</title> 
32 </head> 
33 <body contenteditable="true">
34 <div class="explanation">
35 Size check should say: 30px. All text in the red boxes should appear to be 24px. This test checks removing
36 font size tags when they are no longer necessary.
37 </div>
38
39 <div style="font-size: 24px; margin-bottom: 16px;">Size check: <span id="check"></span></div>
40
41 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
42 <div id="test" class="editing">There is a tide
43 <div id="sizeTest" class="editing">In the affairs of men
44 </div>
45 Which taken at the flood
46 </div>
47 </div>
48
49 <script>
50 runEditingTest();
51
52 test = document.getElementById("sizeTest");
53 check = document.getElementById("check");
54 size = document.defaultView.getComputedStyle(test, "").getPropertyValue("font-size");
55 check.innerHTML = size;
56 for (i = 0; i < 6; i++)
57     fontSizeDeltaCommand("-1px");
58
59 </script>
60
61 </body>
62 </html>