Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,15 @@ eslintTester.run('stylex-valid-styles', rule.default, {
'containIntrinsicSize': 'auto 300px',
},
})`,
`import * as stylex from '@stylexjs/stylex';
stylex.create({
default: {
scrollTimeline: '--main-scroll block',
scrollTimelineAxis: 'inline',
scrollTimelineName: '--main-scroll',
WebkitAppRegion: 'drag',
},
})`,
`import * as stylex from '@stylexjs/stylex';
stylex.create({
a: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,12 @@ const scrollSnapType: RuleCheck = makeUnionRule(
makeLiteralRule('x mandatory'),
makeLiteralRule('y mandatory'),
);
const scrollTimelineAxis: RuleCheck = makeUnionRule(
makeLiteralRule('block'),
makeLiteralRule('inline'),
makeLiteralRule('x'),
makeLiteralRule('y'),
);
const shapeImageThreshold: RuleCheck = isStringOrNumber;
const shapeOutside: RuleCheck = makeUnionRule(
makeLiteralRule('none'),
Expand Down Expand Up @@ -2161,6 +2167,9 @@ const CSSProperties = {
scrollSnapAlign: scrollSnapAlign,
scrollSnapType: scrollSnapType,
scrollSnapStop: makeUnionRule('normal', 'always') as RuleCheck,
scrollTimeline: isString,
scrollTimelineAxis: scrollTimelineAxis,
scrollTimelineName: isString,

// scrollMargin: makeUnionRule(isNumber, isString),
scrollMarginBlockEnd: makeUnionRule(isNumber, isString) as RuleCheck,
Expand Down
2 changes: 2 additions & 0 deletions packages/@stylexjs/stylex/src/types/StyleXCSSTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ type OptionalArray<T> = Array<T> | T;
export type SupportedVendorSpecificCSSProperties = Readonly<{
MozOsxFontSmoothing?: null | 'grayscale',
WebkitAppearance?: null | appearance,
WebkitAppRegion?: null | 'drag' | 'no-drag',
WebkitFontSmoothing?: null | 'antialiased',
WebkitTapHighlightColor?: null | color,
}>;
Expand All @@ -969,6 +970,7 @@ export type CSSProperties = Readonly<{
// ...$Exact<SupportedVendorSpecificCSSProperties>, for TypeScript compatibility
MozOsxFontSmoothing?: all | 'grayscale',
WebkitAppearance?: all | appearance,
WebkitAppRegion?: all | 'drag' | 'no-drag',
WebkitFontSmoothing?: all | 'antialiased',
WebkitTapHighlightColor?: all | color,

Expand Down
Loading