blob: 5429ce3aaec4676d3c03404cdd76cae8a392228d [file] [log] [blame]
<!DOCTYPE html>
<meta name="viewport" content="width=800">
html { font-size: 16px; }
body { width: 896px; margin: 0; overflow-y: hidden; }
<p style="font-size: 2.5rem; margin: 1rem; border: 1rem solid blue; padding: 1rem">
This text should get autosized to 40px computed font size (16 * 800/320), but the 1em margins, borders and padding should remain just 16px. While debatable, this generally looks more consistent than having them be scaled.<br>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.