Skip to content

Commit

Permalink
[change] W3C logical styles support
Browse files Browse the repository at this point in the history
* Support logical styles like 'marginInlineStart' and
  'insetInlineStart' via polyfills.
* Deprecate non-standard 'marginStart' etc. properties.

Ref #2379
  • Loading branch information
necolas committed Dec 27, 2022
1 parent 77798a9 commit fbc3495
Show file tree
Hide file tree
Showing 14 changed files with 439 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ describe.each([['concurrent'], ['legacy']])('AppRegistry', (mode) => {
"[stylesheet-group=\\"2\\"] {}",
".r-display-xoduu5 {display: inline-flex;}",
".r-flex-13awgt0 {flex: 1;}",
"[stylesheet-group=\\"2.2\\"] {}",
"[stylesheet-group=\\"3\\"] {}",
".r-bottom-1p0dtai {bottom: 0px;}",
".r-left-1d2f490 {left: 0px;}",
".r-pointerEvents-105ug2t {pointer-events: auto !important;}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('AppRegistry', () => {
[stylesheet-group=\\"2\\"]{}
.r-display-xoduu5{display:inline-flex;}
.r-flex-13awgt0{flex:1;}
[stylesheet-group=\\"2.2\\"]{}
[stylesheet-group=\\"3\\"]{}
.r-bottom-1p0dtai{bottom:0px;}
.r-left-1d2f490{left:0px;}
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('AppRegistry', () => {
[stylesheet-group=\\"2\\"]{}
.r-display-xoduu5{display:inline-flex;}
.r-flex-13awgt0{flex:1;}
[stylesheet-group=\\"2.2\\"]{}
[stylesheet-group=\\"3\\"]{}
.r-bottom-1p0dtai{bottom:0px;}
.r-left-1d2f490{left:0px;}
.r-pointerEvents-105ug2t{pointer-events:auto!important;}
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('AppRegistry', () => {
.r-borderWidth-1bee2fs{border-bottom-width:1234px;border-left-width:1234px;border-right-width:1234px;border-top-width:1234px;}
.r-display-xoduu5{display:inline-flex;}
.r-flex-13awgt0{flex:1;}
[stylesheet-group=\\"2.2\\"]{}
[stylesheet-group=\\"3\\"]{}
.r-backgroundColor-aot4c7{background-color:rgba(128,0,128,1.00);}
.r-bottom-1p0dtai{bottom:0px;}
.r-left-1d2f490{left:0px;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ describe('compiler/createReactDOMStyle', () => {
borderBottomWidth: 1,
borderWidth: 0,
marginTop: 50,
marginVertical: 25,
marginBlock: 25,
margin: 10,
overflow: 'hidden',
overscrollBehavior: 'contain',
paddingLeft: 50,
paddingHorizontal: 25,
paddingInline: 25,
padding: 10
};

Expand Down
Loading

0 comments on commit fbc3495

Please sign in to comment.