-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support `justify-content`, `align-self` in linear container Now these two properties could work in a linear container. We don't transforms the `justify-content` and `align-self` to css vars any more. The previous version of `@lynx-js/web-core` won't work with current `@lynx-js/web-core` after this change. * update
- Loading branch information
Showing
77 changed files
with
1,616 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@lynx-js/web-elements": minor | ||
"@lynx-js/web-style-transformer": patch | ||
"@lynx-js/web-elements-compat": patch | ||
--- | ||
|
||
feat: support `justify-content`, `align-self` in linear container | ||
|
||
Now these two properties could work in a linear container. | ||
|
||
We don't transforms the `justify-content` and `align-self` to css vars any more. | ||
|
||
The previous version of `@lynx-js/web-core` won't work with current `@lynx-js/web-core` after this change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.52 KB
....spec.ts-snapshots/basic-flex-column-align-items/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.2 KB
...t.spec.ts-snapshots/basic-flex-column-align-items/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 KB
...ct.spec.ts-snapshots/basic-flex-column-align-items/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.54 KB
...ots/basic-flex-column-container-items-align-self/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+19.9 KB
...hots/basic-flex-column-container-items-align-self/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 KB
...shots/basic-flex-column-container-items-align-self/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.64 KB
...xis-justify-content-start-end-with-direction-rtl/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.3 KB
...axis-justify-content-start-end-with-direction-rtl/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.52 KB
...-axis-justify-content-start-end-with-direction-rtl/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.67 KB
...xis-justify-content-start-end-with-direction-rtl/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.4 KB
...axis-justify-content-start-end-with-direction-rtl/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.55 KB
...-axis-justify-content-start-end-with-direction-rtl/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.52 KB
...pec.ts-snapshots/basic-linear-column-align-items/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.2 KB
...spec.ts-snapshots/basic-linear-column-align-items/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.37 KB
....spec.ts-snapshots/basic-linear-column-align-items/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 Bytes
(99%)
...s/basic-linear-column-container-items-align-self/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-601 Bytes
(97%)
...ts/basic-linear-column-container-items-align-self/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-38 Bytes
(98%)
...ots/basic-linear-column-container-items-align-self/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.56 KB
...sic-linear-column-container-items-layout-gravity/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.3 KB
...asic-linear-column-container-items-layout-gravity/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.39 KB
...basic-linear-column-container-items-layout-gravity/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.49 KB
...olumn-container-main-axis-justify-content-center/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
...column-container-main-axis-justify-content-center/index/index-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.32 KB
...-column-container-main-axis-justify-content-center/index/index-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.51 KB
...is-justify-content-right-left-with-direction-rtl/index/index-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.2 KB
...xis-justify-content-right-left-with-direction-rtl/index/index-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.37 KB
...axis-justify-content-right-left-with-direction-rtl/index/index-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.64 KB
...xis-justify-content-start-end-with-direction-rtl/index/index-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.3 KB
...axis-justify-content-start-end-with-direction-rtl/index/index-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.52 KB
...-axis-justify-content-start-end-with-direction-rtl/index/index-webkit-linux.png
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+2.55 KB
...is-justify-content-right-left-with-direction-rtl/index/index-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+21.3 KB
...xis-justify-content-right-left-with-direction-rtl/index/index-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.38 KB
...axis-justify-content-right-left-with-direction-rtl/index/index-webkit-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.67 KB
...xis-justify-content-start-end-with-direction-rtl/index/index-chromium-linux.png
Oops, something went wrong.
Binary file added
BIN
+22.4 KB
...axis-justify-content-start-end-with-direction-rtl/index/index-firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.55 KB
...-axis-justify-content-start-end-with-direction-rtl/index/index-webkit-linux.png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
.../react.spec.ts-snapshots/x-refresh-view/demo/pull-down/index-chromium-linux.png
Oops, something went wrong.
Binary file modified
BIN
+42 Bytes
(100%)
...ts/react.spec.ts-snapshots/x-refresh-view/demo/pull-up/index-chromium-linux.png
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
packages/web-platform/web-tests/tests/react/basic-flex-column-align-items/index.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
// Copyright 2024 The Lynx Authors. All rights reserved. | ||
// Licensed under the Apache License Version 2.0 that can be found in the | ||
// LICENSE file in the root directory of this source tree. | ||
*/ | ||
.container { | ||
display: flex; | ||
} | ||
.vertical { | ||
flex-direction: column; | ||
width: 200px; | ||
height: 150px; | ||
background-color: pink; | ||
} | ||
.vertical-reverse { | ||
flex-direction: column-reverse; | ||
width: 200px; | ||
height: 150px; | ||
background-color: #99ddaa; | ||
} | ||
.horizontal { | ||
flex-direction: row; | ||
width: 150px; | ||
height: 100px; | ||
background-color: pink; | ||
} | ||
.horizontal-reverse { | ||
flex-direction: row-reverse; | ||
width: 150px; | ||
height: 100px; | ||
background-color: #99ddaa; | ||
} | ||
.start { | ||
align-items: start; | ||
} | ||
.end { | ||
align-items: end; | ||
} | ||
.flex-start { | ||
align-items: flex-start; | ||
} | ||
.flex-end { | ||
align-items: flex-end; | ||
} | ||
.center { | ||
align-items: center; | ||
} | ||
.stretch { | ||
align-items: stretch; | ||
} | ||
.container-item { | ||
linear-weight: 0; | ||
width: 50px; | ||
height: 50px; | ||
} | ||
.rtl { | ||
direction: lynx-rtl; | ||
} |
60 changes: 60 additions & 0 deletions
60
packages/web-platform/web-tests/tests/react/basic-flex-column-align-items/index.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
// Copyright 2024 The Lynx Authors. All rights reserved. | ||
// Licensed under the Apache License Version 2.0 that can be found in the | ||
// LICENSE file in the root directory of this source tree. | ||
*/ | ||
import { Component, root } from '@lynx-js/react'; | ||
import './index.css'; | ||
class Page extends Component { | ||
render() { | ||
return ( | ||
<view style='display:flex;flex-direction:column;'> | ||
<view class='container start horizontal'> | ||
<view class='container-item' style='background-color:red;' /> | ||
<view class='container-item' style='background-color:green;' /> | ||
<view class='container-item' style='background-color:blue;' /> | ||
</view> | ||
|
||
<view class='container end horizontal'> | ||
<view class='container-item' style='background-color:red;' /> | ||
<view class='container-item' style='background-color:green;' /> | ||
<view class='container-item' style='background-color:blue;' /> | ||
</view> | ||
|
||
<view class='container flex-start horizontal'> | ||
<view class='container-item' style='background-color:red;' /> | ||
<view class='container-item' style='background-color:green;' /> | ||
<view class='container-item' style='background-color:blue;' /> | ||
</view> | ||
|
||
<view class='container flex-end horizontal'> | ||
<view class='container-item' style='background-color:red;' /> | ||
<view class='container-item' style='background-color:green;' /> | ||
<view class='container-item' style='background-color:blue;' /> | ||
</view> | ||
|
||
<view class='container center horizontal'> | ||
<view class='container-item' style='background-color:red;' /> | ||
<view class='container-item' style='background-color:green;' /> | ||
<view class='container-item' style='background-color:blue;' /> | ||
</view> | ||
|
||
<view class='container stretch horizontal'> | ||
<view | ||
class='container-item' | ||
style='background-color:red; height:auto' | ||
/> | ||
<view | ||
class='container-item' | ||
style='background-color:green; height:auto' | ||
/> | ||
<view | ||
class='container-item' | ||
style='background-color:blue; height:auto' | ||
/> | ||
</view> | ||
</view> | ||
); | ||
} | ||
} | ||
root.render(<Page></Page>); |
Oops, something went wrong.