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
81dc7db5
Commit
81dc7db5
authored
Jul 16, 2013
by
Oskar Kalbag
Browse files
Updated background-size to support two arguments.
parent
201fd7bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
css/tests.css
View file @
81dc7db5
...
...
@@ -138,6 +138,7 @@ h2 {
max-width
:
none
;
}
#test-background-size
{
background-size
:
100px
;
background-size
:
6.25rem
;
background-image
:
linear-gradient
(
90deg
,
transparent
50%
,
rgba
(
255
,
255
,
255
,
0.5
)
50%
);
background-size
:
500px
500px
;
background-size
:
31.25rem
31.25rem
;
}
index.styl
View file @
81dc7db5
...
...
@@ -125,7 +125,7 @@ font-size()
/* Background size */
background-size()
abstract-
long
hand('background-size', arguments)
abstract-
short
hand('background-size', arguments)
/* Max width */
...
...
tests.html
View file @
81dc7db5
...
...
@@ -84,7 +84,7 @@
</section>
<section>
<h2>
Background size
</h2>
<div
id=
'test-background-size'
data-assert=
'background-size:
1
00px'
>
background-size
1
00px
</div>
<div
id=
'test-background-size'
data-assert=
'background-size:
500px 5
00px'
>
background-size
500px 5
00px
</div>
</section>
<script
src=
'dom-style-test-runner.js'
></script>
...
...
tests.styl
View file @
81dc7db5
...
...
@@ -120,4 +120,6 @@ h2
// background-size
#test-background-size
background-size 100px
\ No newline at end of file
background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,.5) 50%);
background-size: 500px 500px;
// 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