CSS Masking Level 1 CR Test Suite

SVG Clipping Path Sources (9 tests)

Test Refs Flags Info
+ 6 SVG Clipping Path Sources
+ 6.1 The clipPath element
clip-path-element-userspaceonuse-001 = CSS Masking: Test clip-path property and external clipPath reference with userSpaceOnUse - 1
  • The clip-path property takes an external reference to a clipPath element for clipping. On pass you should see a green box.
clip-path-element-userspaceonuse-002 = CSS Masking: Test clip-path property and external clipPath reference with userSpaceOnUse - 2
  • The clip-path property takes an reference to a clipPath element for clipping. On pass you should see a green with a blue border.
clip-path-element-userspaceonuse-003 = CSS Masking: Test clip-path property and external clipPath reference with userSpaceOnUse with percentage - 1
  • The clip-path property takes a reference to a clipPath element for clipping. Percentage values are relative to the viewport for userSpaceOnUse on clipPathUnits. On pass the left half of the site is white and the right half of the site is green.
clip-path-element-userspaceonuse-004 = CSS Masking: Test clip-path property and external clipPath reference with userSpaceOnUse with percentage - 2
  • The clip-path property takes a reference to a clipPath element for clipping. Percentage values are relative to the viewport for userSpaceOnUse on clipPathUnits. On pass the top half of the site is white and the bottom half of the site is green.
clip-rule-001 = CSS Masking: Test clip-rule property on polygon clip rule evenodd
  • The clipPath element takes the basic shape 'polygon' for clipping. The point list for the polygon creates a 'whole' with the dimension of the background. With the clip rule 'evenodd', this whole is clipped out. The clipping makes the green background of the parent div box visible. On pass you should see a green box with a blue border.
clip-rule-002 = CSS Masking: Test clip-rule property on polygon clip rule nonzero
  • The clipPath element takes the basic shape 'polygon' for clipping. The point list for the polygon creates a 'whole' with the dimension of the background. With the clip rule 'nonzero', this whole is clipped out. The clipping makes the green background of the parent div box visible. On pass you should see a green box with a blue border.
+ 6.2 Winding Rules: the clip-rule property
clip-rule-computed Script CSS Masking Module Level 1: getComputedStyle().clipRule
  • clip-rule computed value is as specified.
clip-rule-invalid Script CSS Masking Module Level 1: parsing clip-rule with invalid values
  • clip-rule supports only the grammar 'nonzero | evenodd'.
clip-rule-valid Script CSS Masking Module Level 1: parsing clip-rule with valid values
  • clip-rule supports the full grammar 'nonzero | evenodd'.