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/css3-text/css3-word-break/word-break-all-wrap-with-100percent-floats.html

Issue 1920293003: Fix line wrappiing when break-word/break-all and float with 100% width (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-wrap-with-100percent-floats.html
diff --git a/third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-wrap-with-100percent-floats.html b/third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-wrap-with-100percent-floats.html
new file mode 100644
index 0000000000000000000000000000000000000000..b2ffcc49da3c29ebac3e2d3582aa65b884645bfd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-wrap-with-100percent-floats.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<script src="../../../resources/ahem.js"></script>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<style>
+p {
+ width: 150px;
+ border: 1px solid black;
+ font: 10px Ahem;
+}
+span {
+ float: left;
+ width: 100%;
+ height: 10px;
+ background: papayawhip;
+}
+</style>
+<div id="log"></div>
+<div id="container">
+ <div style="word-wrap: normal; word-break: normal">
+ <p><span></span>Video source</p>
+ </div>
+ <div style="word-wrap: break-word">
+ <p><span></span>Video source</p>
+ </div>
+ <div style="word-break: break-all">
+ <p><span></span>Video source</p>
+ </div>
+</div>
+
+<script>
+Array.prototype.forEach.call(container.children, function (e) {
+ test(function () {
+ assert_equals(e.offsetHeight, 22, "height");
+ }, e.style.cssText);
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698