| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script> |
| 3 if (window.testRunner) |
| 4 testRunner.dumpAsTextWithPixelResults(); |
| 5 </script> |
| 6 |
| 7 <style> |
| 8 /* Make decorations bigger so they are easier to see */ |
| 9 body { |
| 10 font-size: 15px; |
| 11 } |
| 12 body > div { |
| 13 margin-bottom: 15px; |
| 14 } |
| 15 </style> |
| 16 |
| 17 <!-- From the spec: "Text decorations are not propagated to any out-of-flow desc
endants, nor to the contents of atomic inline-level descendants such as inline b
locks and inline tables." --> |
| 18 <div style="text-decoration: underline red;"> |
| 19 <div style="text-decoration: underline wavy green; display: inline;"> |
| 20 Display inline: Wavy green underline. |
| 21 </div> |
| 22 </div> |
| 23 |
| 24 <div style="text-decoration: underline red;"> |
| 25 <div style="text-decoration: underline wavy green; float: right;"> |
| 26 Float: Wavy green underline. |
| 27 </div> |
| 28 </div> |
| 29 <div style="clear: both;"></div> |
| 30 |
| 31 <div style="text-decoration: underline red;"> |
| 32 <div style="text-decoration: underline wavy green; position: absolute; right:
10px;"> |
| 33 Position absolute: Wavy green underline. |
| 34 </div> |
| 35 </div> |
| 36 |
| 37 <!-- From the spec: "[Text decorations] are also not propagated to inline childr
en of inline boxes, although the decoration is applied to such boxes." --> |
| 38 <div style="display: block;"> |
| 39 <div style="text-decoration: underline red; display: inline;"> |
| 40 <div style="text-decoration: underline wavy green; display: inline;"> |
| 41 Nested display inline: Wavy green underline. |
| 42 </div> |
| 43 </div> |
| 44 </div> |
| OLD | NEW |