Skip to content

Commit bdec2b6

Browse files
authored
Update README.md
1 parent 09672ea commit bdec2b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

css-typed-om/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CSS Typed OM Explained
22

3-
CSS Typed OM is the extensible API for the CSSOM that reduces the burden of manipulating a CSS property's value via string manipulation. It does so by exposing CSS values as typed JavaScript objects rather than strings.
3+
CSS Typed OM is an extensible API for the CSSOM that reduces the burden of manipulating a CSS property's value via string manipulation. It does so by exposing CSS values as typed JavaScript objects rather than strings.
44

55
## Motivation
66

@@ -15,7 +15,7 @@ The benefits of CSS Typed OM include:
1515
### Getting a property's value
1616

1717
In CSSOM land:
18-
To get specified and computed values for CSS properties of an element in CSSOM we get them via accessing them of the `.style` attribute on an element and the `getComputedStyle()` object respectively.
18+
We get specified and computed values for CSS properties of an element in CSSOM via the `.style` attribute on an element and the `getComputedStyle()` object respectively.
1919

2020
In Typed OM:
2121
We get them of `StylePropertyMaps` on elements.
@@ -94,7 +94,6 @@ The class can be broken down into two subclasses:
9494

9595
[CSSResourceValue](https://drafts.css-houdini.org/css-typed-om-1/#resourcevalue-objects) objects represent CSS values that require an asynchronous network fetch. Hence, they also describe the status the resource is in. Properties with image values (e.g. `background-image`), are represented by [CSSImageValues](https://drafts.css-houdini.org/css-typed-om-1/#cssimagevalue)
9696

97-
9897
### What about Custom Properties?
9998

10099
Unregistered custom properties are represented by [CSSUnparsedValues](https://drafts.css-houdini.org/css-typed-om-1/#cssunparsedvalue) in the Typed OM API. `var()` references are represented using [CSSVariableReferenceValues](https://drafts.css-houdini.org/css-typed-om-1/#cssvariablereferencevalue).

0 commit comments

Comments
 (0)