tree: 6b13b89e054950861a2ac193d3d8c5c9f4447bcf [path history] [tgz]
  1. .gitignore
  2. CSS2/
  3. OWNERS
  4. README.md
  5. build-css-testsuites.sh
  6. css-align/
  7. css-animations/
  8. css-backgrounds/
  9. css-box/
  10. css-break/
  11. css-cascade/
  12. css-color-adjust/
  13. css-color/
  14. css-conditional/
  15. css-contain/
  16. css-content/
  17. css-device-adapt/
  18. css-display/
  19. css-easing/
  20. css-env/
  21. css-fill-stroke/
  22. css-flexbox/
  23. css-font-loading/
  24. css-fonts/
  25. css-forced-color-adjust/
  26. css-grid/
  27. css-images/
  28. css-inline/
  29. css-layout-api/
  30. css-lists/
  31. css-logical/
  32. css-masking/
  33. css-multicol/
  34. css-namespaces/
  35. css-overflow/
  36. css-overscroll-behavior/
  37. css-paint-api/
  38. css-parser-api/
  39. css-position/
  40. css-properties-values-api/
  41. css-pseudo/
  42. css-rhythm/
  43. css-scoping/
  44. css-scroll-anchoring/
  45. css-scroll-snap/
  46. css-scrollbars/
  47. css-shadow-parts/
  48. css-shapes/
  49. css-size-adjust/
  50. css-sizing/
  51. css-style-attr/
  52. css-syntax/
  53. css-tables/
  54. css-text-decor/
  55. css-text/
  56. css-timing/
  57. css-transforms/
  58. css-transitions/
  59. css-typed-om/
  60. css-ui/
  61. css-values/
  62. css-variables/
  63. css-will-change/
  64. css-writing-modes/
  65. cssom-view/
  66. cssom/
  67. filter-effects/
  68. geometry/
  69. mediaqueries/
  70. motion/
  71. reference/
  72. requirements.txt
  73. selectors/
  74. support/
  75. vendor-imports/
third_party/blink/web_tests/external/wpt/css/README.md

Introduction

This directory contains testsuites for CSS WG specifications, including ones that do not strictly speaking define CSS features, e.g., Geometry Interfaces.

The directories should be named like the specification's shortname, but without any level suffix.

As the test harness relies on the largely undocumented old CSS build system, this directory has a number of test requirements specific to it:

  • support files for a given test must live in an adjacent support directory;

  • tests must have a <link rel=help> pointing to what they are testing;

  • for each spec so linked, test filenames must be unique; and

  • support and reference files must have unique filenames within the entire css directory.

vendor-imports/ Directory

vendor-imports/ is a legacy directory where third parties historically imported their tests that originate and are maintained in an external repo. Files in this directory should never be modified in this repo, but should go through the vendor's process to be imported here.

Importing Old Branches

Given an old branch in git based against the old csswg-test repository, it can be moved over to the merged repo in one of two ways:

  • (Recommended:) Rebasing on top of web-platform-tests: with the old branch checked out, run git rebase -Xsubtree=css/ origin/master (or similar, depending on the name of the upstream remote).

  • Merging to web-platform-tests: with web-platform-tests' master branch checked out, run git merge -Xsubtree=css/ my_shiny_branch (or similar, depending on the name of your branch).

If you have a branch/bookmark in Mercurial, the process is more complicated:

  1. From the Mercurial repo, run hg export --git -r 'outgoing()' > foo.patch. This will export all the changeset shown in hg log -r 'outgoing()'; it's recommended you check this is the right set of changesets before continuing!

  2. Move to the git repo, and create a new branch based on web-platform-tests' master; e.g., git checkout -b hg-import origin/master (or similar, depending on the name of the upstream remote).

  3. Download hg-patch-to-git-patch and run python2 hg-patch-to-git-patch < foo.patch > bar.patch (where foo.patch is the path to the foo.patch you exported above).

  4. Run git am --directory=css/ < bar.patch.