| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>Test for https://bugs.webkit.org/show_bug.cgi?id=104702</title> |
| <meta name="viewport" content="width=800"> |
| <style> |
| html { font-size: 16px; } |
| body { width: 800px; margin: 0; overflow-y: hidden; } |
| </style> |
| |
| </head> |
| <body> |
| <div> |
| <div> |
| <div style="display: -webkit-inline-grid; width: 600px; font-size: 1.875rem"> |
| This element becomes a separate autosizing cluster since it's a -webkit-inline-grid element. Hence its computed font size is 30px (16 * 600 / 320).<br> |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
| </div> |
| </div> |
| <div> |
| <div style="display: -webkit-inline-flex; width: 400px; font-size: 1.25rem"> |
| This element becomes a separate autosizing cluster since it's a -webkit-inline-flex element. Hence its computed font size is 20px (16 * 400 / 320).<br> |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
| </div> |
| </div> |
| <div> |
| <div style="display: -webkit-inline-box; width: 600px; font-size: 1.875rem"> |
| This element becomes a separate autosizing cluster since it's a -webkit-inline-box element. Hence its computed font size is 30px (16 * 600 / 320).<br> |
| Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
| </div> |
| </div> |
| </div> |
| </body> |
| </html> |