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

Unified Diff: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/shape-image-012.html

Issue 816533002: Import CSSWG Shapes tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more test expectations update Created 6 years 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/imported/csswg-test/css-shapes-1/shape-outside/shape-image/shape-image-012.html
diff --git a/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/shape-image-012.html b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/shape-image-012.html
new file mode 100644
index 0000000000000000000000000000000000000000..e092f3ade5ae330f2feb3cd852332ee944c6b2ce
--- /dev/null
+++ b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/shape-image/shape-image-012.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>CSS Test: Wrapping content around right floating actual jpg image</title>
+ <link rel="author" title="Zoltan Horvath" href="zoltan@adobe.com"/>
+ <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
+ <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
+ <link rel="match" href="reference/shape-image-012-ref.html"/>
+ <meta name="flags" content="ahem"/>
+ <meta name="assert" content="This test verifies that content wraps around all the image pixels when shape-outside is given a jpg."/>
+ <style type="text/css">
+ .container {
+ position: absolute;
+ top: 70px;
+ left: 8px;
+ font-family: Ahem;
+ font-size: 20px;
+ color: green;
+ line-height: 20px;
+ }
+ #test {
+ width: 200px;
+ height: 200px;
+ text-align: right;
+ background-color: red;
+ }
+ #image {
+ float: right;
+ margin-left: 10px;
+ shape-outside: url("support/right-half-rectangle.jpg");
+ }
+ </style>
+</head>
+<body>
+ <p>
+ The test passes if there's a green square with an image at top right with vertical white and green stripes.
+ There should be no red.
+ </p>
+ <div id="test" class="container">
+ <img id="image" src="support/right-half-rectangle.jpg"/>
+ XXXXX XXXXX XXXXX XXXXX XXXXX
+ XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698