Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / relative-font-size-change-004.html
blob6b5a3a16a6d7fb5f9a1f0689c54193d6a4a6b5b0
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 .explanation {
11 border: 2px solid blue;
12 padding: 12px;
13 font-size: 24px;
14 margin-bottom: 24px;
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19 <script>
20 if (window.internals)
21 internals.settings.setEditingBehavior('mac');
23 function editingTest() {
24 moveSelectionForwardByLineCommand();
25 for (i = 0; i < 5; i++)
26 extendSelectionForwardByWordCommand();
27 for (i = 0; i < 6; i++)
28 fontSizeDeltaCommand("+1px");
31 </script>
33 <title>Editing Test</title>
34 </head>
35 <body contenteditable="true">
36 <div class="explanation">
37 Size check should say: 30px. All text in the red boxes should appear to be 24px. This test checks removing
38 font size tags when they are no longer necessary.
39 </div>
41 <div style="font-size: 24px; margin-bottom: 16px;">Size check: <span id="check"></span></div>
43 <div id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
44 <div id="test" class="editing">There is a tide
45 <div id="sizeTest" class="editing">In the affairs of men
46 </div>
47 Which taken at the flood
48 </div>
49 </div>
51 <script>
52 runEditingTest();
54 test = document.getElementById("sizeTest");
55 check = document.getElementById("check");
56 size = document.defaultView.getComputedStyle(test, "").getPropertyValue("font-size");
57 check.innerHTML = size;
58 for (i = 0; i < 6; i++)
59 fontSizeDeltaCommand("-1px");
61 </script>
63 </body>
64 </html>