Apple is bringing P3 support to Safari. There is already media query to check for P3 screen, which is useful to switch between P3 and sRGB images.
https://drafts.csswg.org/mediaqueries-4/#color-gamut
They might also add support for css colors in P3 color space. (css colors are currently always sRGB).