Skip to content

Commit 04dc4ea

Browse files
ryanaujWestbrook
authored andcommitted
Update css.md
1 parent b098775 commit 04dc4ea

File tree

1 file changed

+1
-1
lines changed
  • docs/guides/going-buildless

1 file changed

+1
-1
lines changed

docs/guides/going-buildless/css.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The style rules which are ultimately applied to an element depend on all the rul
8383

8484
While the cascade is fundamental to CSS, and is certainly useful, it can at times make it more difficult to control the styles applied to a portion of a document. This is particularly important when designing reusable components, which should maintain their style no matter where they're used.
8585

86-
While a number of toolchains and techniques for achieving style encapsulation, like [BEM](http://getbem.com/introduction/) and [Styled Components](https://github.com/styled-components/styled-components), the web platform itself provides a native mechanism for isolating styles, called [Shadow DOM](https://www.w3.org/TR/shadow-dom/).
86+
While a number of toolchains and techniques exist for achieving style encapsulation, like [BEM](http://getbem.com/introduction/) and [Styled Components](https://github.com/styled-components/styled-components), the web platform itself provides a native mechanism for isolating styles, called [Shadow DOM](https://www.w3.org/TR/shadow-dom/).
8787

8888
Isolating a portion of a document within a shadow root allows designers to write the CSS for that component without worrying about how their CSS will affect the rest of the document. Shadow DOM removes the need for complex CSS toolchains or naming conventions. Designers can use simple type, id, or class selectors, in that order.
8989

0 commit comments

Comments
 (0)