MDN self-hosted library · e01.org

CSS property value processing

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
p {
  font-size: 1.25em;
  colr: blue;
  font-weight: bold;
}
css
p {
  font-size: 1em;
}

p.large {
  font-size: 1.5em;
}
css
/* User agent styles */
p {
  font-size: 1em;
}

/* author styles */
p {
  font-size: 1.25em;
}

.large {
  font-size: 2em;
}
css
font-size: 2em;
css
font-size: 2em;
css
color: inherit;
margin: 0;