| <!doctype html> |
| |
| <html style="direction:rtl"> |
| <head> |
| <style> |
| |
| #green-box { |
| width:50%; |
| height:100%; |
| background-color:green; |
| } |
| |
| #region1, #region2, #region3 { |
| border: 1px solid black; |
| } |
| |
| #region1 { |
| width: 200px; |
| height: 150px; |
| } |
| |
| #region2 { |
| width: 300px; |
| height: 180px; |
| } |
| |
| #region3 { |
| width: 120px; |
| height: 120px; |
| } |
| </style> |
| </head> |
| <body> |
| <p style="direction:ltr">The green positioned object should span all the regions. It should fill the right half of every region. Its red borders should be clipped.</p> |
| |
| <div id="region1"> |
| <div id="green-box"></div> |
| </div> |
| <div id="region2"> |
| <div id="green-box"></div> |
| </div> |
| <div id="region3"> |
| <div id="green-box"></div> |
| </div> |