Skip to content

Commit

Permalink
[INTERNAL] Scopes: Add test for attribute selectors with quotes
Browse files Browse the repository at this point in the history
Reusing the existing tests for HTML queries by adding quotes to some of
the attribute selectors and compressing the CSS before parsing it.

This targets a regression in the @adobe/css fork of css as reported
here: adobe/css-tools#77
  • Loading branch information
RandomByte committed Dec 14, 2022
1 parent daf972e commit ae04155
Show file tree
Hide file tree
Showing 11 changed files with 124 additions and 89 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,30 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .testClass {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast.sapUiGrid th > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast.sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast .sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast.sapUiGrid td > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie] .fooContrast.sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast.sapUiGrid th > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast.sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast .sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast.sapUiGrid td > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .fooContrast th > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .fooContrast td > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .fooContrast th > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .fooContrast td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .fooContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .fooContrast td > .sapUiFormTitle {
color: #ffffff;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .testClass {
Expand All @@ -24,10 +24,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .fooContrast.sapUiGrid td > .sapUiFormTit
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .fooContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .fooContrast td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .fooContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .fooContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .fooContrast td > .sapUiFormTitle {
color: #ffffff;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .testClass {
Expand All @@ -24,14 +24,14 @@ html[dir=rtl][data-sap-ui-browser^=ed] .barContrast.sapUiGrid td > .sapUiFormTit
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .barContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .barContrast td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .barContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .barContrast td > .sapUiFormTitle {
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .barContrast .testClass,
html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .barContrast.testClass {
color: #ffffff;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sap-desktop-sapUiClass .testClass {
Expand All @@ -24,10 +24,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .barContrast.sapUiGrid td > .sapUiFormTit
color: #ffffff;
}

html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid .barContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid .barContrast td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid .barContrast td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .barContrast th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid .barContrast td > .sapUiFormTitle {
color: #ffffff;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #000000;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #000000;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed] .sapUiGrid td > .sapUiFormTitle {
color: #ffffff;
}
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ie].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^=ed].sapUiGrid td > .sapUiFormTitle {
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ie'].sapUiGrid td > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid th > .sapUiFormTitle,
html[dir=rtl][data-sap-ui-browser^='ed'].sapUiGrid td > .sapUiFormTitle {
color: #ffffff;
}

Expand Down

0 comments on commit ae04155

Please sign in to comment.