Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions features/paint-order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: paint-order
description: "The `paint-order` CSS property sets the z-order of strokes, fills, and (in SVG content) markers. For example, `paint-order: markers stroke fill;` draws the markers, then stroke on top of markers, then fill on top of both markers and stroke."
spec: https://svgwg.org/svg2-draft/painting.html#PaintOrder
group: css
compat_features:
- css.properties.paint-order
- svg.global_attributes.paint-order
Comment on lines +6 to +7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I probably ought to have asked for this previously, but there's no time like the present: are SVG attributes part of their corresponding CSS properties? I'm not sure that's quite right, but it's not wrong either. I think there's two ways to handle this:

  • Keep including SVG attrs, but also start assigning these things to an SVG group (maybe even an SVG-in-CSS group?).
  • Drop the SVG attributes, then consider SVG more holistically later on.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's pretty helpful for authors to associate the SVG and CSS versions of a feature like this. They really are the same feature - similar to JS API's being included along side CSS. But I expect in most cases SVG support will be significantly broader/farther back, since these generally start in SVG and then get adopted into CSS. Ideally, if they're not together, they are at least clearly associated.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, cool. This works for me. I've had a bit of a look around and it does seem common for SVG and CSS to mentioned in the same setting—let's keep these together. If we want to group the SVG stuff, we can do that later.

34 changes: 34 additions & 0 deletions features/paint-order.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated from: paint-order.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support:
chrome: "123"
chrome_android: "123"
edge: "123"
firefox: ≤66
firefox_android: "66"
safari: ≤12
compat_features:
# baseline: low
# baseline_low_date: 2024-03-22
# support:
# chrome: "123"
# chrome_android: "123"
# edge: "123"
# firefox: "60"
# firefox_android: "60"
# safari: "11"
# safari_ios: "11"
- css.properties.paint-order

# baseline: false
# support:
# chrome: ≤73
# chrome_android: "73"
# edge: ≤79
# firefox: ≤66
# firefox_android: "66"
# safari: ≤12
- svg.global_attributes.paint-order