summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-conditional/at-supports-selector-webkit-slider-thumb.tentative.html
blob: 3f777a7574a6d493c4d8a2fc2360c65cd1048ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!doctype html>
<title>CSS Test (Conditional Rules): In @supports, known -webkit- pseudo elements can be parsed successfully</title>
<link rel="help" href="https://drafts.csswg.org/css-conditional-3/#at-supports">
<link rel="match" href="at-supports-001-ref.html">
<style>
  div {
    background:red;
    height:100px;
    width:100px;
  }
  /* This matches in user agents supporting ::-webkit-slider-thumb. */
  @supports selector(input::-webkit-slider-thumb) {
    div { background-color:green; }
  }
  /* This should never match. */
  @supports selector(input::-webkit-asdf) {
    div { background-color:red; }
  }
</style>
<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
<div></div>