Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html b/third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e56a3d8922e84a8d2458d788ac1135aaa0b900d1 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html |
| @@ -0,0 +1,32 @@ |
| +<!DOCTYPE html> |
| +<html> |
| + <head> |
|
esprehn
2016/01/20 08:59:57
Leave out html, head
|
| + <style> |
| + fieldset { |
| + float: left; |
| + } |
| + legend { |
| + font: 10px Ahem; |
| + } |
| + legend.left { |
| + margin-left: 100px; |
| + } |
| + legend.right { |
| + margin-right: 100px; |
| + } |
| + </style> |
| + </head> |
| + <body> |
|
esprehn
2016/01/20 08:59:57
leave out body
|
| + <fieldset> |
| + <legend id="first" class="left">Legend</legend> |
| + </fieldset> |
| + <fieldset> |
| + <legend id="second" class="right">Legend</legend> |
| + </fieldset> |
| + <script src="../../../resources/js-test.js"></script> |
| + <script> |
| + var legend = document.getElementById('second'); |
|
esprehn
2016/01/20 08:59:57
double quotes
|
| + shouldBeEqualToNumber("legend.getBoundingClientRect().left", 220); |
| + </script> |
| + </body> |
| +</html> |