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

Side by Side Diff: LayoutTests/fast/shapes/shape-inside/shape-inside-box-sizing-expected.html

Issue 209443007: Remove shape-inside support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove now unused segmentIsEmpty Created 6 years, 9 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 <style>
5 .border {
6 border-left: 5px solid blue;
7 border-top: 10px solid blue;
8 border-right: 15px solid blue;
9 border-bottom: 20px solid blue;
10 padding: 10px 15px 20px 5px;
11 width: 30px;
12 height: 40px;
13 border-style: solid;
14 }
15 .padding {
16 padding: 20px 30px 40px 10px;
17 }
18 .border-box {
19 -webkit-box-sizing: border-box;
20 }
21 .border-box.border {
22 width: 70px;
23 height: 100px;
24 }
25 .border-box.border.padding {
26 width: 90px;
27 height: 130px;
28 }
29 .shape-inside {
30 font-family: Ahem, sans-serif;
31 font-size: 10px;
32 color: green;
33 }
34 .vertical-lr {
35 -webkit-writing-mode: vertical-lr;
36 }
37 .vertical-rl {
38 -webkit-writing-mode: vertical-rl;
39 }
40 .horizontal-tb {
41 -webkit-writing-mode: horizontal-tb;
42 }
43 </style>
44 </head>
45 <body>
46 <p>These tests check that shape inside correctly offsets from the correct bo x. They require the Ahem font.</p>
47 <p>The following tests check writing modes on a box with a 5 10 15 20px blue border, and 5 10 15 20px shape offsets.</p>
48 <div class='border shape-inside horizontal-tb'>
49 xxx xxx xxx xxx
50 </div>
51 <div class='border shape-inside vertical-lr'>
52 xxxx xxxx xxxx
53 </div>
54 <div class='border shape-inside vertical-rl'>
55 xxxx xxxx xxxx
56 </div>
57 <p>The following tests should look the same, but use box-sizing: border-box. </p>
58 <div class='border-box border shape-inside horizontal-tb'>
59 xxx xxx xxx xxx
60 </div>
61 <div class='border-box border shape-inside vertical-lr'>
62 xxxx xxxx xxxx
63 </div>
64 <div class='border-box border shape-inside vertical-rl'>
65 xxxx xxxx xxxx
66 </div>
67 <p>The following tests add 5 10 15 20px of padding.</p>
68 <div class='border padding shape-inside horizontal-tb'>
69 xxx xxx xxx xxx
70 </div>
71 <div class='border padding shape-inside vertical-lr'>
72 xxxx xxxx xxxx
73 </div>
74 <div class='border padding shape-inside vertical-rl'>
75 xxxx xxxx xxxx
76 </div>
77 <p>The following tests should look the same, but use box-sizing: border-box. </p>
78 <div class='border-box border padding shape-inside horizontal-tb'>
79 xxx xxx xxx xxx
80 </div>
81 <div class='border-box border padding shape-inside vertical-lr'>
82 xxxx xxxx xxxx
83 </div>
84 <div class='border-box border padding shape-inside vertical-rl'>
85 xxxx xxxx xxxx
86 </div>
87 </body>
88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698