Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / inline / inline-borders-with-bidi-override.html
blob9595a7f72bfa80edca3a27e2b240a205606aded6
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <style>
6 h1 {
7 font-weight: bold;
8 font-size: 1em;
10 div {
11 border: 1px solid black;
12 padding: 5px;
15 div p { line-height: 2em; }
16 #ltor p {
17 direction: ltr;
18 unicode-bidi: normal;
20 #rtol p {
21 direction: rtl;
22 unicode-bidi: bidi-override;
24 span {
25 display: inline;
26 position: relative;
27 margin: 0 10px 0 25px;
28 padding: 0 25px 0 10px;
29 border: 1px solid blue;
30 border-left: 10px solid green;
31 border-right: 10px solid orange;
33 </style>
34 </head>
35 <body>
36 <p>There should be a SPAN in the middle of all four paragraphs that has padding, a green border, and a margin on the left,
37 and padding, an orange border, and a margin on the right.</p>
39 <h1>Left-to-Right</h1>
40 <div id="ltor">
41 <p>
42 Lorem ipsum dolor
43 <span>
44 sit amet, consectetur
45 </span>
46 adipisicing elit, sed do eiusmod tempor incididunt ut.
47 </p>
48 <p>
49 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
50 labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
51 <span>
52 laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
53 voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
54 non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
55 </span>
56 sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
57 magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
58 </p>
59 </div>
61 <h1>Right-to-Left</h1>
62 <div id="rtol">
63 <p>
64 Lorem ipsum dolor
65 <span>
66 sit amet, consectetur
67 </span>
68 adipisicing elit, sed do eiusmod tempor incididunt ut.
69 </p>
70 <p>
71 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut
72 labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
73 <span>
74 laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
75 voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
76 non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
77 </span>
78 sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
79 magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip.
80 </p>
81 </div>
82 </body>
83 </html>