File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
files/en-us/web/css/color_value Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 6767```
6868
6969``` css
70+ [data-color = " blue" ] {
71+ background-color : lch (0% 100 240 );
72+ }
73+ [data-color = " blue-light" ] {
74+ background-color : lch (100% 100 240 );
75+ }
76+
7077[data-color = " red" ] {
7178 background-color : lch (50% 130 20 );
7279}
8087[data-color = " green-hue" ] {
8188 background-color : lch (50% 132 180 );
8289}
83-
84- [data-color = " blue" ] {
85- background-color : lch (0% 100 240 );
86- }
87- [data-color = " blue-light" ] {
88- background-color : lch (100% 100 240 );
89- }
9090```
9191
9292{{EmbedLiveSample('Adjusting_lightness,_ chroma,_ and_hue_with_lch')}}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ div {
103103### Adjusting opacity with oklab()
104104
105105The following example shows the effect of varying the ` A ` (alpha) value of the ` oklab() ` function.
106- The ` red ` and ` #ed -alpha` elements overlap the ` #background-div ` element to demonstrate the effect of opacity.
106+ The ` red ` and ` red -alpha` elements overlap the ` #background-div ` element to demonstrate the effect of opacity.
107107Giving the ` red-alpha ` element an opacity of ` 0.4 ` makes it appear more transparent than the ` red ` element.
108108
109109``` html
You can’t perform that action at this time.
0 commit comments