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

Unified Diff: LayoutTests/fast/block/marquee-in-fixed-size-container.html

Issue 1200103006: Marquee width should not change a fixed width of its container. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed comments Created 5 years, 6 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: LayoutTests/fast/block/marquee-in-fixed-size-container.html
diff --git a/LayoutTests/fast/block/marquee-in-fixed-size-container.html b/LayoutTests/fast/block/marquee-in-fixed-size-container.html
new file mode 100644
index 0000000000000000000000000000000000000000..e6e18f7f24f25285bc1fe6d81efe607e5341414b
--- /dev/null
+++ b/LayoutTests/fast/block/marquee-in-fixed-size-container.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
mstensho (USE GERRIT) 2015/06/24 08:24:37 I think we need a better file name. What's of inte
changseok 2015/06/25 06:41:34 Renamed marquee-width-shrinks-to-fit-in-fixed-size
+<script src="../../resources/js-test.js"></script>
+<style>
+div {
mstensho (USE GERRIT) 2015/06/24 08:24:37 No need for this. DIVs don't have padding or margi
changseok 2015/06/25 06:41:33 Removed.
+ padding: 0px;
+ margin: 0px;
+}
+.outer {
+ width: 200px;
+}
+.inner {
+ width: intrinsic;
+}
+</style>
+<div class="outer">
+ <div class="inner">
+ <marquee>The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.</marquee>
+ </div>
+</div>
+<script>
+description("This tests if marquee contributes to the width of its container having a fixed width size. It should not.");
mstensho (USE GERRIT) 2015/06/24 08:24:37 This isn't quite right. It's not the container of
changseok 2015/06/25 06:41:34 How about this? "This tests if a block having an i
mstensho (USE GERRIT) 2015/06/25 07:46:46 I don't understand the word "collapses" in this co
+shouldBeEqualToNumber("document.querySelector('.inner').getBoundingClientRect().width", 200);
+</script>

Powered by Google App Engine
This is Rietveld 408576698