Default is top-to-bottom if unset, not bottom-to-top

This commit is contained in:
Nick Price 2016-12-27 18:31:06 -05:00
parent 7e3c9e2197
commit 23d4f04ce5
4 changed files with 23 additions and 1 deletions

View file

@ -19,11 +19,15 @@ section {
#c {
background: linear-gradient(90deg, violet, violet 1em, violet 2ex, violet 50%, blue 50%, blue, blue);
}
#d {
background: linear-gradient(red, green);
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
<section id=c></section>
<section id=d></section>
</body>
</html>

View file

@ -30,6 +30,9 @@ nav {
background: blue;
right: 0;
}
#d {
background: linear-gradient(to bottom, red, green);
}
</style>
</head>
<body>
@ -39,5 +42,6 @@ nav {
<nav id=ca></nav>
<nav id=cb></nav>
</section>
<section id=d></section>
</body>
</html>