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

Unified Diff: sky/tests/layout/borderbox-percent-padding.sky

Issue 1077473002: Stop rendering text inside flex boxes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: make p default to display: paragraph Created 5 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
« no previous file with comments | « sky/tests/harness/reftest-mismatch.sky ('k') | sky/tests/layout/continuations.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/layout/borderbox-percent-padding.sky
diff --git a/sky/tests/layout/borderbox-percent-padding.sky b/sky/tests/layout/borderbox-percent-padding.sky
index adb9a4883a69c42e9465d93b96ce6133dc6b71fa..2a6d4263acddb4a0f67fe3a7e8cb448e0226690d 100644
--- a/sky/tests/layout/borderbox-percent-padding.sky
+++ b/sky/tests/layout/borderbox-percent-padding.sky
@@ -5,13 +5,10 @@
max-width: 300px;
padding: 0 5%;
}
- paragraph {
- display: paragraph;
- }
</style>
<container style="width: 400px">
<border-box>
- <paragraph>Even though the width of 'border-box' stays the same after it reaches 300px, the width available to its children decreases as its padding continues to expand. Because the padding is based off the width before it's constrained by min/max. This tests that we continue to layout the contents of border-box even when its own width remains the same.</paragraph>
+ <p>Even though the width of 'border-box' stays the same after it reaches 300px, the width available to its children decreases as its padding continues to expand. Because the padding is based off the width before it's constrained by min/max. This tests that we continue to layout the contents of border-box even when its own width remains the same.</p>
</div>
</container>
@@ -25,9 +22,9 @@ void main() {
initUnit();
test("paragraph width should shrink", () {
- expect(document.querySelector("paragraph").offsetWidth, equals(260));
+ expect(document.querySelector("p").offsetWidth, equals(260));
document.querySelector("container").style["width"] = "800px";
- expect(document.querySelector("paragraph").offsetWidth, equals(220));
+ expect(document.querySelector("p").offsetWidth, equals(220));
});
}
</script>
« no previous file with comments | « sky/tests/harness/reftest-mismatch.sky ('k') | sky/tests/layout/continuations.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698