Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<script>
  console.clear();
  const doc = document.implementation.createHTMLDocument();
  doc.body.innerHTML = `<style type="text/css">
        @import url('https://fonts.googleapis.com/css?family=Poppins:200,300,800');
        p { color: red; }
    </style><p>hello</p>`;
  console.log(getComputedStyle(doc.querySelector('p')).color)
</script>
</body>
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers