From ccf1cb93dfff589b5e95190b8b1df50d063c8769 Mon Sep 17 00:00:00 2001 From: npm1 Date: Fri, 14 Jun 2019 14:08:54 -0700 Subject: [PATCH] Replace entryType registration hook with Note Also fixes a bikeshed warning. --- index.bs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/index.bs b/index.bs index 0aeaf1a..0b1f4ef 100644 --- a/index.bs +++ b/index.bs @@ -31,6 +31,8 @@ urlPrefix: https://w3c.github.io/performance-timeline/; spec: PERFORMANCE-TIMELI type: dfn; url: #dfn-queue-a-performanceentry; text: Queue the PerformanceEntry; type: dfn; url: #getentriesbytype-method-0; text: getEntriesByType; type: dfn; url: #dom-performanceobserver; text: PerformanceObserver; + type: attribute; for: PerformanceObserver; + text: supportedEntryTypes; url: #supportedentrytypes-attribute; type: dfn; url: #dom-performanceobserverinit-buffered; text: buffered; urlPrefix: https://w3c.github.io/resource-timing/; spec: RESOURCE-TIMING; type: dfn; url: #sec-privacy-security; text: statistical fingerprinting; @@ -123,8 +125,7 @@ The visual representation of a as input. +Note: A user agent implementing {{LayoutShift}} would need to include "layoutShift" in {{PerformanceObserver/supportedEntryTypes}} for {{Window}} contexts. This allows developers to detect support for layout instability. Processing model {#sec-processing-model} ======================================== @@ -200,7 +201,7 @@ Compute the layout shift {#sec-compute-layout-shift} 1. Queue the PerformanceEntry |newEntry| object. -NOTE: This computation ensures that the layout shift takes into account both the fraction of the viewport that has been impacted by layout stability as well as the greatest impact to any given element in the viewport. This is to recognize that a large element that moves only a small distance may have a small impact on the perceived stability of the page. +NOTE: This computation ensures that the layout shift takes into account both the fraction of the viewport that has been impacted by layout stability as well as the greatest impact to any given element in the viewport. This is to recognize that a large element that moves only a small distance can have a small impact on the perceived stability of the page. Identify an unstable element {#sec-identify-unstable-element} --------------------------------------------------------------