Skip to content

Instantly share code, notes, and snippets.

View markhdavis's full-sized avatar

Mark H Davis markhdavis

View GitHub Profile
let para = document.querySelector('p');
let compStyles = window.getComputedStyle(para);
para.textContent = 'My computed font-size is ' +
compStyles.getPropertyValue('font-size') +
',\nand my computed line-height is ' +
compStyles.getPropertyValue('line-height') +
'.';

Keybase proof

I hereby claim:

  • I am markhdavis on github.
  • I am markhdavis (https://keybase.io/markhdavis) on keybase.
  • I have a public key whose fingerprint is 7956 6B1A 9817 908E 0AB4 4BFF 9C63 88EE 67BC 3A4A

To claim this, I am signing this object: