Skip to content

Commit 485e777

Browse files
authored
docs(CSS): oklab example typo fix, reorder CSS in lch example (#25135)
* Update .gitattributes * Revert "Update .gitattributes" This reverts commit f9a1fe6. * docs(CSS): oklab example typo fix, reorder CSS in lch example
1 parent 83c12e4 commit 485e777

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

files/en-us/web/css/color_value/lch/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ div {
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
}
@@ -80,13 +87,6 @@ div {
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')}}

files/en-us/web/css/color_value/oklab/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ div {
103103
### Adjusting opacity with oklab()
104104

105105
The 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.
107107
Giving the `red-alpha` element an opacity of `0.4` makes it appear more transparent than the `red` element.
108108

109109
```html

0 commit comments

Comments
 (0)