Function EmToPx->find_font_size_from_chain

Definitions

sources/css_cleanup.php

  • Find the font size given a chain of possible parent selectors.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$chain array required parameter N/A N/A Possible parent selectors
$context_selector string required parameter N/A N/A The selector this is for (useful for debugging, not used for calculation)

Return

  • Font size in px units
  • Type: integer
  • Set: N/A
  • Range: N/A