# partywall

> A prollyfill for the style aspects of the HTML Parts and Walls spec.

Latest version **0.3.0** (published 2015-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install partywall
pnpm add partywall
yarn add partywall
bun add partywall
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2015-10-02 |
| First published | 2015-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stuart P. Bentley |
| Maintainers | stuartpb |
| Keywords | wall |

## Links

- npm: https://www.npmjs.com/package/partywall
- Repository: https://github.com/stuartpb/partywall
- Issues: https://github.com/stuartpb/partywall/issues
- npm.io page: https://npm.io/package/partywall

## Recent versions

- 0.3.0 (latest) — 2015-10-02
- 0.2.0 — 2015-08-23
- 0.1.0 — 2015-08-18

## README

# partywall

A prollyfill for the style aspects of the HTML Parts and Walls spec.

For the DOM aspects of the HTML Parts and Walls spec, see
[getpart-polyfill](https://github.com/stuartpb/getpart-polyfill).

## Using partywall.js

To start using this script, call the `partywallStyler()` function it adds to
the global environment. This will populate the needed information for all
elements on the page, set up mutation observers to keep that information
accurate, and add a stylesheet to the document to contain all styles whose
selectors are dynamically generated by this styler.

To add a style to be applied by the styler, use `addStyle(list, style)`. The
`list` argument is an array of selectors, where the selectors are arrays of
wall-separated selector strings. (Any selectors that involve non-walled
descendant selectors between them may be specified as further arrays, whose
contents will be concatenated with spaces.) The `style` argument is the
string of CSS style properties, like what you would assign to a `style`
property on an element.

## Known limitations

- Part selectors specified as an ID do not increase specificity the way the
  spec states they should.
- While the spec states that walled descendant selectors should be capable of
  crossing Shadow DOM boundaries, the selectors specified by partywall-style.js
  are document-bound.
- Increases in wall depth will increase selector application time, due to the
  way styles are generated to match through all potential wall roots.

---
_Source: https://npm.io/package/partywall · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
