Skip to content
This repository was archived by the owner on Oct 11, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (28 loc) · 964 Bytes

readme.md

File metadata and controls

28 lines (28 loc) · 964 Bytes
  • CSS Variables:
    • Declaration: --varName: value;
      /* GLOBAL variables (because of :root) */
      :root { /* <-- refers to the HTML doc */
         --spacing: 10px; /* variable declaration and assignment */
        --blur: 10px; /* You HAVE to assign it a value */
      }
    • Usage: var(--varName);
      img {
          background: var(--base);
          padding: var(--spacing);
          filter: blur(var(--blur));
          }
  • The difference between a NodeList and an Array object ? The methods available.
  • Short-circuit evaluation:
    const suffix = this.dataset.sizing || ' ';
    // The first non-falsy value is returned. 
    // If all values are falsy, the last one is returned.
  • Document.documentElement returns the <html> element. Note
    document.documentElement;