File tree Expand file tree Collapse file tree
packages/framer-motion/src
components/Reorder/__tests__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ describe("Reorder", () => {
1313 const staticMarkup = renderToStaticMarkup ( < Component /> )
1414 const string = renderToString ( < Component /> )
1515
16- const expectedMarkup = `<article><main draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></main></article>`
16+ const expectedMarkup = `<article style="overflow-anchor:none" ><main draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></main></article>`
1717
1818 expect ( staticMarkup ) . toBe ( expectedMarkup )
1919 expect ( string ) . toBe ( expectedMarkup )
@@ -32,7 +32,7 @@ describe("Reorder", () => {
3232 const staticMarkup = renderToStaticMarkup ( < Component /> )
3333 const string = renderToString ( < Component /> )
3434
35- const expectedMarkup = `<article><main draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></main></article>`
35+ const expectedMarkup = `<article style="overflow-anchor:none" ><main draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></main></article>`
3636
3737 expect ( staticMarkup ) . toBe ( expectedMarkup )
3838 expect ( string ) . toBe ( expectedMarkup )
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ function runTests(render: (components: any) => string) {
285285 const div = render ( < Component /> )
286286
287287 expect ( div ) . toBe (
288- `<ul><li draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></li></ul>`
288+ `<ul style="overflow-anchor:none" ><li draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></li></ul>`
289289 )
290290 } )
291291
@@ -301,7 +301,7 @@ function runTests(render: (components: any) => string) {
301301 const div = render ( < Component /> )
302302
303303 expect ( div ) . toBe (
304- `<ul><li style="z-index:unset;transform:none"></li></ul>`
304+ `<ul style="overflow-anchor:none" ><li style="z-index:unset;transform:none"></li></ul>`
305305 )
306306 } )
307307
@@ -317,7 +317,7 @@ function runTests(render: (components: any) => string) {
317317 const div = render ( < Component /> )
318318
319319 expect ( div ) . toBe (
320- `<div><div draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></div></div>`
320+ `<div style="overflow-anchor:none" ><div draggable="false" style="z-index:unset;transform:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:pan-x"></div></div>`
321321 )
322322 } )
323323
You can’t perform that action at this time.
0 commit comments