Skip to content

Commit 8f249b9

Browse files
authored
Misc. updates based on TODO scrub (#454)
1 parent 5e92fbf commit 8f249b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/lit-dev-content/site/docs/components/styles.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ render() {
233233
234234
<div class="alert alert-info">
235235
236-
**Limitations in the ShadyCSS polyfill around expressions.** Expressions in `<style>` elements won't update per instance in ShadyCSS, due to limitations of the ShadyCSS polyfill. See the [ShadyCSS limitations](https://github.com/webcomponents/shadycss/blob/master/README.md#limitations) for more information.
236+
**Limitations in the ShadyCSS polyfill around expressions.** Expressions in `<style>` elements won't update per instance in ShadyCSS, due to limitations of the ShadyCSS polyfill. In addition, `<style>` nodes may not be passed as expression values when using the ShadyCSS polyfill. See the [ShadyCSS limitations](https://github.com/webcomponents/polyfills/tree/master/packages/shadycss#limitations) for more information.
237237

238238
</div>
239239

@@ -257,7 +257,7 @@ While you can include an external style sheet in your template with a `<link>`,
257257
258258
**External stylesheet caveats.**
259259
260-
* The [ShadyCSS polyfill](https://github.com/webcomponents/shadycss/blob/master/README.md#limitations) doesn't support external style sheets.
260+
* The [ShadyCSS polyfill](https://github.com/webcomponents/polyfills/tree/master/packages/shadycss#limitations) doesn't support external style sheets.
261261
* External styles can cause a flash-of-unstyled-content (FOUC) while they load.
262262
* The URL in the `href` attribute is relative to the **main document**. This is okay if you're building an app and your asset URLs are well-known, but avoid using external style sheets when building a reusable element.
263263

packages/lit-dev-content/site/docs/releases/upgrade.md

+1
Original file line numberDiff line numberDiff line change
@@ -233,3 +233,4 @@ relatively few users.
233233
* Symbols are not converted to a string before mutating DOM, so passing a Symbol to an attribute or text binding will result in an exception.
234234
* The `ifDefined` directive in an attribute expression now removes the attribute for both `null` and `undefined`, not just `undefined`.
235235
* Rendering the value `nothing` to an attribute expression causes the attribute to be removed—even if there are multiple expressions in the attribute value position and only one is `nothing`. For example given `src="${baseurl}/${filename}"`, the `src` attribute is removed if _either_ `baseurl` or `filename` evaluate to `nothing`.
236+
* Rendering the value `nothing`, `null`, or `undefined` in the `unsafeHTML` or `unsafeSVG` directive will now result in no content being rendered (previously it would render `'[object Object]'`, `'null'`, or `'undefined'`, respectively).

0 commit comments

Comments
 (0)