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
4ed29060
Commit
4ed29060
authored
Jul 15, 2013
by
Oskar Kalbag
Browse files
Added support for height attribute.
parent
6121991a
Changes
4
Hide whitespace changes
Inline
Side-by-side
css/tests.css
View file @
4ed29060
...
...
@@ -128,3 +128,7 @@ h2 {
width
:
3.125rem
;
width
:
100%
;
}
#test-height
{
height
:
50px
;
height
:
3.125rem
;
}
index.styl
View file @
4ed29060
...
...
@@ -170,9 +170,12 @@ border-radius()
/* Width */
width(
w
)
width()
abstract-longhand('width', arguments)
height()
abstract-longhand('height', arguments)
/* Relative and absolute positioning */
top()
...
...
tests.html
View file @
4ed29060
...
...
@@ -74,6 +74,10 @@
<h2>
Width
</h2>
<div
id=
'test-width-hundred-percent'
data-assert=
'width: 1000px'
>
width 100%
</div>
</section>
<section>
<h2>
Height
</h2>
<div
id=
'test-height'
data-assert=
'height: 50px'
>
height 50px
</div>
</section>
<script
src=
'dom-style-test-runner.js'
></script>
</body>
...
...
tests.styl
View file @
4ed29060
...
...
@@ -107,4 +107,8 @@ h2
// width
#test-width-hundred-percent
width 50px
width 100%
\ No newline at end of file
width 100%
// height
#test-height
height 50px
\ 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