| <!DOCTYPE html> |
| <!-- |
| | If all of properties have a computed value other than "auto", the values are |
| | said to be "over-constrained" and the specified value of "margin-right" is |
| | ignored. |
| | https://www.w3.org/TR/CSS21/visudet.html#blockwidth |
| --> |
| <html> |
| <head> |
| <style> |
| .containing-block { |
| background-color: #2196f3; |
| padding: 10px 0; |
| margin-bottom: 10px; |
| width: 500px; |
| } |
| .block { |
| /* TODO: Add borders when supported. */ |
| background-color: #3f51b5; |
| display: block; |
| height: 5px; |
| padding: 0 100px; |
| width: 100px; |
| } |
| .margin-left { |
| margin-left: 50px; |
| } |
| .margin-right { |
| margin-right: 50px; |
| } |
| </style> |
| </head> |
| <body> |
| <div class="containing-block"> |
| <div class="margin-left block"></div> |
| </div> |
| <div class="containing-block"> |
| <div class="margin-right block"></div> |
| </div> |
| </body> |
| </html> |