Commit 201fd7bc authored by Oskar Kalbag's avatar Oskar Kalbag

Added support for background-size

parent 69ac2f12
......@@ -137,3 +137,7 @@ h2 {
max-width: 3.125rem;
max-width: none;
}
#test-background-size {
background-size: 100px;
background-size: 6.25rem;
}
......@@ -123,6 +123,10 @@ padding-left()
font-size()
abstract-longhand('font-size', arguments)
/* Background size */
background-size()
abstract-longhand('background-size', arguments)
/* Max width */
max-width()
......@@ -191,6 +195,8 @@ right()
abstract-longhand('right', arguments)
/************************************************************
* *
* Typography *
......
......@@ -82,6 +82,10 @@
<h2>Max-width (none)</h2>
<div id='test-max-width' data-assert='width: 500px'>max-width none</div>
</section>
<section>
<h2>Background size</h2>
<div id='test-background-size' data-assert='background-size: 100px'>background-size 100px</div>
</section>
<script src='dom-style-test-runner.js'></script>
</body>
......
......@@ -116,4 +116,8 @@ h2
// max-width
#test-max-width
max-width 50px
max-width none
\ No newline at end of file
max-width none
// background-size
#test-background-size
background-size 100px
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment