summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify
diff options
context:
space:
mode:
authordw.im@samsung.com <dw.im@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-10-31 02:18:28 +0000
committerdw.im@samsung.com <dw.im@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2013-10-31 02:18:28 +0000
commit994506b7e2d666b462abc357aed0b904bf3ae8bc (patch)
tree94a441e0804ff87b4d07d351d0a21447a29bc8ae /third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify
parenteed4fa203d0bfd2af80b9122edd162865b1a8c0c (diff)
downloadchromium_src-994506b7e2d666b462abc357aed0b904bf3ae8bc.zip
chromium_src-994506b7e2d666b462abc357aed0b904bf3ae8bc.tar.gz
chromium_src-994506b7e2d666b462abc357aed0b904bf3ae8bc.tar.bz2
Rendering text-justify:none
When the value of text-justify is 'none', we don't need to touch anything related to the expansion opportunity. We just need to leave the expansion opportunity as 0, so that justification doesn't work for this case. BUG=248894 Review URL: https://codereview.chromium.org/50413008 git-svn-id: svn://svn.chromium.org/blink/trunk@161006 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify')
-rw-r--r--third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/resources/text-justify.css18
-rw-r--r--third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none-expected.html25
-rw-r--r--third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html25
3 files changed, 68 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/resources/text-justify.css b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/resources/text-justify.css
new file mode 100644
index 0000000..383c038
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/resources/text-justify.css
@@ -0,0 +1,18 @@
+.testDiv {
+ width: 300px;
+ border: 1px solid #000000;
+ font-family: "Courier New", Courier, monospace;
+ font-size: 12px;
+}
+
+.alignStart {
+ text-align: start;
+}
+
+.alignJustify {
+ text-align: justify;
+}
+
+.justifyNone {
+ text-justify: none;
+}
diff --git a/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none-expected.html b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none-expected.html
new file mode 100644
index 0000000..0b1b7c9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none-expected.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <link href="resources/text-justify.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+<h1 style="font-size: 1em;">
+text-justify: none <br><br>
+
+This test checks that the 'none' value for text-justify property works properly.<br>
+All of the lines with the value should <b>NOT</b> be justified.<br>
+</h1>
+
+<div class='testDiv alignJustify'>
+text-align:justify<br/><br/>
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+</div>
+
+<div class='testDiv alignStart'>
+text-align:justify, text-justify:none<br/><br/>
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+</div>
+
+</body>
+</html>
diff --git a/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html
new file mode 100644
index 0000000..43ab140
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-justify/text-justify-none.html
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <link href="resources/text-justify.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+<h1 style="font-size: 1em;">
+text-justify: none <br><br>
+
+This test checks that the 'none' value for text-justify property works properly.<br>
+All of the lines with the value should <b>NOT</b> be justified.<br>
+</h1>
+
+<div class='testDiv alignJustify'>
+text-align:justify<br/><br/>
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+</div>
+
+<div class='testDiv alignJustify justifyNone'>
+text-align:justify, text-justify:none<br/><br/>
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede.
+</div>
+
+</body>
+</html>