Commit 00596a8
docs(v7): native CanIUse + v7 docs pulled up to latest styled-components (#1005)
* docs(v7): pull latest native polyfills into matrix, native.mdx, llms.txt
New v7 surface reflected across the compatibility matrix and v7 docs:
accent-color, overscroll-behavior, scrollbar-width, text-overflow,
direction → writingDirection, font-size keyword parity, letter-spacing
font-relative units, CSS Color 4 system-color fold inside box-shadow /
filter / background / linear-gradient stops, animation-composition
longhand, :nth-child(<an+b> of S), styled.ScrollView flex-shrink: 0
default, border-radius slash form, border-style hidden / mixed handling.
Fixes verified against react-native 0.85.2: aspect-ratio slash form
actually works natively without v7; mix-blend-mode iOS count is 15
non-normal modes, not 16.
AGENTS.md gains rules: matrix entries describe author-facing behavior
not internals (public RN prop names allowed); public docs strip
mechanism; American English in all prose.
* docs(v7): rn-web parity follow-ups
- object-fit: rn-web Image now picks up the CSS property via resizeMode
- styled.ScrollView flex-shrink: 0 baseline applies on native only;
rn-web keeps the default so scrolling works
* docs(v7): drop mechanism narration from public-facing prose
Trim polyfill mechanism (lifts X, polyfills by Y, attaches Z) out of
matrix summaries and v7 docs. Keep what's supported, what isn't, what
to author. Affected entries: accent-color, overscroll-behavior,
scrollbar-width, text-overflow, direction, object-fit, line-clamp,
background-blend-mode, interactivity, caret-color, ScrollView baseline.
* docs(v7): pull custom properties, !important, font-size units, rn-web bundle
CSS custom properties cascade through styled components on native: declare
`--name: value` and descendants read it back via `var(--name, fallback)`.
References resolve inside every conditional bucket (`@media`, `@container`,
attribute, pseudo-state, `:has()`, `:nth-child()`, combinator).
`!important` is honored within a component for base + every conditional
bucket, flows through `var()` substitution and render-time resolvers, and
beats a runtime `style={{ ... }}` prop. Ignored inside `@keyframes` per
spec. Cross-component cascade is not yet supported.
`font-size` accepts the full unit catalogue: viewport units, container
query units, font-relative, font-metric approximations, and absolute
lengths.
`styled-components/native` now ships a dedicated build for `react-native-web`
consumers, auto-detected by Webpack / Vite / Metro web targets.
* chore: AGENTS.md prose sweep and small cleanups
Replaced em-dashes across docs prose with colons, semicolons, periods,
or parentheses per the project rule. Dropped the literal em-dash glyph
from the blog byline divider in favor of a middle dot.
Fixed three Nav components that pixel sizes through `rem()`; nav and
sidebar widths use plain px from `utils/sizes.ts`.
`utils/blog.server.ts` now loads MDX modules concurrently via
`Promise.all`. `utils/cssCompatFormats.ts` deduplicates a double sort.
`Nav/SidebarMenus.tsx` hoists `activeHref(pathname)` out of its top-level
`.map` so the lookup runs once per render instead of per item.
Removed two unused exports: `searchModalWidth` in `utils/sizes.ts`
and the precomputed `Author.websiteHost` in `utils/authors.ts`.
* docs(v7): address Copilot review on PR #1005
- text-overflow: make the required companion line limit explicit
(sections/v7/native.mdx, public/llms.txt, utils/cssCompat.ts).
RN's ellipsizeMode is a no-op without numberOfLines, so authors
need line-clamp or text-wrap: nowrap alongside text-overflow.
- overscroll-behavior: drop `chain` from the summary. It is not a
valid CSS keyword; the spec only accepts auto | contain | none.
- border-radius: downgrade v6, iosStock, androidStock to `partial`
to reflect that only v7 accepts the slash-separated CSS grammar
(when circular). Stock RN has no per-axis radius surface.
- AGENTS.md: remove the contradiction between the public-docs rule
and the matrix exception. Matrix follows the same no-mechanism
rule, with one narrow exception for naming a public stock-RN
prop when explaining version skew.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 775e9af commit 00596a8
31 files changed
Lines changed: 280 additions & 232 deletions
File tree
- components
- public
- sections
- advanced
- api
- helpers
- primary
- basics
- faqs
- tooling
- v7
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments