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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html

Issue 1890743002: Reland of ix getComputedStyle positioned element values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 8 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
Index: third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html
index 429540932dbf1235ff5bd56dcb408b0c351cdb08..806dc5d0820cb5dc3fa585354136c7592782e2e7 100644
--- a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle/getComputedStyle-resolved-values.html
@@ -6,6 +6,10 @@
width: 500px;
height: 300px;
border: 1px solid black;
+ }
+
+ #abs_container {
+ position: relative;
}
.testbox {
@@ -68,6 +72,35 @@
padding-bottom: 1em;
padding-left: auto;
}
+
+ #rel_positioned {
+ position: relative;
+ line-height: 30px;
+ width: 150px;
+ height: 100px;
+ left: 10px;
+ top: 15px;
+ margin-top: 15px;
+ margin-right: 30px;
+ margin-bottom: 20px;
+ margin-left: 10px;
+ padding: 20px;
+ }
+
+ #abs_positioned {
+ position: absolute;
+ line-height: 30px;
+ width: 150px;
+ height: 100px;
+ right: 10px;
+ bottom: 15px;
+ margin-top: 15px;
+ margin-right: 30px;
+ margin-bottom: 20px;
+ margin-left: 10px;
+ padding: 20px;
+ }
+
</style>
<script>
@@ -75,6 +108,10 @@
'line-height',
'width',
'height',
+ 'top',
+ 'right',
+ 'bottom',
+ 'left',
'margin-top',
'margin-right',
'margin-bottom',
@@ -124,6 +161,8 @@
test('ems');
test('auto');
test('mixed');
+ test('rel_positioned');
+ test('abs_positioned');
}
</script>
</head>
@@ -150,5 +189,11 @@
<div class="outer">
<div class="testbox" id="mixed">Mixed</div>
</div>
+ <div class="outer">
+ <div class="testbox" id="rel_positioned">Relative Positioned</div>
+ </div>
+ <div class="outer" id="abs_container">
+ <div class="testbox" id="abs_positioned">Absolute Positioned</div>
+ </div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698