Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
scripthunter7 committed Oct 18, 2023
1 parent 9d5dd3e commit 7d9c9ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export type PseudoValues = { [key: string]: TokenData[] };
* @param values Values to shift
* @param shift Amount to shift by
* @returns Shifted values
* @note Also mutates the input
*/
const shiftValues = (values: PseudoValues, shift: number): PseudoValues => {
const result: PseudoValues = {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ const PSEUDO_NAMES = [
];

const PSEUDO_VALUES: PseudoValues = {
// simple XPath
...generateDelimStream([
String.raw`:matches-css(width:720px)`,
String.raw`:matches-css(width: 720px)`,
String.raw`:matches-css(background-image: /^url\("data:image\/gif;base64.+/)`,
String.raw`*:matches-css( background-image: /^url\("data:image\/gif;base64.+/ ) + a[href="https://www.example.com/"]`,
String.raw`:matches-css( background-image: /^url\("data:image\/gif;base64.+/ ) + a[href="https://www.example.com/"]`,
String.raw`:matches-css(background-image:url(data:*))`,
]),
};
Expand Down

0 comments on commit 7d9c9ed

Please sign in to comment.