testing/web-platform/tests/css/css-values/rem-root-font-size-restyle-1.html
author Duncan McIntosh <dmcintosh@mozilla.com>
Wed, 09 Jul 2025 19:42:02 +0000 (2 hours ago)
changeset 795924 9ccc6a2267cbf69c621fec973bd28573c2a45a1f
parent 567214 a4efb703002871458e77ca14e94d0d6da9e8c74b
permissions -rw-r--r--
Bug 1966586 - Reuse other browser windows when opening _blank links in Taskbar Tabs windows. r=nrishel This doesn't affect other tab additions, nor does it stop the tab bar from appearing altogether. The idea is that _if_ another tab is somehow made, the user should see it; but we should not create new tabs if we can avoid it. This also adds tests for opening URIs in popups and taskbar tabs to make it less likely that this breaks in future. Differential Revision: https://phabricator.services.mozilla.com/D253726
<!doctype html>
<title>CSS Test: Test for rem units on the root element</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.csswg.org/css-values/#rem">
<link rel="match" href="rem-root-font-size-restyle-1-ref.html">
<style>
:root {
  font-size: 2rem;
}

div {
  width: 10rem;
  height: 10rem;
  background: green;
}
</style>
<div></div>
<script>
  document.documentElement.offsetTop;
  // Force a style recalc.
  document.documentElement.style.color = "green";
</script>