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..80424e60047e772662350102797b41b5f3c2714e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<style> |
+ fieldset { |
+ float: left; |
+ } |
+ legend { |
+ font: 10px Ahem; |
+ } |
+ legend.left { |
+ margin-left: 100px; |
+ } |
+ legend.right { |
+ margin-right: 100px; |
+ } |
+</style> |
+<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"); |
+ shouldBeEqualToNumber("legend.getBoundingClientRect().left", 220); |
+</script> |