[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\nindent_style = tab\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n\n[*.yml]\nindent_style = space\nindent_size = 2\n"
  },
  {
    "path": ".gitattributes",
    "content": "* text=auto eol=lf\n"
  },
  {
    "path": ".github/security.md",
    "content": "# Security Policy\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\n"
  },
  {
    "path": ".github/workflows/main.yml",
    "content": "name: CI\non:\n  - push\n  - pull_request\njobs:\n  test:\n    name: Node.js ${{ matrix.node-version }}\n    runs-on: macos-latest\n    strategy:\n      fail-fast: false\n      matrix:\n        node-version:\n          - lts/*\n          - lts/-1\n    steps:\n      - uses: actions/checkout@v4\n      - uses: actions/setup-node@v4\n        with:\n          node-version: ${{ matrix.node-version }}\n      - run: npm install\n      - run: npm test\n"
  },
  {
    "path": ".gitignore",
    "content": "node_modules\nyarn.lock\n"
  },
  {
    "path": ".npmrc",
    "content": "package-lock=false\n"
  },
  {
    "path": "license",
    "content": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)\nCopyright (c) Jonathan Neal\nCopyright (c) Nicolas Gallagher\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  {
    "path": "modern-normalize.css",
    "content": "/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */\n\n/*\nDocument\n========\n*/\n\n/**\nUse a better box model (opinionated).\n*/\n\n*,\n::before,\n::after {\n\tbox-sizing: border-box;\n}\n\n/**\n1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n2. Correct the line height in all browsers.\n3. Prevent adjustments of font size after orientation changes in iOS.\n4. Use a more readable tab size (opinionated).\n*/\n\nhtml {\n\tfont-family:\n\t\tsystem-ui,\n\t\t'Segoe UI',\n\t\tRoboto,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\t'Apple Color Emoji',\n\t\t'Segoe UI Emoji'; /* 1 */\n\tline-height: 1.15; /* 2 */\n\t-webkit-text-size-adjust: 100%; /* 3 */\n\ttab-size: 4; /* 4 */\n}\n\n/*\nSections\n========\n*/\n\n/**\nRemove the margin in all browsers.\n*/\n\nbody {\n\tmargin: 0;\n}\n\n/*\nText-level semantics\n====================\n*/\n\n/**\nAdd the correct font weight in Chrome and Safari.\n*/\n\nb,\nstrong {\n\tfont-weight: bolder;\n}\n\n/**\n1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n2. Correct the odd 'em' font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n\tfont-family:\n\t\tui-monospace,\n\t\tSFMono-Regular,\n\t\tConsolas,\n\t\t'Liberation Mono',\n\t\tMenlo,\n\t\tmonospace; /* 1 */\n\tfont-size: 1em; /* 2 */\n}\n\n/**\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n\tfont-size: 80%;\n}\n\n/**\nPrevent 'sub' and 'sup' elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n\tfont-size: 75%;\n\tline-height: 0;\n\tposition: relative;\n\tvertical-align: baseline;\n}\n\nsub {\n\tbottom: -0.25em;\n}\n\nsup {\n\ttop: -0.5em;\n}\n\n/*\nTabular data\n============\n*/\n\n/**\nCorrect table border color inheritance in Chrome and Safari. (https://issues.chromium.org/issues/40615503, https://bugs.webkit.org/show_bug.cgi?id=195016)\n*/\n\ntable {\n\tborder-color: currentcolor;\n}\n\n/*\nForms\n=====\n*/\n\n/**\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n\tfont-family: inherit; /* 1 */\n\tfont-size: 100%; /* 1 */\n\tline-height: 1.15; /* 1 */\n\tmargin: 0; /* 2 */\n}\n\n/**\nCorrect the inability to style clickable types in iOS and Safari.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n\t-webkit-appearance: button;\n}\n\n/**\nRemove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.\n*/\n\nlegend {\n\tpadding: 0;\n}\n\n/**\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n\tvertical-align: baseline;\n}\n\n/**\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n\theight: auto;\n}\n\n/**\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n\t-webkit-appearance: textfield; /* 1 */\n\toutline-offset: -2px; /* 2 */\n}\n\n/**\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n\t-webkit-appearance: none;\n}\n\n/**\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to 'inherit' in Safari.\n*/\n\n::-webkit-file-upload-button {\n\t-webkit-appearance: button; /* 1 */\n\tfont: inherit; /* 2 */\n}\n\n/*\nInteractive\n===========\n*/\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n\tdisplay: list-item;\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n\t\"name\": \"modern-normalize\",\n\t\"version\": \"3.0.1\",\n\t\"description\": \"Normalize browsers' default style\",\n\t\"license\": \"MIT\",\n\t\"repository\": \"sindresorhus/modern-normalize\",\n\t\"funding\": \"https://github.com/sponsors/sindresorhus\",\n\t\"author\": {\n\t\t\"name\": \"Sindre Sorhus\",\n\t\t\"email\": \"sindresorhus@gmail.com\",\n\t\t\"url\": \"https://sindresorhus.com\"\n\t},\n\t\"main\": \"modern-normalize.css\",\n\t\"style\": \"modern-normalize.css\",\n\t\"sideEffects\": true,\n\t\"engines\": {\n\t\t\"node\": \">=6\"\n\t},\n\t\"scripts\": {\n\t\t\"test\": \"npm run test:stylelint\",\n\t\t\"test:all\": \"npm run test:stylelint && npm run test:chrome && npm run test:firefox && npm run test:safari\",\n\t\t\"test:stylelint\": \"stylelint modern-normalize.css\",\n\t\t\"test:chrome\": \"testcafe chrome:headless test/acceptance/chrome --app \\\"http-server . --silent\\\"\",\n\t\t\"test:firefox\": \"testcafe firefox:headless test/acceptance/firefox --app \\\"http-server . --silent\\\"\",\n\t\t\"test:safari\": \"testcafe safari test/acceptance/safari --app \\\"http-server . --silent\\\"\",\n\t\t\"version\": \"replace-in-files --regex='v\\\\d+\\\\.\\\\d+\\\\.\\\\d+' --replacement=v$npm_package_version modern-normalize.css && git add .\"\n\t},\n\t\"files\": [\n\t\t\"modern-normalize.css\"\n\t],\n\t\"keywords\": [\n\t\t\"normalize\",\n\t\t\"css\",\n\t\t\"reset\",\n\t\t\"browser\",\n\t\t\"style\"\n\t],\n\t\"devDependencies\": {\n\t\t\"http-server\": \"^14.1.1\",\n\t\t\"replace-in-files-cli\": \"^3.0.0\",\n\t\t\"stylelint\": \"^16.8.1\",\n\t\t\"stylelint-config-xo\": \"^1.0.2\",\n\t\t\"testcafe\": \"^3.6.2\"\n\t},\n\t\"stylelint\": {\n\t\t\"extends\": \"stylelint-config-xo\",\n\t\t\"rules\": {\n\t\t\t\"no-duplicate-selectors\": null,\n\t\t\t\"no-descending-specificity\": null,\n\t\t\t\"property-no-vendor-prefix\": null\n\t\t}\n\t}\n}\n"
  },
  {
    "path": "readme.md",
    "content": "<div align=\"center\">\n\t<img src=\"media/logo.svg\" alt=\"modern-normalize\">\n\t<br>\n\t<br>\n</div>\n\n## Differences from [`normalize.css`](https://github.com/necolas/normalize.css)\n\n- Smaller\n- Includes only normalizations for the latest Chrome, Firefox, and Safari\n- [Sets `box-sizing: border-box`](https://www.paulirish.com/2012/box-sizing-border-box-ftw/)\n- [Improves consistency of default fonts](https://github.com/sindresorhus/modern-normalize/issues/3)\n- [Sets a more readable tab size](https://github.com/sindresorhus/modern-normalize/issues/17)\n- Fully tested\n- Maintained\n\nIf you have questions about the source, check out the [original source](https://github.com/necolas/normalize.css/blame/master/normalize.css) and [this](https://github.com/necolas/normalize.css#extended-details-and-known-issues) for details.\n\n[**The goal of this project is to make itself obsolete.**](https://github.com/sindresorhus/modern-normalize/issues/2)\n\n## Browser support\n\n- Latest Chrome\n- Latest Firefox\n- Latest Safari\n\n## Install\n\n```sh\nnpm install modern-normalize\n```\n\n###### Download\n\n- [Normal](https://cdn.jsdelivr.net/npm/modern-normalize/modern-normalize.css)\n- [Minified](https://cdn.jsdelivr.net/npm/modern-normalize/modern-normalize.min.css)\n\n###### CDN\n\n- [jsdelivr](https://www.jsdelivr.com/package/npm/modern-normalize)\n- [unpkg](https://unpkg.com/modern-normalize)\n- [cdnjs](https://cdnjs.com/libraries/modern-normalize)\n\n## Usage\n\n```css\n@import 'node_modules/modern-normalize/modern-normalize.css';\n```\n\nor\n\n```html\n<link rel=\"stylesheet\" href=\"node_modules/modern-normalize/modern-normalize.css\">\n```\n\n## FAQ\n\n### Can you provide Sass, Less, etc, ports?\n\nThere's absolutely no reason to have separate ports for these. They are just CSS supersets and can import CSS directly.\n\n## Related\n\n- [sass-extras](https://github.com/sindresorhus/sass-extras) - Useful utilities for working with Sass\n"
  },
  {
    "path": "test/acceptance/chrome/rules.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Chrome Rules Tests`\n\t.page `http://localhost:8080/test/page/with-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).eql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).eql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).eql('18.4px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('text-size-adjust')).eql('100%');\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"`);\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).eql('underline dotted rgb(0, 0, 0)');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).eql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).eql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).eql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).eql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).eql('12.8px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).eql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).eql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).eql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).eql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).eql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).eql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).eql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).eql('18.4px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button');\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.6px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).eql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).eql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('textfield');\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('0px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).eql('list-item');\n});\n"
  },
  {
    "path": "test/acceptance/chrome/validation.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Chrome Validation Tests`\n\t.page `http://localhost:8080/test/page/without-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).notEql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).notEql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).notEql('18.4px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('text-size-adjust')).notEql('100%');\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).notEql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"');\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).eql('underline dotted rgb(0, 0, 0)');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).notEql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).notEql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).notEql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).notEql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).notEql('12.8px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).notEql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).notEql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).notEql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).notEql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).notEql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).notEql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).notEql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).notEql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).notEql('18.4px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button')\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button')\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button');\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.6px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).notEql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).notEql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).notEql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('textfield');\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('0px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).notEql('list-item');\n});\n"
  },
  {
    "path": "test/acceptance/firefox/rules.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Firefox Rules Tests`\n\t.page `http://localhost:8080/test/page/with-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).eql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).eql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).eql('18.4px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('text-size-adjust')).eql(undefined);\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"`);\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).eql('underline dotted rgb(0, 0, 0)');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).eql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).eql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).eql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).eql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).eql('12.8px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).eql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).eql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).eql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).eql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).eql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).eql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).eql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).eql('18.4px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined);\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.6px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).eql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).eql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined);\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('-2px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).eql('list-item');\n});\n"
  },
  {
    "path": "test/acceptance/firefox/validation.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Firefox Validation Tests`\n\t.page `http://localhost:8080/test/page/without-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).notEql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).notEql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).notEql('18.4px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('text-size-adjust')).notEql('100%');\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).notEql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"');\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).eql('underline dotted rgb(0, 0, 0)');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).eql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).eql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).notEql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).notEql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).notEql('12.8px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).notEql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).notEql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).notEql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).notEql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).notEql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).notEql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).notEql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).notEql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).notEql('18.4px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined)\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined);\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.6px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).notEql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).notEql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).notEql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql(undefined);\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('0px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).notEql('list-item');\n});\n"
  },
  {
    "path": "test/acceptance/safari/rules.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Safari Rules Tests`\n\t.page `http://localhost:8080/test/page/with-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).eql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).eql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).eql('18px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t// TODO: Check behavior of `-webkit-text-size-adjust` changing to auto in Safari\n\t\t.expect(Selector('html').getStyleProperty('-webkit-text-size-adjust')).eql('auto');\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).eql(`system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"`);\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).eql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\t// TODO: Why `text-decoration` is none?\n\t// await t\n\t// \t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).eql('underline dotted');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).eql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).eql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).eql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).eql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).eql('12.800000190734863px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).eql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).eql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).eql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).eql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).eql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).eql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).eql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).eql('18px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).eql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).eql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button');\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.599999904632568px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).eql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).eql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('textfield');\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('0px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).eql('list-item');\n});\n"
  },
  {
    "path": "test/acceptance/safari/validation.ts",
    "content": "import {Selector} from 'testcafe';\n\nfixture `Safari Validation Tests`\n\t.page `http://localhost:8080/test/page/without-css.html`;\n\ntest('Use a better box model (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('box-sizing')).notEql('border-box');\n});\n\ntest('Use a more readable tab size (opinionated).', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('tab-size')).notEql('4');\n});\n\ntest('Correct the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('html').getStyleProperty('font-size')).eql('16px')\n\t\t.expect(Selector('html').getStyleProperty('line-height')).eql('18px');\n});\n\ntest('Prevent adjustments of font size after orientation changes in iOS.', async t => {\n\tawait t\n\t\t// TODO: check behavior of -webkit-text-size-adjust changing to auto in safari\n\t\t.expect(Selector('html').getStyleProperty('-webkit-text-size-adjust')).eql('auto');\n});\n\ntest('Remove the margin in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('margin-top')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-right')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-bottom')).notEql('0px')\n\t\t.expect(Selector('body').getStyleProperty('margin-left')).notEql('0px');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('body').getStyleProperty('font-family')).notEql('system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"');\n});\n\ntest('<hr> should be the correct height.', async t => {\n\tawait t\n\t\t.expect(Selector('hr[data-test--hr]').getStyleProperty('height')).notEql('2px');\n});\n\ntest('Add the correct text decoration in Safari.', async t => {\n\t// await t\n\t// \t.expect(Selector('abbr[data-test--abbr]').getStyleProperty('text-decoration')).notEql('underline dotted');\n});\n\ntest('Add the correct font weight in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('b[data-test--bold]').getStyleProperty('font-weight')).notEql('900')\n\t\t.expect(Selector('strong[data-test--bold]').getStyleProperty('font-weight')).notEql('900');\n});\n\ntest('Improve consistency of default fonts in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-family')).notEql('ui-monospace, SFMono-Regular, Consolas, \"Liberation Mono\", Menlo, monospace');\n});\n\ntest('Correct the odd `em` font sizing in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--code]').getStyleProperty('font-size')).notEql('16px');\n});\n\ntest('Add the correct font size in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--small]').getStyleProperty('font-size')).notEql('12.800000190734863px');\n});\n\ntest('Prevent `sub` and `sup` elements from affecting the line height in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('font-size')).notEql('12px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('line-height')).notEql('0px')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('position')).notEql('relative')\n\t\t.expect(Selector('[data-test--subsup]').getStyleProperty('vertical-align')).notEql('baseline')\n\t\t.expect(Selector('sub[data-test--subsup]').getStyleProperty('bottom')).notEql('-3px')\n\t\t.expect(Selector('sup[data-test--subsup]').getStyleProperty('top')).notEql('-6px');\n});\n\ntest('Change the font styles in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-family')).notEql('MYCUSTOMFONT')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('font-size')).notEql('16px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('line-height')).notEql('18px');\n});\n\ntest('Remove the margin in Firefox and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-top')).notEql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-right')).notEql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-bottom')).notEql('0px')\n\t\t.expect(Selector('[data-test--forms-1]').getStyleProperty('margin-left')).notEql('0px');\n});\n\ntest('Text transform should not be inherited.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('text-transform')).eql('none')\n\t\t.expect(Selector('select[data-test--forms-1]').getStyleProperty('text-transform')).eql('none');\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('button[data-test--forms-1]').getStyleProperty('-webkit-appearance')).eql('button')\n\t\t.expect(Selector('[type=\"button\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button')\n\t\t.expect(Selector('[type=\"reset\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button')\n\t\t.expect(Selector('[type=\"submit\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('button');\n});\n\ntest('Correct the padding in Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-top')).eql('5.599999904632568px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-right')).eql('12px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('10px')\n\t\t.expect(Selector('fieldset[data-test--forms-2]').getStyleProperty('padding-left')).eql('12px');\n});\n\ntest('Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.', async t => {\n\tawait t\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-top')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-right')).notEql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-bottom')).eql('0px')\n\t\t.expect(Selector('legend[data-test--forms-2]').getStyleProperty('padding-left')).notEql('0px');\n});\n\ntest('Add the correct vertical alignment in Chrome and Firefox.', async t => {\n\tawait t\n\t\t.expect(Selector('progress[data-test--forms-2]').getStyleProperty('vertical-align')).notEql('baseline');\n});\n\ntest('Correct the cursor style of increment and decrement buttons in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the odd appearance in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('-webkit-appearance')).notEql('textfield');\n});\n\ntest('Correct the outline style in Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('[type=\"search\"][data-test--forms-1]').getStyleProperty('outline-offset')).eql('0px');\n});\n\ntest('Remove the inner padding in Chrome and Safari on macOS.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Correct the inability to style clickable types in iOS and Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Change font properties to `inherit` in Safari.', async t => {\n\t// TODO: Pseudo-elements selector not supported by testcafe (See https://github.com/DevExpress/testcafe/issues/2813).\n});\n\ntest('Add the correct display in Chrome and Safari.', async t => {\n\tawait t\n\t\t.expect(Selector('summary[data-test--interactive]').getStyleProperty('display')).notEql('list-item');\n});\n"
  },
  {
    "path": "test/page/with-css.html",
    "content": "<html>\n\t<head>\n\t\t<link rel=\"stylesheet\" href=\"/modern-normalize.css\">\n\t</head>\n\t<body>\n\t\t<hr data-test--hr />\n\t\t<abbr data-test--abbr title=\"HyperText Markup Language\">HTML</abbr>\n\t\t<div style=\"font-weight: 700\">\n\t\t\t<b data-test--bold>BOLD</b>\n\t\t\t<strong data-test--bold>BOLD</strong>\n\t\t</div>\n\t\t<code data-test--code></code>\n\t\t<kbd data-test--code></kbd>\n\t\t<samp data-test--code></samp>\n\t\t<pre data-test--code></pre>\n\t\t<small data-test--small></small>\n\t\t<sub data-test--subsup></sub>\n\t\t<sup data-test--subsup></sup>\n\t\t<div style=\"font-family: MYCUSTOMFONT\">\n\t\t\t<button data-test--forms-1></button>\n\t\t\t<input data-test--forms-1>\n\t\t\t<input data-test--forms-1 type=\"text\">\n\t\t\t<input data-test--forms-1 type=\"number\">\n\t\t\t<input data-test--forms-1 type=\"search\">\n\t\t\t<optgroup data-test--forms-1></optgroup>\n\t\t\t<select data-test--forms-1></select>\n\t\t\t<textarea data-test--forms-1></textarea>\n\t\t\t<input data-test--forms-1 type=\"button\">\n\t\t\t<input data-test--forms-1 type=\"reset\">\n\t\t\t<input data-test--forms-1 type=\"submit\">\n\t\t\t<button data-test--forms-1 type=\"button\"></button>\n\t\t\t<button data-test--forms-1 type=\"reset\"></button>\n\t\t\t<button data-test--forms-1 type=\"submit\"></button>\n\t\t\t<fieldset data-test--forms-2></fieldset>\n\t\t\t<legend data-test--forms-2></legend>\n\t\t\t<progress data-test--forms-2></progress>\n\t\t</div>\n\t\t<summary data-test--interactive></summary>\n\t</body>\n</html>\n"
  },
  {
    "path": "test/page/without-css.html",
    "content": "<html>\n\t<body>\n\t\t<hr data-test--hr />\n\t\t<abbr data-test--abbr title=\"HyperText Markup Language\">HTML</abbr>\n\t\t<div style=\"font-weight: 700\">\n\t\t\t<b data-test--bold>BOLD</b>\n\t\t\t<strong data-test--bold>BOLD</strong>\n\t\t</div>\n\t\t<code data-test--code></code>\n\t\t<kbd data-test--code></kbd>\n\t\t<samp data-test--code></samp>\n\t\t<pre data-test--code></pre>\n\t\t<small data-test--small></small>\n\t\t<sub data-test--subsup></sub>\n\t\t<sup data-test--subsup></sup>\n\t\t<div style=\"font-family: MYCUSTOMFONT\">\n\t\t\t<button data-test--forms-1></button>\n\t\t\t<input data-test--forms-1>\n\t\t\t<input data-test--forms-1 type=\"text\">\n\t\t\t<input data-test--forms-1 type=\"number\">\n\t\t\t<input data-test--forms-1 type=\"search\">\n\t\t\t<optgroup data-test--forms-1></optgroup>\n\t\t\t<select data-test--forms-1></select>\n\t\t\t<textarea data-test--forms-1></textarea>\n\t\t\t<input data-test--forms-1 type=\"button\">\n\t\t\t<input data-test--forms-1 type=\"reset\">\n\t\t\t<input data-test--forms-1 type=\"submit\">\n\t\t\t<button data-test--forms-1 type=\"button\"></button>\n\t\t\t<button data-test--forms-1 type=\"reset\"></button>\n\t\t\t<button data-test--forms-1 type=\"submit\"></button>\n\t\t\t<fieldset data-test--forms-2></fieldset>\n\t\t\t<legend data-test--forms-2></legend>\n\t\t\t<progress data-test--forms-2></progress>\n\t\t</div>\n\t\t<summary data-test--interactive></summary>\n\t</body>\n</html>\n"
  }
]