Skip to content

Commit

Permalink
chore: update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Dec 30, 2021
1 parent bd038e7 commit f474715
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/contributors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion dev/children/react16/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<link rel="stylesheet" href="http://127.0.0.1:8080/test.css">
<div id="root"></div>
</body>
<script>
Expand Down
6 changes: 6 additions & 0 deletions dev/children/react16/src/pages/page1/page1.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
/* 这两个规则同时出现,会导致CSSRules异常 */
border: 1px solid var(--color-a);
border-top-color: var(--color-b);

/* 非var变量正常渲染 */
/*
border: 1px solid red;
border-top-color: yellow;
*/
}

/*
Expand Down

0 comments on commit f474715

Please sign in to comment.