We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ca08b commit 8dd703dCopy full SHA for 8dd703d
3 files changed
src/compiler/__tests__/declarations.test.tsx
@@ -5,7 +5,9 @@ const tests = [
5
["-rn-ripple-color: black;", [{ d: [["black", ["android_ripple", "color"]]], s: [1, 1] }]],
6
["-rn-ripple-style: borderless;", [{ d: [[true, ["android_ripple", "borderless"]]], s: [1, 1] }]],
7
["caret-color: black", [{ d: [["#000", ["cursorColor"]]], s: [1, 1] }]],
8
+ ["fill: black;", [{ d: [["#000", ["fill"]]], s: [1, 1] }]],
9
["stroke: black;", [{ d: [["#000", ["stroke"]]], s: [1, 1] }]],
10
+ ["stroke-width: 1px;", [{ d: [[1, ["strokeWidth"]]], s: [1, 1] }]],
11
["rotate: 3deg;", [{ d: [[[{}, "rotateZ", "3deg"], "rotateZ"]], s: [1, 1] }]],
12
["rotate: x 3deg;", [{ d: [[[{}, "rotateX", "3deg"], "rotateX"]], s: [1, 1] }]],
13
] as const;
src/compiler/atRules.ts
@@ -82,6 +82,9 @@ export function parsePropAtRule(rules?: (Rule | PropAtRule)[]) {
82
// Include any default mapping here
83
const mapping: StyleRuleMapping = {
84
"caret-color": ["cursorColor"],
85
+ "fill": ["fill"],
86
+ "stroke": ["stroke"],
87
+ "stroke-width": ["strokeWidth"],
88
"-webkit-line-clamp": ["numberOfLines"],
89
"-rn-ripple-color": ["android_ripple", "color"],
90
"-rn-ripple-style": ["android_ripple", "borderless"],
src/compiler/declarations.ts
@@ -2458,7 +2458,6 @@ export function parseSVGPaint(
2458
return;
2459
}
2460
2461
- builder.addMapping({ [property]: [property] });
2462
builder.addDescriptor(property, parsedValue);
2463
2464
0 commit comments