Text size enactor calculates initial size based on .container, should be using .root

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.

Environment

None

Activity

Justin ObaraJune 26, 2015 at 1:51 PM

Reopening to change the fix version to 1.9

Justin ObaraNovember 12, 2014 at 7:35 PM

Merged pull request ( https://github.com/fluid-project/infusion/pull/569 ) into the infusion-1.5.x branch of the project repo at 266bec518687521c2611951bc29fb6baa87d4ef6

Justin ObaraNovember 12, 2014 at 5:49 PM

Merged pull request ( https://github.com/fluid-project/infusion/pull/568 ) into the master branch of the project repo at de2ea6df7df284829621f99c1a89ba50ebfcea2d

Anastasia CheethamNovember 12, 2014 at 3:45 PM

Anastasia CheethamNovember 12, 2014 at 3:23 PM

Justin suggests that this fix should go into the 1.5.x branch as well as master.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 12, 2014 at 3:15 PM
Updated June 26, 2015 at 2:16 PM
Resolved June 26, 2015 at 2:16 PM