Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float.html

Issue 1583083003: Fieldset uses marginLeft for marginRight by mistake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify test case's some parts commented by esprehn Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/fieldset/legend-margin-with-float-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698