https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 18fb4e01f0093e384c9c10fdd54a0f75f242b204 authored by Greg Whitworth on 28 June 2017, 01:37:45 UTC
Made changes based on analysis of tests that were <= 5 tests to a given url hash in flex
Tip revision: 18fb4e0
background-clip-color.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders: background-clip color backgrounds</title>
<link rel="author" title="Rune Lillesveen" href="mailto:rune@opera.com">
<link rel="match" href="background-clip-color-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds/#the-background-clip">
<style>
  #borderBoxHelper {
    margin: 10px;
    width: 30px;
    height: 30px;
    background-color: red;
  }
  #borderBox {
    border: 6px dashed green;
    padding: 6px;
    width: 6px;
    height: 6px;
    background-color: green;
    background-clip: border-box;
  }
  #paddingBoxHelper {
    width: 30px;
    height: 30px;
    background-color: red;
  }
  #paddingBox {
    border: 10px dashed white;
    padding: 10px;
    width: 10px;
    height: 10px;
    background-color: green;
    background-clip: padding-box;
  }
  #contentBoxHelper {
    width: 30px;
    height: 30px;
    background-color: red;
  }
  #contentBox {
    padding: 10px;
    width: 30px;
    height: 30px;
    background-color: green;
    background-clip: content-box;
  }
</style>
<p>There should be three green 30x30 px squares below.</p>
<div>border-box</div>
<div id="borderBoxHelper">
  <div id="borderBox"></div>
</div>
<div>padding-box</div>
<div class="paddingBoxHelper">
  <div id="paddingBox"></div>
</div>
<div>content-box</div>
<div class="contentgBoxHelper">
  <div id="contentBox"></div>
</div>
back to top