Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS 存在三層大括號的結構時會在解析時抛出异常:Declaration missing '}' #1274

Closed
k8cchaha opened this issue Jun 27, 2024 · 1 comment
Labels
bug Something isn't working fixed Issue fixed style problem style problem

Comments

@k8cchaha
Copy link

问题描述

當 css 檔案存在三層大括號的結構時, css 解析會噴錯:
例如:
@layer primeng{{box-sizing:border-box}@media screen and (max-width: 769px){.p-datepicker table th,.p-datepicker table td{padding:.25rem}}}
或是
@layer primeng{
{box-sizing:border-box}@Keyframes p-component-overlay-leave-animation{0%{background-color:var(--maskbg)}to{background-color:transparent}}}

复现步骤

  1. 子應用的CSS樣式存在三層大括號
  2. 基座應用使用 Micro App 掛載子應用, 會在解析時拋出異常

上传截图

截圖 2024-06-27 10 19 51

复现仓库

https://k8cchaha.github.io/micro-app-feedback/app1

环境信息

  • micro-app版本:1.0.0-rc.5
  • 主应用前端框架&版本:任何前端框架&版本都會發生
  • 子应用前端框架&版本:任何前端框架&版本都會發生
  • 构建工具&版本:任何工具&版本都會發生
Copy link

Hello @k8cchaha. The issue you reported has been fixed. This issue will be closed. Thank you for your feedback.
您好 @k8cchaha,您反馈的问题已修复,该 issue 将要被关闭,感谢反馈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Issue fixed style problem style problem
Projects
None yet
Development

No branches or pull requests

2 participants