testing/web-platform/tests/css/css-ui/outline-022.html
author Florian Quèze <florian@queze.net>
Tue, 08 Jul 2025 20:48:53 +0000 (12 hours ago)
changeset 795809 b01190f141a12f4b506acb1f4476561c4b0f2407
parent 606595 895e9f55c489ee2cc6e5bb3b1039f863e5b72809
permissions -rw-r--r--
Bug 1960567 - remove the last C++ and scriptable APIs to accumulate data to legacy telemetry histograms, r=chutten. Differential Revision: https://phabricator.services.mozilla.com/D255582
<!DOCTYPE html>
<title>CSS-UI test: outline works on nested spans</title>
<link rel="author" href="mailto:atotic@google.com">
<link rel="help" href="https://drafts.csswg.org/css-ui/#outline-props">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
body {
  --outline-width: 10px;
  --square-width: 80px;
}
#container {
  width: var(--square-width);
  padding: var(--outline-width);
}
#target {
  font-family: Ahem;
  font-size: var(--square-width);
  outline: solid var(--outline-width) green;
  color: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
  <span>
    <span>
      <span id="target">x</span>
    </span>
  </span>
</div>