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

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 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..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>
« 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