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

Unified Diff: LayoutTests/fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html

Issue 19865002: [CSS Shapes] Port shape-inside on regions and shape's content overflow from WebKit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: [CSS Shapes] Port shape-inside on regions and shape's content overflow from WebKit Created 7 years, 5 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/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html
diff --git a/LayoutTests/fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html b/LayoutTests/fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html
new file mode 100644
index 0000000000000000000000000000000000000000..2b5094b7e2166ec6388da475fbcdb7ca441434d8
--- /dev/null
+++ b/LayoutTests/fast/regions/shape-inside/shape-inside-on-regions-inline-content-basic-overflow-shape-top-offset.html
@@ -0,0 +1,44 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <script>
+ if (window.internals)
+ window.internals.settings.setCSSExclusionsEnabled(true);
+ </script>
+ <style>
+ #rectangle {
+ font: 20px Ahem, sans-serif;
+ -webkit-font-smoothing: none;
+ line-height: 20px;
+ -webkit-flow-into: flow;
+ }
+ #region {
+ -webkit-flow-from: flow;
+ width: 200px;
+ height: 200px;
+ -webkit-shape-inside: rectangle(50px, 50px, 100px, 100px);
+ border: 2px solid green;
+ }
+ #border {
+ position: absolute;
+ top: 58px;
+ left: 58px;
+ width: 100px;
+ height: 100px;
+ border: 2px solid blue;
+ }
+ </style>
+</head>
+<body>
+ <div id="rectangle">
+ X X X X X X X X X X X X X X X X X X X X X X X
+ </div>
+
+ <div id="page">
+ <div id="border"></div>
+ <div id="region"></div>
+ </div>
+ <p style="margin-top: 100px;">Requires Ahem font. The shape-inside on the region is illustrated by the blue rectangle. The content should wrap inside the the blue rectangle, the overflow should start on the left under the content box.</p>
+ <p>Bug <a href="http://webkit.org/b/116252">116252</a> [CSS Regions][CSS Exclusions] shape-inside on regions should respect positioned shapes and overflow</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698