ampproject / ampproject/amphtml
[amp-truncate-text:1.0] Bento tracking issue
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
(## High-level requirements
| Consideration | Ready when | Status |
| ------------- | ------------- | ------- |
| Component compatibility | [Conformance with 0.1 (see below)](https://amp.dev/documentation/components/amp-truncate-text/) | ✖️ |
| Testing | Unit tests and e2e tests from 0.1 | ✖️ |
| Internationalization | n/a | ❓ |
| Analytics | n/a | n/a |
| Accessibility | Audit performed, [[Reference from 0.1?]] |✖️ |
| Page experience | Audit performed |✖️ |
| Documentation | Written |✖️ |
| Storybook | Samples written | ✖️ |
## Component compatibility
Attributes to support: [none (?)]
### Migration Notes:
[none yet]
## Open tasks:
- [ ] Initial implementation in #32068
- [ ] Watch for attribute mutations in Bento mode
- [ ] Add `ResizeObserver` to re-run truncation on resize
- [ ] Remove usage of `` in Preact mode, if possible
- [ ] Rewrite truncation logic for Preact, possibly removing related CSS/JSS
Contributor guide
Assessment
This issue has not been assessed yet.