| <!DOCTYPE html> |
| <!-- |
| | Wrapping is only performed at an allowed break point, called a soft wrap |
| | opportunity. In most writing systems, in the absence of hyphenation a soft |
| | wrap opportunity occurs only at word boundaries. |
| | https://www.w3.org/TR/css3-text/#soft-wrap-opportunity |
| | https://www.w3.org/TR/css-text-3/#line-break-details |
| | |
| | When a soft wrap segment is being checked, leading white space that will be |
| | collapsed should still provide a soft-wrap opportunity if the line existence |
| | is already justified. |
| --> |
| <html> |
| <head> |
| <style> |
| body { |
| margin: 0px; |
| font-family: Roboto; |
| font-size: 20px; |
| } |
| div { |
| overflow-wrap: normal; |
| } |
| .containing-block { |
| background-color: #03a9f4; |
| width: 202px; |
| } |
| .small-padding-span { |
| padding: 0px 0px 0px 10px; |
| } |
| .large-padding-span { |
| padding: 0px 0px 0px 180px; |
| } |
| .colored-span-1 { |
| background-color: #aeea00; |
| } |
| .colored-span-2 { |
| background-color: #f50057; |
| } |
| </style> |
| </head> |
| <body> |
| <div class="containing-block"> |
| <div><span class="large-padding-span colored-span-1"></span> ABC</div> |
| <div><span class="large-padding-span colored-span-1"></span><span> ABC</span></div> |
| <div><span><span class="large-padding-span colored-span-1"></span><span> ABC</span></span></div> |
| <div><span class="colored-span-1">abc defg hijkl mnop </span><span class="small-padding-span colored-span-2"> ABC</span></div> |
| <div><span><span class="colored-span-1">abc defg hijkl mnop </span><span class="small-padding-span colored-span-2"> ABC</span></span></div> |
| </div> |
| </body> |
| </html> |