summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-nested-gcs.html
blob: 6777e5468f57b507f96f4e92fbba4393002d15e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<title>CSS Pseudo Test: Query ::first-line computed style before outer block ::first-line matches</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
<link rel="match" href="first-line-green-ref.html">
<style>
  #outer::first-line { color: green }
</style>
<div id="outer">
  <div id="inner"></div>
</div>
<script>
  getComputedStyle(inner, "::first-line").color;
  inner.appendChild(document.createTextNode("This text should be green."));
</script>