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

Number of PerformanceElementTiming entries for background-image that contains multiple layers #35

Open
hawkinsw opened this issue Aug 16, 2019 · 5 comments

Comments

@hawkinsw
Copy link
Contributor

I hope that this is a meaningful question. If not, I apologize!

In CSS3 you can (apparently) specify multiple background images for a single element that will be used to build a layered background.

Does the second Note in Section 3.2 apply in this situation, too?

@npm1
Copy link
Collaborator

npm1 commented Aug 16, 2019

It does apply for it! See this test for example:
https://github.com/web-platform-tests/wpt/blob/master/element-timing/multiple-background-images.html

Do you think this needs further clarification in the spec?

@hawkinsw
Copy link
Contributor Author

Awesome!

I am only concerned because in CSS3 the image type is no longer limited to urls and can be other things like fragments and solid colors. See https://www.w3.org/TR/css3-images/. Because of that, speaking in the note only about urls as the type of multiple values seems misleading or limiting.

In light of that, do you have any thoughts on the content of the Note?

@npm1
Copy link
Collaborator

npm1 commented Aug 19, 2019

Yep, that seems like a different issue. I agree that we should be more specific about the fact that we only observe background images associated to a URL. I don't think the Note in 3.2 is inaccurate, as it says "we assume that there is one image request for each Element that a background-image property affects and for each URL that the background-image property specifies" which in particular implies that there is no image request when there is no URL, right?

But I do think that in https://wicg.github.io/element-timing/#sec-elements-exposed we need to add context about the fact that only background images with URL will be exposed. Does that make sense?

@hawkinsw
Copy link
Contributor Author

hawkinsw commented Aug 19, 2019 via email

@npm1
Copy link
Collaborator

npm1 commented Aug 19, 2019

No, thank you for the feedback :) PR is welcome.

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

No branches or pull requests

2 participants