Commit 4ed29060 authored by Oskar Kalbag's avatar Oskar Kalbag
Browse files

Added support for height attribute.

parent 6121991a
...@@ -128,3 +128,7 @@ h2 { ...@@ -128,3 +128,7 @@ h2 {
width: 3.125rem; width: 3.125rem;
width: 100%; width: 100%;
} }
#test-height {
height: 50px;
height: 3.125rem;
}
...@@ -170,9 +170,12 @@ border-radius() ...@@ -170,9 +170,12 @@ border-radius()
/* Width */ /* Width */
width(w) width()
abstract-longhand('width', arguments) abstract-longhand('width', arguments)
height()
abstract-longhand('height', arguments)
/* Relative and absolute positioning */ /* Relative and absolute positioning */
top() top()
......
...@@ -74,6 +74,10 @@ ...@@ -74,6 +74,10 @@
<h2>Width</h2> <h2>Width</h2>
<div id='test-width-hundred-percent' data-assert='width: 1000px'>width 100%</div> <div id='test-width-hundred-percent' data-assert='width: 1000px'>width 100%</div>
</section> </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> <script src='dom-style-test-runner.js'></script>
</body> </body>
......
...@@ -107,4 +107,8 @@ h2 ...@@ -107,4 +107,8 @@ h2
// width // width
#test-width-hundred-percent #test-width-hundred-percent
width 50px width 50px
width 100% width 100%
\ No newline at end of file
// height
#test-height
height 50px
\ 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