Check this fiddle please and possibly advise how this could be fixed.
- 1st div has a padding value set with em.
- 2nd div has a padding value set with px.
- 3rd div has a padding value set with percentage.
Run the fiddle, resize (e.g. when user changes device orientation from portrait to landscape) the viewport and then run the fiddle again (what translates to reloading the page after resizing it).
You can see the 1st div content readjusting font-size and line-height. This creates a quite unpleasant "jump" in the overall page layout.
Ideally regardless of resizing and then reloading the viewport, the font-size and line-height should be respected or set with regards to any values set in em for that element.