Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shifted element attribution (#11). #32

Closed
wants to merge 0 commits into from
Closed

Add shifted element attribution (#11). #32

wants to merge 0 commits into from

Conversation

skobes-chromium
Copy link
Collaborator

@skobes-chromium skobes-chromium commented Mar 12, 2020


💥 Error: write EPROTO 140222018242432:error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version:../deps/openssl/openssl/ssl/s23_clnt.c:772:

💥 ###

PR Preview failed to build. (Last tried on Mar 17, 2020, 12:36 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 HTML Diff Service - The HTML Diff Service is used to create HTML diffs of the spec changes suggested in a pull request.

🔗 Related URL

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated
greater than the area of the <a>node impact region</a> of any
member of |S|.
1. Return a {{FrozenArray}} containing one {{LayoutShiftAttribution}} object
for each member |s| of |S|, created by running the algorithm to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems undesirable because that means that those Nodes will cause memory leaks, as they cannot be destroyed when they are no longer needed by the user agent (say, when they are removed from the DOM tree but the Document remains alive).

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@npm1 npm1 requested a review from yoavweiss March 13, 2020 18:33
@skobes-chromium
Copy link
Collaborator Author

Thanks for the review. Most of the comments are addressed in the latest update. Re. nodes being disconnected from the document, there are some aspects I am not sure about, perhaps we could sync up tomorrow to discuss.

Copy link
Collaborator

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! :)

index.bs Outdated
Source attribution {#source-attribution}
----------------------------------------

In addition to the layout shift value, the API reports a sampling of up to five
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a non-normative note. It's also unclear who "we" is. Can you rephrase it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was asked to remove the non-normative note text on the subsections because it was already applied to the entire "1. Introduction" section. Do you think each subsection should separately state it?

"We" in this case is me, the spec author :) How do you think it should be rephrased?

index.bs Outdated
------------------------------------------------------------------

<div algorithm="report the layout shift sources">
When asked to <dfn>report the layout shift sources</dfn> for an active
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this algorithm called?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This algorithm is called in step 9 of the algorithm to "report the layout shift" in subsection 5.1.

index.bs Outdated
When asked to <dfn export>report the layout shift sources</dfn> for an active
{{Document}} |D|, run the following steps:

1. Let |S| be any set which satisfies these constraints:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that a more explicit algorithm would be better - it won't necessarily constrain user agents in how they calculate the set (as long as it's not observably different from the algorithm), but will provide a baseline algorithm that they can then improve.

@npm1
Copy link
Collaborator

npm1 commented Mar 17, 2020

Thanks for the review. Most of the comments are addressed in the latest update. Re. nodes being disconnected from the document, there are some aspects I am not sure about, perhaps we could sync up tomorrow to discuss.

Thanks for addressing the feedback! Sure, we can discuss the nodes problem, feel free to add a sync with me and Yoav.

@skobes-chromium
Copy link
Collaborator Author

I made a mess with my local branches. I'll start a new PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants