Unverified Commit c58f45f4 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Add Failing CSS Test Case (#10590)

* Add Failing CSS Test Case

* update tests
parent 56a45f06
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
"ora": "3.4.0", "ora": "3.4.0",
"path-to-regexp": "6.1.0", "path-to-regexp": "6.1.0",
"pnp-webpack-plugin": "1.5.0", "pnp-webpack-plugin": "1.5.0",
"postcss-flexbugs-fixes": "4.1.0", "postcss-flexbugs-fixes": "4.2.0",
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"prop-types": "15.7.2", "prop-types": "15.7.2",
......
...@@ -3,3 +3,7 @@ ...@@ -3,3 +3,7 @@
color: green; color: green;
} }
} }
.flex-parsing {
flex: 0 0 calc(50% - var(--vertical-gutter));
}
...@@ -163,7 +163,7 @@ describe('CSS Support', () => { ...@@ -163,7 +163,7 @@ describe('CSS Support', () => {
expect( expect(
cssContent.replace(/\/\*.*?\*\//g, '').trim() cssContent.replace(/\/\*.*?\*\//g, '').trim()
).toMatchInlineSnapshot( ).toMatchInlineSnapshot(
`"@media (min-width:480px) and (max-width:767px){::-webkit-input-placeholder{color:green}::-moz-placeholder{color:green}:-ms-input-placeholder{color:green}::-ms-input-placeholder{color:green}::placeholder{color:green}}"` `"@media (min-width:480px) and (max-width:767px){::-webkit-input-placeholder{color:green}::-moz-placeholder{color:green}:-ms-input-placeholder{color:green}::-ms-input-placeholder{color:green}::placeholder{color:green}}.flex-parsing{flex:0 0 calc(50% - var(--vertical-gutter))}"`
) )
// Contains a source map // Contains a source map
...@@ -184,13 +184,17 @@ describe('CSS Support', () => { ...@@ -184,13 +184,17 @@ describe('CSS Support', () => {
const { version, mappings, sourcesContent } = JSON.parse(cssMapContent) const { version, mappings, sourcesContent } = JSON.parse(cssMapContent)
expect({ version, mappings, sourcesContent }).toMatchInlineSnapshot(` expect({ version, mappings, sourcesContent }).toMatchInlineSnapshot(`
Object { Object {
"mappings": "AAAA,+CACE,4BACE,WACF,CAFA,mBACE,WACF,CAFA,uBACE,WACF,CAFA,wBACE,WACF,CAFA,cACE,WACF,CACF", "mappings": "AAAA,+CACE,4BACE,WACF,CAFA,mBACE,WACF,CAFA,uBACE,WACF,CAFA,wBACE,WACF,CAFA,cACE,WACF,CACF,CAEA,cACE,2CACF",
"sourcesContent": Array [ "sourcesContent": Array [
"@media (480px <= width < 768px) { "@media (480px <= width < 768px) {
::placeholder { ::placeholder {
color: green; color: green;
} }
} }
.flex-parsing {
flex: 0 0 calc(50% - var(--vertical-gutter));
}
", ",
], ],
"version": 3, "version": 3,
......
...@@ -4,3 +4,7 @@ $var: red; ...@@ -4,3 +4,7 @@ $var: red;
color: $var; color: $var;
} }
} }
.flex-parsing {
flex: 0 0 calc(50% - var(--vertical-gutter));
}
...@@ -163,7 +163,7 @@ describe('SCSS Support', () => { ...@@ -163,7 +163,7 @@ describe('SCSS Support', () => {
expect( expect(
cssContent.replace(/\/\*.*?\*\//g, '').trim() cssContent.replace(/\/\*.*?\*\//g, '').trim()
).toMatchInlineSnapshot( ).toMatchInlineSnapshot(
`".redText ::-webkit-input-placeholder{color:red}.redText ::-moz-placeholder{color:red}.redText :-ms-input-placeholder{color:red}.redText ::-ms-input-placeholder{color:red}.redText ::placeholder{color:red}"` `".redText ::-webkit-input-placeholder{color:red}.redText ::-moz-placeholder{color:red}.redText :-ms-input-placeholder{color:red}.redText ::-ms-input-placeholder{color:red}.redText ::placeholder{color:red}.flex-parsing{flex:0 0 calc(50% - var(--vertical-gutter))}"`
) )
// Contains a source map // Contains a source map
...@@ -184,7 +184,7 @@ describe('SCSS Support', () => { ...@@ -184,7 +184,7 @@ describe('SCSS Support', () => {
const { version, mappings, sourcesContent } = JSON.parse(cssMapContent) const { version, mappings, sourcesContent } = JSON.parse(cssMapContent)
expect({ version, mappings, sourcesContent }).toMatchInlineSnapshot(` expect({ version, mappings, sourcesContent }).toMatchInlineSnapshot(`
Object { Object {
"mappings": "AACA,qCAEI,SAHK,CACT,4BAEI,SAHK,CACT,gCAEI,SAHK,CACT,iCAEI,SAHK,CACT,uBAEI,SAHK", "mappings": "AACA,qCAEI,SAHK,CACT,4BAEI,SAHK,CACT,gCAEI,SAHK,CACT,iCAEI,SAHK,CACT,uBAEI,SAHK,CAIN,cAID,2CAA4C",
"sourcesContent": Array [ "sourcesContent": Array [
"$var: red; "$var: red;
.redText { .redText {
...@@ -192,6 +192,10 @@ describe('SCSS Support', () => { ...@@ -192,6 +192,10 @@ describe('SCSS Support', () => {
color: $var; color: $var;
} }
} }
.flex-parsing {
flex: 0 0 calc(50% - var(--vertical-gutter));
}
", ",
], ],
"version": 3, "version": 3,
......
...@@ -12486,12 +12486,12 @@ postcss-filter-plugins@^2.0.0: ...@@ -12486,12 +12486,12 @@ postcss-filter-plugins@^2.0.0:
dependencies: dependencies:
postcss "^5.0.4" postcss "^5.0.4"
postcss-flexbugs-fixes@4.1.0: postcss-flexbugs-fixes@4.2.0:
version "4.1.0" version "4.2.0"
resolved "https://registry.yarnpkg.com/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-4.1.0.tgz#e094a9df1783e2200b7b19f875dcad3b3aff8b20" resolved "https://registry.yarnpkg.com/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-4.2.0.tgz#662b3dcb6354638b9213a55eed8913bcdc8d004a"
integrity sha512-jr1LHxQvStNNAHlgco6PzY308zvLklh7SJVYuWUwyUQncofaAlD2l+P/gxKHOdqWKe7xJSkVLFF/2Tp+JqMSZA== integrity sha512-QRE0n3hpkxxS/OGvzOa+PDuy4mh/Jg4o9ui22/ko5iGYOG3M5dfJabjnAZjTdh2G9F85c7Hv8hWcEDEKW/xceQ==
dependencies: dependencies:
postcss "^7.0.0" postcss "^7.0.26"
postcss-focus-visible@^4.0.0: postcss-focus-visible@^4.0.0:
version "4.0.0" version "4.0.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment