FLUID-5554: Text size enactor calculates initial size based on .container, should be using .root

Metadata

Source
FLUID-5554
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Justin Obara
Reporter
Anastasia Cheetham
Created
2014-11-12T10:15:47.815-0500
Updated
2015-06-26T10:16:37.535-0400
Versions
  1. 1.5
Fixed Versions
  1. 1.5.1
  2. 1.9
Component
  1. Prefs Framework

Description

As part of its initialization, the text size enactor calculates the initial pixel size and hard-codes that onto the root element to ensure that rems in the CSS will work. Incorrectly, the initial calculation is not using the root but rather the container. This causes problems if the root and container don't have the same initial font size. The calculation should be based on root.

This problem was discovered when adding UIO to a Wordpress child theme. Without UIO, the html element (the root) and the body element (the container) had different font sizes initially (10px and 18px respectively). When 18px was added to the html element, everything on the page expanded to enormous size.

Comments