skeeto / impatient-mode

Impatient html mode. See your changes in the browser as you type
215 stars 19 forks source link

[Question] What's the rational for using 0 margin on the "content" iframe? #33

Open s-truax opened 3 years ago

s-truax commented 3 years ago

Whenever I load a live-view of an html file, the <body> tag seems have no margin, which is different than my browsers default behavior. Here's the impatient-mode preview: no_margin and here's my browser's default behavior: margin My guess is that this happens because in impatient-mode/index.html, the margin of this iframe is set to 0. Why set the margin to 0 here? I would have naively expected the margin value of this iframe to be the browser's default.