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

Unified Diff: third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos.html

Issue 2414683002: Make offsetTop/Left handle a relative positioned inline offsetParent correctly. (Closed)
Patch Set: Fixed broken rebase. Created 4 years, 1 month 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/inline/inline-offsetLeft-relpos-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/inline/inline-offsetLeft-relpos.html
diff --git a/third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos.html b/third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos.html
new file mode 100644
index 0000000000000000000000000000000000000000..60ccb4def5858943455acf6a826901d591eb3832
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<style>
+ .relpos {
+ position: relative;
+ padding-left: 5px;
+ }
+ .pad {
+ border: 10px solid yellow;
+ padding-left: 3px;
+ }
+</style>
+<script src="../../resources/check-layout.js"></script>
+
+<div id="container">
+ XX
+
+ <span class=relpos>
+ <span class=pad data-offset-x="5">XX</span>
+ </span>
+
+ <span class=relpos>
+ <span class="pad" style="display: inline-block;">
+ <div data-offset-x="18">XX</div>
+ </span>
+ </span>
+
+ <span class=relpos>
+ <span data-offset-x="5" class="pad" style="position: absolute">XX</span>
+ </span>
+
+ <span class=relpos>
+ <span data-offset-x="50" class="pad" style="position: absolute; left: 50px">XX</span>
+ </span>
+</div>
+
+<script>
+ checkLayout("#container");
+</script>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698