Skip to content

Use hsl, not hsla #97

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions learn/values-units/color-hsla.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,47 +21,47 @@

<style class="editable">
.one {
background-color: hsla(188, 97%, 28%, 0.3);
background-color: hsl(188 97% 28% / 0.3);
}

.two {
background-color: hsla(321, 47%, 57%, 0.7);
background-color: hsl(321 47% 57% / 0.7);
}

.three {
background-color: hsla(174, 77%, 31%, 0.9);
background-color: hsl(174 77% 31% / 0.9);
}
</style>
</head>

<body>
<section class="preview">
<div class="wrapper">
<div class="box one">hsla(188, 97%, 28%, .3)</div>
<div class="box two">hsla(321, 47%, 57%, .7)</div>
<div class="box three">hsla(174, 77%, 31%, .9)</div>
<div class="box one">hsl(188 97% 28% / .3)</div>
<div class="box two">hsl(321 47% 57% / .7)</div>
<div class="box three">hsl(174 77% 31% / .9)</div>
</div>
</section>

<textarea class="playable playable-css" style="height: 240px;">
<textarea class="playable playable-css" style="height: 240px">
.one {
background-color: hsla(188, 97%, 28%, .3);
background-color: hsl(188 97% 28% / .3);
}

.two {
background-color: hsla(321, 47%, 57%, .7);
background-color: hsl(321 47% 57% / .7);
}

.three {
background-color: hsla(174, 77%, 31%, .9);
background-color: hsl(174 77% 31% / .9);
}
</textarea>

<textarea class="playable playable-html" style="height: 130px;">
<textarea class="playable playable-html" style="height: 130px">
<div class="wrapper">
<div class="box one">hsla(188, 97%, 28%, .3)</div>
<div class="box two">hsla(321, 47%, 57%, .7)</div>
<div class="box three">hsla(174, 77%, 31%, .9)</div>
<div class="box one">hsl(188 97% 28% / .3)</div>
<div class="box two">hsl(321 47% 57% / .7)</div>
<div class="box three">hsl(174 77% 31% / .9)</div>
</div>
</textarea>

Expand Down