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

Side by Side Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-shape-margin-percent.html

Issue 226373002: [CSS Shapes] shape-margin in percentage units always computes to 0px (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add margin specific test Created 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>CSS Test: left float, inset + shape-margin, % units</title>
5 </head>
6 <style>
7 #container {
8 position: absolute;
9 left: 25px;
10 width: 200px;
11 height: 200px;
12 font-family: Ahem;
13 font-size: 20px;
14 background-color: red;
15 color: green;
16 }
17 #test-shape {
18 float: left;
19 width: 200px;
20 height: 200px;
21 -webkit-shape-margin: 10%;
22 -webkit-shape-outside: inset(40px 100px 40px 0px);
23 }
24 #static-shape {
25 position: absolute;
26 left: 25px;
27 width: 100px;
28 height: 120px;
29 top: 70px;
30 border: 20px solid green;
31 background-color: green;
32 }
33 </style>
34 <body>
35 <p>The test passes if there is a green square and no red.</p>
36 <div id="container">
37 <div id="test-shape"></div>
38 XXXXXXXXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXXXXXXXX
39 </div>
40 <div id="static-shape"></div>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698