
Skyline Wxss
- 622 installs
- 48 repo stars
- Updated June 3, 2026
- wechat-miniprogram/skyline-skills
skyline-wxss is an agent skill that applies WeChat Mini Program Skyline renderer WXSS styling rules for developers shipping performance-conscious mobile mini program UIs.
About
skyline-wxss is a skill from wechat-miniprogram/skyline-skills that guides agents styling WeChat Mini Program screens for the Skyline rendering engine. It covers WXSS syntax and layout patterns that differ from legacy WebView mini programs, including flex-based structures and performance-conscious CSS choices unique to Skyline. Developers reach for skyline-wxss when building or refactoring mini program pages that must render smoothly under Skyline constraints rather than default WebView behavior. The skill helps agents choose compatible selectors, spacing, and component styling so UI work aligns with Skyline documentation and avoids patterns that trigger layout thrash or unsupported properties. It fits mobile engineers targeting WeChat distribution who need agent assistance translating design specs into Skyline-safe WXSS. Skyline adoption is common when mini programs need smoother scrolling and native-like rendering on WeChat. Agents compare WebView-era WXSS against Skyline constraints before suggesting refactors to page JSON, component wrappers, and shared style partials.
- Skyline WXSS syntax and constraints
- Mini program flex layout patterns
- Performance-oriented styling guidance
- WebView-to-Skyline migration considerations
Skyline Wxss by the numbers
- 622 all-time installs (skills.sh)
- +29 installs in the week ending Jul 27, 2026 (Skillselion tracking)
- Ranked #275 of 1,039 Mobile Development skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/wechat-miniprogram/skyline-skills --skill skyline-wxssAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 622 |
|---|---|
| repo stars | ★ 48 |
| Last updated | June 3, 2026 |
| Repository | wechat-miniprogram/skyline-skills ↗ |
How do you style WeChat Skyline mini programs?
Style WeChat Mini Program screens with Skyline renderer WXSS rules, flex layouts, and performance-conscious CSS patterns unique to the Skyline engine.
Who is it for?
WeChat Mini Program developers adopting the Skyline renderer who need WXSS guidance tuned to engine-specific layout rules.
Skip if: Teams building standard WebView-only mini programs or non-WeChat mobile apps should skip skyline-wxss.
When should I use this skill?
User edits WXSS, Skyline layouts, or asks for WeChat mini program styling with the Skyline engine.
What you get
Skyline-compatible WXSS stylesheets, flex layouts, and performance-tuned mini program screen markup.
- Skyline-compatible WXSS files
- Flex-based screen layouts
Files
Skyline WXSS 样式支持
适用场景
- 检查某个 CSS 属性/值在 Skyline 下是否可用
- 排查 WXSS 样式在 Skyline 下不生效的问题
- 从 WebView 迁移到 Skyline 时评估样式兼容性
- 使用渐变、滤镜、遮罩等高级样式时了解限制
- 查阅 Skyline 支持的 CSS 属性语法
文档索引
| 我想要... | 查阅文档 |
|---|---|
| 查看基础数据类型与语法符号 | references/basics.md |
| 查看布局/定位/盒模型语法 | references/layout.md |
| 查看 Flex 布局语法 | references/flex.md |
| 查看背景/边框/滤镜/遮罩语法 | references/visual.md |
| 查看文本/字体语法 | references/text.md |
| 查看动画/过渡/变换语法 | references/animation.md |
| 查看某属性是否支持 | 本文档 Quick Reference |
| 了解渐变/滤镜的具体限制 | 本文档「渐变与滤镜限制」规则 |
| 检查 WXSS 语法 | 本文档 「WXSS CLI」 |
WXSS CLI
请务必调用 skyline CLI 对 WXSS 进行检查,确保用法正确。
npx skyline-cli --help列出所有支持的 WXSS 属性
npx skyline-cli wxss list从 stdin 读取 WXSS 文本并检查语法
echo "view { color: red; }" | npx skyline-cli wxss check --json检查小程序工程内的 WXSS 文件
npx skyline-cli wxss check --json --miniprogram-root ${PROJECT_ROOT} --files pages/index/index.wxss pages/list/list.wxss强制规则
NEVER: 使用不支持的 CSS 属性
以下属性设置后不生效:
| 属性 | 分类 | 替代方案 |
|---|---|---|
float | 布局 | 使用 flex 布局 |
contain | 布局 | 使用 -wx-contain |
resize | 布局 | 无替代 |
writing-mode | 文本 | 无替代 |
text-indent | 文本 | 使用 padding-left 模拟 |
overflow-wrap | 文本 | 使用 word-break |
text-decoration-thickness | 文本 | 无替代 |
background-attachment | 背景 | 无替代 |
background-clip | 背景 | 无替代 |
background-origin | 背景 | 无替代 |
mask-origin / mask-clip / mask-mode | 遮罩 | 无替代 |
justify-items | Flex | 无替代 |
list-style-type / list-style-image / list-style-position | 列表 | 无替代 |
MUST: 使用支持的属性值
部分属性可用但特定值不支持,会被静默忽略:
Incorrect:
.container {
display: grid; /* grid 不支持 */
position: sticky; /* sticky 不支持 */
overflow: auto; /* auto 不支持 */
}Correct:
.container {
display: flex; /* 使用 flex 替代 grid */
position: relative; /* sticky 需使用 sticky-header 组件 */
overflow: hidden; /* 使用 hidden,滚动用 scroll-view */
}MUST: 注意渐变限制
渐变限制汇总:
radial-gradient仅支持circle形状(不支持ellipse),尺寸仅支持px,颜色停止仅支持%linear-gradient停止位置仅支持%和固定长度单位(px、rpx 等)conic-gradient完全支持(无额外限制)
MUST: 注意背景/遮罩多值限制
background-image/mask-image最多支持 2 个值background-position最多支持 2 组值background-repeat/background-size不支持多组值
MUST: calc() 不支持角度类型
calc() 支持长度计算,但不支持角度计算,需直接写角度值。
MUST: text-overflow 仅在 text 组件生效
text-overflow: ellipsis 在 Skyline 下仅在 `<text>` 组件上生效,在 <view> 上不生效。推荐使用 <text> 组件的 overflow 和 max-lines 属性。
⚠️ 详见 skyline-components 技能了解 text 组件的属性限制。NEVER: 使用 filter 的 url() 和 drop-shadow()
filter/backdrop-filter 不支持 url() 和 drop-shadow(),也不支持多个函数组合。用 box-shadow 替代 drop-shadow。
支持的函数:blur(), brightness(), contrast(), grayscale(), hue-rotate(), invert(), opacity(), saturate(), sepia()。
MUST: text-decoration-line 仅支持单值
仅支持单个值(none, underline, overline, line-through),不支持多值组合如 underline line-through。
MUST: mask-image 渐变不可用
mask-image 的 linear-gradient() 和 radial-gradient() 不支持,仅 url() 形式可用。
MUST: 注意简写属性的部分有效行为
以下 CSS 简写属性在展开后,部分子属性不生效:
| 简写属性 | 不生效的子属性 |
|---|---|
background | background-attachment, background-origin, background-clip |
text-decoration | text-decoration-thickness |
mask | mask-origin, mask-clip |
💡mask-position简写有效:会自动展开为mask-position-x+mask-position-y(类似background-position的机制)。
Quick Reference
布局属性速查
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
display | none, block, inline, inline-block, flex, inline-flex | grid, flow-root |
position | static, relative, absolute, fixed | sticky |
overflow | visible, hidden | auto, scroll, overflow-x, overflow-y |
visibility | visible, hidden | collapse |
box-sizing | content-box, border-box | padding-box |
aspect-ratio | auto, <number>, <number>/<number> | — |
content | none, normal, <string>, <url> | — |
direction | — | 不支持 |
文本属性速查
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
white-space | normal, nowrap | pre, pre-wrap, pre-line |
font-weight | normal, bold, 数值(100-900) | bolder, lighter |
font-style | normal, italic | oblique |
word-break | normal, break-all, keep-all | break-word(映射为 normal) |
vertical-align | baseline, top, middle, bottom | text-top, text-bottom |
text-align | left, center, right, justify, start, end | justify-all, match-parent |
text-decoration-line | none, underline, overline, line-through(仅单值) | 多值组合, blink |
text-overflow | clip, ellipsis(⚠️ 仅 text 组件生效) | — |
边框与背景速查
| 属性 | 支持的值 | 不支持的值 |
|---|---|---|
border-*-style | none, solid, dashed, dotted | hidden, double, groove, ridge, inset, outset |
background-repeat | repeat, repeat-x, repeat-y, no-repeat | space, round |
Flex 属性(全部支持)
以下 Flex 属性的所有定义值完全支持: flex-direction, flex-wrap, align-items, align-self, align-content, justify-content, flex-grow, flex-shrink, flex-basis, order
非标准默认值
以下属性的默认值与 Web 标准不同,需注意:
| 属性 | Skyline 默认值 | Web 标准默认值 | 条件 |
|---|---|---|---|
display | flex | inline | defaultDisplayBlock: true 时为 block |
position | relative | static | — |
box-sizing | border-box | content-box | defaultContentBox: true 时为 content-box |
flex-direction | column | row | defaultDisplayBlock: true 时为 row |
align-items | stretch | normal | defaultDisplayBlock: true 时为 normal |
text-align | start | left | — |
mask-repeat | no-repeat | repeat | — |
完全支持的其他属性
pointer-events, text-decoration-style, background-size, transform, opacity, transition-*, animation-*, border-radius, box-shadow, text-shadow, color, font-size, font-family, font-feature-settings, line-height, letter-spacing, word-spacing, z-index, aspect-ratio, content, will-change(仅 auto/contents), conic-gradient
相关技能
| 场景 | 推荐技能 | 说明 |
|---|---|---|
| Skyline JSON 配置 | skyline-config | rendererOptions 影响默认 display/flex-direction/align-items/box-sizing |
| 组件使用 | skyline-components | scroll-view 替代 overflow:auto |
| Worklet 动画 | skyline-worklet | transform/opacity 动画最佳实践 |
| Skyline 概览 | skyline-overview | 渲染引擎概览与迁移指南 |
References 目录结构
references/
├── animation.md
├── basics.md
├── flex.md
├── layout.md
├── text.md
└── visual.mdWXSS 变换、过渡与动画
本文档定义 Skyline WXSS 支持的变换、过渡和动画属性。
✅ 以下属性完全支持。
---
变换属性
transform
transform = none | <transform-function>+
<transform-function> = matrix() | matrix3d()
| translate() | translateX() | translateY() | translateZ() | translate3d()
| scale() | scaleX() | scaleY() | scaleZ() | scale3d()
| rotate() | rotateX() | rotateY() | rotateZ() | rotate3d()
| skew() | skewX() | skewY()
| perspective()transform-origin / opacity
transform-origin = <length> && <length> && <length>? /* 默认 50% 50% 0 */
opacity = <number> /* 默认 1 */---
过渡属性
transition
transition-property = none | <animatable-property># /* 默认 all */
transition-duration = <time># /* 默认 0s */
transition-timing-function = <timing-function># /* 默认 ease */
transition-delay = <time># /* 默认 0s */
<animatable-property> = all | none
| transform | transform-origin | opacity
| width | height | min-width | max-width | min-height | max-height
| margin | margin-top | margin-right | margin-bottom | margin-left
| padding | padding-top | padding-right | padding-bottom | padding-left
| top | right | bottom | left
| flex | flex-grow | flex-shrink | flex-basis
| border | border-width | border-color | border-radius
| border-top-width | border-right-width | border-bottom-width | border-left-width
| border-top-color | border-right-color | border-bottom-color | border-left-color
| border-top-left-radius | border-top-right-radius | border-bottom-left-radius | border-bottom-right-radius
| border-top | border-right | border-bottom | border-left
| background-color | background-position | background-size | background
| background-position-x | background-position-y
| filter | backdrop-filter | box-shadow | z-index
| text-decoration-color
| mask | mask-size | mask-position | mask-position-x | mask-position-y⚠️ 以下属性不支持 transition/animation:
- 文本相关:text-align、text-shadow、direction、white-space、word-break
- 字体相关:color、font-size、font-weight、font-style、font-family、font-feature-settings、line-height、letter-spacing、word-spacing
- 其他:visibility、pointer-events
---
动画属性
animation
animation-name = [ none | <custom-ident> | <string> ]#
animation-duration = <time>#
animation-timing-function = <timing-function>#
animation-delay = <time>#
animation-iteration-count = [ infinite | <number> ]#
animation-direction = [ normal | reverse | alternate | alternate-reverse ]#
animation-fill-mode = [ forwards | both ]#
animation-play-state = [ running | paused ]#⚠️ animation-fill-mode:none和backwards虽可写但实际表现均为forwards
@keyframes
@keyframes <animation-name> {
<keyframe-selector># { <declaration-list> }
}
<keyframe-selector> = from | to | <percentage>---
缓动函数
<timing-function> = linear | ease | ease-in | ease-out | ease-in-out
| steps( <integer> [ , start | end | jump-* ]? )
| cubic-bezier( <number> , <number> , <number> , <number> )---
优化属性
will-change
will-change = auto | contents⚠️ 仅支持auto和contents,不支持scroll-position和<custom-ident>
---
本文档基于 Skyline 官方文档与实际测试生成。
WXSS 基础数据类型
本文档定义 Skyline WXSS 支持的基础数据类型。
标注说明:
- ⚠️ 不支持 = 设置后不生效
- ⛔ 不可用 = 该属性不支持
---
<length>
<length> = <number> <length-unit> | <percentage> | auto | <calc()> | <env()>
<length-unit> = px | rpx | vw | vh | vmin | vmax | rem | em
<percentage> = <number>%
<calc()> = calc( <calc-sum> )
<calc-sum> = <calc-product> [ [ '+' | '-' ] <calc-product> ]*
<calc-product> = <calc-value> [ [ '*' | '/' ] <calc-value> ]*
<calc-value> = <number> | <length> | ( <calc-sum> )
<env()> = env( <custom-ident> [ , <length> ]? )支持的 env() 变量:safe-area-inset-top, safe-area-inset-right, safe-area-inset-bottom, safe-area-inset-left
⚠️ calc() 仅支持长度类型计算,不支持角度类型。<number>
<number> = <integer> | <decimal>
<integer> = ['+' | '-']? <digit>+
<decimal> = <integer> '.' <digit>+<image>
<image> = <url> | <gradient> | none
<url> = url( <string> )
<gradient> = <linear-gradient> | <radial-gradient> | <conic-gradient>渐变语法详见 visual.md。<color>
<color> = <named-color> | <hex-color> | rgb() | rgba() | hsl() | hsla() | hwb() | currentColor
<hex-color> = '#' <hex-digit>{3,4,6,8}<angle> / <time>
<angle> = <number> [ deg | grad | rad | turn ]
<time> = <number> [ s | ms ]---
语法符号说明
| 符号 | 含义 |
|---|---|
= | 定义 |
| `\ | ` |
| `\ | \ |
&& | 必须全部出现(顺序可变) |
? | 可选 |
+ | 至少 1 次 |
{n,m} | n 到 m 次 |
# | 逗号分隔列表 |
---
本文档基于 Skyline 官方文档与实际测试生成。
CSS Variable
Skyline 支持 CSS 变量(自定义属性):
page {
--primary-color: #1890ff;
--spacing: 16px;
}
.container {
color: var(--primary-color);
padding: var(--spacing);
width: var(--box-width, 100px); /* 支持默认值 */
}⚠️ 变量名必须以 -- 开头⚠️var()支持默认值语法:var(--name, fallback)
---
WXSS Flex 布局属性
本文档定义 Skyline WXSS 支持的 Flex 布局属性。
✅ 以下 Flex 属性的所有值完全支持(除特别标注外)。
---
容器属性
flex-direction / flex-wrap
flex-direction = row | row-reverse | column | column-reverse
flex-wrap = nowrap | wrap | wrap-reverseflex-direction 默认值:column(rendererOptions.skyline.defaultDisplayBlock: true 时为 row)
align-items / align-self / align-content / justify-content
align-items = stretch | center | flex-start | flex-end | baseline
| normal | start | end | self-start | self-end
align-self = auto | stretch | center | flex-start | flex-end | baseline
| start | end | self-start | self-end | normal
align-content = stretch | center | flex-start | flex-end
| space-between | space-around | space-evenly
| normal | start | end | baseline
justify-content = center | flex-start | flex-end
| space-between | space-around | space-evenly
| start | end | left | right | baseline | stretchalign-items 默认值:stretch(rendererOptions.skyline.defaultDisplayBlock: true 时为 normal) align-content 默认值:normal
---
项目属性
flex / flex-grow / flex-shrink / flex-basis / order
flex = none | auto | [ <flex-grow> <flex-shrink>? || <flex-basis> ]
flex-grow = <number> /* 默认 0 */
flex-shrink = <number> /* 默认 1 */
flex-basis = <length> /* 默认 auto */
order = <integer> /* 默认 0 */---
不可用属性
justify-items ⛔
justify-items = stretch | center | flex-start | flex-end | start | end | self-start | self-end | left | right⛔ 不可用
---
本文档基于 Skyline 官方文档与实际测试生成。
WXSS 布局与定位属性
本文档定义 Skyline WXSS 支持的布局、定位和盒模型属性。
标注说明:⚠️ 不支持 | ⛔ 不可用
---
布局属性
display
display = none | block | inline | inline-block | flex | inline-flex默认值:flex(rendererOptions.skyline.defaultDisplayBlock: true 时为 block)
⚠️grid,flow-root不支持
position
position = static | relative | absolute | fixed默认值:relative
⚠️ sticky 不支持(可使用 sticky-header/sticky-section 替代)overflow
overflow = visible | hidden默认值:visible
⚠️auto,scroll不支持(滚动请使用 scroll-view 组件)
⚠️ 不支持单独设置overflow-x/overflow-y
⚠️ 只支持单值,同时设置 X/Y
visibility
visibility = visible | hidden默认值:visible
box-sizing
box-sizing = content-box | border-box默认值:border-box(rendererOptions.skyline.defaultContentBox: true 时为 content-box)
⚠️ padding-box 不支持float ⛔ / contain ⛔ / resize ⛔
⛔ 不可用(contain 可用 -wx-contain 替代)aspect-ratio / content
aspect-ratio = auto | <number> [ '/' <number> ]?
content = normal | <string>⚠️content: none等同于normal(都映射为空)
⚠️ content: url() 不支持---
定位属性
top / right / bottom / left
top | right | bottom | left = <length>默认值:auto
z-index
z-index = auto | <integer>---
盒模型属性
width / height / min- / max-
width | height | min-width | min-height | max-width | max-height = <length>padding / margin
padding = <length>{1,4}
margin = <length>{1,4}margin 支持 auto 值
---
本文档基于 Skyline 官方文档与实际测试生成。
WXSS 文本属性
本文档定义 Skyline WXSS 支持的文本和字体属性。
标注说明:⚠️ 不支持 | ⛔ 不可用
---
基础文本
color / font-size / line-height
color = <color> /* 继承,默认 #000 */
font-size = <length> /* 继承 */
line-height = normal | <number> | <length> | <percentage> /* 继承 */direction ⛔
⛔ 不支持
---
字体属性
font-weight
font-weight = normal | bold | <number[100-900]>⚠️bolder,lighter不支持
font-style
font-style = normal | italic | oblique [ <angle> ]?⚠️ 不支持:obliquefont-family / font-feature-settings
font-family = [ <family-name> | <generic-family> ]# /* 继承 */
font-feature-settings = normal | <feature-tag-value># /* 继承 */---
空白与换行
white-space
white-space = normal | nowrap默认值:normal
word-break
word-break = normal | break-all默认值:normal
⚠️keep-all可解析但无实际效果(渲染层未实现),等同于normal
⚠️break-word被映射为normal
---
对齐
text-align
text-align = left | center | right | justify | start | end默认值:start
⚠️justify-all,match-parent不支持
vertical-align
vertical-align = baseline | top | middle | bottom⚠️text-top,text-bottom不支持
---
装饰
text-decoration
text-decoration = <text-decoration-line> || <text-decoration-style> || <text-decoration-color>⚠️ 简写部分有效:展开后 text-decoration-thickness 不生效,其余 3 个子属性正常生效⚠️ 仅在<text>和<input>组件上生效
text-decoration-line
text-decoration-line = none | underline | overline | line-through⚠️ 仅支持单值,不支持多值组合(如 underline line-through)⚠️ 仅在<text>和<input>组件上生效
text-decoration-style / text-decoration-color
text-decoration-style = solid | double | dotted | dashed | wavy
text-decoration-color = <color>⚠️ 仅在<text>和<input>组件上生效
text-overflow
text-overflow = clip | ellipsis /* 默认 clip; 继承 */⚠️text-overflow: ellipsis在 Skyline 下仅在 `<text>` 组件上生效,在<view>等组件上不生效。推荐使用<text>组件的overflow和max-lines属性实现文本截断。详见skyline-components技能。
text-shadow / letter-spacing / word-spacing
text-shadow = none | [ <length>{2,3} && <color>? ]#
letter-spacing = normal | <length> /* 继承 */
word-spacing = normal | <length> /* 继承 */---
不可用属性
text-indent ⛔ / overflow-wrap ⛔ / writing-mode ⛔ / text-decoration-thickness ⛔
⛔ 以上属性不可用
>
⚠️ `text-decoration` 简写部分有效:text-decoration简写展开后,text-decoration-thickness不生效,其余 3 个子属性(line/style/color)正常生效。
list-style-type ⛔ / list-style-image ⛔ / list-style-position ⛔
⛔ 列表样式属性不可用
---
本文档基于 Skyline 官方文档与实际测试生成。
WXSS 背景、边框与视觉效果
本文档定义 Skyline WXSS 支持的背景、边框、滤镜和遮罩属性。
标注说明:⚠️ 不支持 | ⛔ 不可用
---
背景属性
background-color / background-image
background-color = <color>
background-image = <bg-image>#
<bg-image> = none | <url> | <gradient>background-position / background-size
background-position = <bg-position>#
background-size = <bg-size>#
<bg-size> = auto | cover | contain | <length>{1,2}默认值:background-size: auto
background-repeat
background-repeat = <repeat-style>#
<repeat-style> = repeat-x | repeat-y | [ repeat | no-repeat ]{1,2}background-attachment ⛔ / background-clip ⛔ / background-origin ⛔
⛔ 以上三个属性不可用
>
⚠️ `background` 简写部分有效:background简写展开后,background-attachment/background-origin/background-clip不生效,其余子属性(color/image/repeat/position/position-x/position-y/size)正常生效。
---
渐变语法
linear-gradient
<linear-gradient> = linear-gradient( [ <angle> | to <side-or-corner> , ]? <color-stop-list> )
<side-or-corner> = [ left | right ] || [ top | bottom ]
<color-stop-list> = <color-stop> [ , <color-stop> ]+
<color-stop> = <color> [ <length-percentage> [ <length-percentage> ]? ]?⚠️ 颜色停止位置仅支持 % 和固定长度单位(px、rpx 等)radial-gradient
<radial-gradient> = radial-gradient( circle [ <size> ]? [ at <position> ]? , <color-stop-list> )
<size> = closest-side | farthest-side | closest-corner | farthest-corner | <length>⚠️ 限制:
- 仅支持circle形状(不支持ellipse)
- 尺寸仅支持 px 单位- 颜色停止位置仅支持 % 单位conic-gradient
<conic-gradient> = conic-gradient( [ from <angle> ]? [ at <position> ]? , <angular-color-stop-list> )
<angular-color-stop-list> = <angular-color-stop> [ , <angular-color-stop> ]+
<angular-color-stop> = <color> [ <angle-percentage> [ <angle-percentage> ]? ]?
<angle-percentage> = <angle> | <percentage>✅ conic-gradient 完全支持,无额外限制。背景/遮罩多值限制
⚠️ 多值数量限制:
-background-image/mask-image最多支持 2 个值
- background-position 最多支持 2 组值- background-repeat 最多支持 2 组值- background-size 最多支持 2 组值---
边框属性
border-width / border-style / border-color
border-width = <line-width>{1,4}
<line-width> = thin | medium | thick | <length>
border-style = <line-style>{1,4}
<line-style> = none | solid | dotted | dashed
border-color = <color>{1,4}border-color 默认值:currentColor
border-radius / box-shadow
border-radius = <length>{1,4} [ / <length>{1,4} ]?
box-shadow = none | <shadow>#
<shadow> = inset? && <length>{2,4} && <color>?---
滤镜属性
filter / backdrop-filter
filter = none | <filter-function>
backdrop-filter = none | <filter-function>
<filter-function> = blur() | brightness() | contrast() | grayscale()
| hue-rotate() | invert() | opacity() | saturate() | sepia()⚠️ 不支持多个 filter 函数组合
⚠️ 不支持:url(),drop-shadow()
---
遮罩属性
mask-image / mask-size / mask-repeat / mask-position
mask-image = <mask-image-value>#
<mask-image-value> = none | <url> /* ⚠️ 渐变不支持,仅 url() 可用 */
mask-size = <bg-size># /* 默认 auto */
mask-repeat = <repeat-style># /* ⚠️ 非标准默认值: no-repeat(Web 标准默认 repeat) */
mask-position = <bg-position># /* ✅ 简写有效,自动展开为 x/y */
mask-position-x = <bg-position-value># /* 默认 center */
mask-position-y = <bg-position-value># /* 默认 center */✅mask-position简写有效:会自动展开为mask-position-x+mask-position-y。
⚠️ mask-image 最多支持 2 个值。mask-origin ⛔ / mask-clip ⛔ / mask-mode ⛔
⛔ 以上属性不可用
>
⚠️ `mask` 简写部分有效:mask简写展开后,mask-origin/mask-clip不生效,其余子属性(mask-image/repeat/position/position-x/position-y/size)正常生效。
---
本文档基于 Skyline 官方文档与实际测试生成。
Related skills
FAQ
What platform does skyline-wxss target?
skyline-wxss targets WeChat Mini Programs using the Skyline rendering engine, focusing on WXSS styling, flex layouts, and CSS patterns that perform well under Skyline constraints.
Why use skyline-wxss instead of generic CSS skills?
skyline-wxss encodes Skyline-specific WXSS rules and performance patterns that generic CSS skills omit, reducing unsupported properties and layout issues in WeChat mini programs.