diff --git a/index.bs b/index.bs index 5a71a39..da01037 100644 --- a/index.bs +++ b/index.bs @@ -223,7 +223,9 @@ The {{PerformancePaintTiming}} interface {#sec-PerformancePaintTiming}
     [Exposed=Window]
-    interface PerformancePaintTiming : PerformanceEntry {};
+    interface PerformancePaintTiming : PerformanceEntry {
+        [Default] object toJSON();
+    };
     PerformancePaintTiming includes PaintTimingMixin;
 
@@ -235,6 +237,7 @@ The {{PerformancePaintTiming}} interface {#sec-PerformancePaintTiming} * The {{PerformanceEntry/entryType}} attribute's getter must return "paint". * The {{PerformanceEntry/startTime}} attribute's getter must return a {{DOMHighResTimeStamp}} of when the paint occured. * The {{PerformanceEntry/duration}} attribute's getter must return 0. +* When toJSON is called, run the [=default toJSON steps=] for {{PerformancePaintTiming}}. NOTE: A user agent implementing {{PerformancePaintTiming}} would need to include "paint" in {{PerformanceObserver/supportedEntryTypes}} of a [=realm/global object=] whose [=Window/browsing context=] is [=paint-timing eligible=]. This allows developers to detect support for paint timing for a particular [=browsing context=].