Skip to content
Merged
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
5 changes: 4 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ The {{PerformancePaintTiming}} interface {#sec-PerformancePaintTiming}

<pre class="idl">
[Exposed=Window]
interface PerformancePaintTiming : PerformanceEntry {};
interface PerformancePaintTiming : PerformanceEntry {
[Default] object toJSON();
};
PerformancePaintTiming includes PaintTimingMixin;
</pre>

Expand All @@ -235,6 +237,7 @@ The {{PerformancePaintTiming}} interface {#sec-PerformancePaintTiming}
* The {{PerformanceEntry/entryType}} attribute's getter must return <code>"paint"</code>.
* 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 <dfn for="PerformancePaintTiming" export>toJSON</dfn> is called, run the [=default toJSON steps=] for {{PerformancePaintTiming}}.

NOTE: A user agent implementing {{PerformancePaintTiming}} would need to include <code>"paint"</code> 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=].
Expand Down