From 05fc8aec6dd426c5f7aed34cffef9b5b3cd7b7c8 Mon Sep 17 00:00:00 2001 From: Francois Daoust Date: Mon, 22 Apr 2024 14:14:34 +0200 Subject: [PATCH] Fix target interfaces in dfn of `redraw` event The `redraw` event was defined with a `for="XRLayer"` attribute. That is not really correct, because the even can only fire at some of the `XRCompositionLayer` interfaces. This update adjusts the `for` attribute accordingly, making the definition consistent with the IDL definitions of the related `EventHandler` attributes. (Via https://github.com/w3c/webref/issues/1216) --- webxrlayers-1.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webxrlayers-1.bs b/webxrlayers-1.bs index cdbc143..9351528 100755 --- a/webxrlayers-1.bs +++ b/webxrlayers-1.bs @@ -2012,7 +2012,7 @@ Event Types {#event-types} The user agent MUST provide the following new events. Registration for and firing of the events must follow the usual behavior of DOM4 Events. -The user agent MAY fire a redraw event on the {{XRLayer}} object when [=the underlying resources of a layer are lost=] or +The user agent MAY fire a redraw event on the {{XRLayer}} object when [=the underlying resources of a layer are lost=] or when the [=XR Compositor=] can no longer reproject the layer. The author SHOULD redraw the content of the layer at the next [=XR animation frame=]. The event must be of type {{XRLayerEvent}}.