Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ind.ie Projects
Responsive Pixels
Commits
201fd7bc
Commit
201fd7bc
authored
Jul 16, 2013
by
Oskar Kalbag
Browse files
Added support for background-size
parent
69ac2f12
Changes
4
Hide whitespace changes
Inline
Side-by-side
css/tests.css
View file @
201fd7bc
...
...
@@ -137,3 +137,7 @@ h2 {
max-width
:
3.125rem
;
max-width
:
none
;
}
#test-background-size
{
background-size
:
100px
;
background-size
:
6.25rem
;
}
index.styl
View file @
201fd7bc
...
...
@@ -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 *
...
...
tests.html
View file @
201fd7bc
...
...
@@ -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>
...
...
tests.styl
View file @
201fd7bc
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment