Skip to content

Add the inert attribute and tweak definition of inert subtrees - #7134

Merged
annevk merged 1 commit into
whatwg:mainfrom
nt1m:inert
Mar 10, 2022
Merged

annevk merged 1 commit into
whatwg:mainfrom
nt1m:inert

Conversation

@nt1m

@nt1m nt1m commented Sep 30, 2021 •

Copy link
Copy Markdown
Member

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@josepharhar

Copy link
Copy Markdown
Contributor

@nt1m

nt1m commented Oct 8, 2021

Copy link
Copy Markdown
Member Author

@josepharhar Updated, thanks. I'm hoping to get to updating this PR in the next couple of weeks.

@bkardell

bkardell commented Oct 8, 2021

Copy link
Copy Markdown
Contributor

related #4288

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@annevk

annevk commented Oct 12, 2021

Copy link
Copy Markdown
Member

@nt1m did you see #4288 (review) by @rniwa?

How does this relate to @alice's work? Was/should there be some coordination?

@nt1m

nt1m commented Oct 12, 2021

Copy link
Copy Markdown
Member Author

@nt1m did you see #4288 (review) by @rniwa?

Yes, I described my rationale for using flat tree descendants in #7134 (comment)

How does this relate to @alice's work?

This is a newer version of it, I created a new PR to not have all the old comments.

Was/should there be some coordination?

There is an email thread going around about shipping inert with @emilio, @smfr, me, @chrishtr and @mfreed7. Alice is no longer involved afaik.

@mfreed7 mfreed7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This generally LGTM. It'd be good if @josepharhar also took a look, given that he's implementing it in Chromium.

@alice

alice commented Oct 12, 2021

Copy link
Copy Markdown
Contributor

There is an email thread going around about shipping inert with @emilio, @smfr, me, @chrishtr and @mfreed7. Alice is no longer involved afaik.

I'm not dead :) A little credit for the years of work I did on this would be nice.

@nt1m

nt1m commented Oct 13, 2021 •

Copy link
Copy Markdown
Member Author

@alice Thanks for all your work done on the topic! I did re-use some parts of #4288, but also re-wrote quite a bit of it too, I hope that's ok with you.

Didn't mean to discredit your work, but I did hear that you moved on to different projects. Feel free to leave feedback if you have any, your expertise is welcome :)

@alice

alice commented Oct 13, 2021

Copy link
Copy Markdown
Contributor

Starting an entirely new PR without any reference to the old one, and putting your name and not mine in the acknowledgements doesn't look like you didn't mean not to acknowledge me.

I trust the reviewers to do a good job reviewing the text here - I've said my piece on the design of the feature in the past, rehashing that seems pointless at this stage.

@nt1m

nt1m commented Oct 13, 2021 •

Copy link
Copy Markdown
Member Author

@alice I apologize for not asking before making a new PR, someone from Google during the CSSWG meeting said you were working on other projects, and I really wanted to get inert shipped over the finish line without having to iterate over a stale PR that I do not own.

If you're referring to my name in the "acknowledgements" section, this is because it's a requirement when making a first PR: https://github.com/whatwg/html/blob/main/CONTRIBUTING.md#pull-requests

Please add your name to the Acknowledgments section (search for <!-- ACKS) in your first pull request, even for trivial fixes. The names are sorted lexicographically.

Your name was already in this section before making this PR: "Alice Boxhall": https://html.spec.whatwg.org/multipage/acknowledgements.html#acknowledgments

I added credit in the description of this PR (sorry for not doing this in the first place). I'm happy to remove my name if you prefer, (and/or) iterating over the old PR. Please let me know if there's something else I can do.

Comment thread source Resolved
Comment thread source Resolved
@annevk

annevk commented Oct 15, 2021

Copy link
Copy Markdown
Member

@nt1m thanks for the reference on using flat trees. That makes sense to me given pointer-events:none. Since you work at the same org, I take it you ran this by @rniwa as well?

@annevk

annevk commented Oct 15, 2021

Copy link
Copy Markdown
Member

Note to maintainers: let's try to make sure the final commit contains

Co-authored-by: Alice Boxhall <[email protected]>

at the end.

@nt1m
nt1m force-pushed the inert branch 3 times, most recently from e90262b to 9ae9c17 Compare October 20, 2021 14:32
@nt1m

nt1m commented Oct 22, 2021

Copy link
Copy Markdown
Member Author

@annevk I've added the link to pointer-events: none; which I think should remove the need for an example :) Please let me know if there's anything else to address.

@annevk

annevk commented Oct 25, 2021

Copy link
Copy Markdown
Member

I thought the idea was that both pointer-events:none and this would share a definition in a css3-ui? (I also reopened the discussion on focus above.)

I still think keeping the example would be useful for readers not deeply familiar with the subject matter. It was also rather short.

Comment thread source Resolved

@annevk annevk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall this looks good to me. I mainly have editorial nits and suggestions.

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@nt1m
nt1m force-pushed the inert branch 2 times, most recently from 8e04c4d to 83d37bc Compare March 1, 2022 16:35
Comment thread source Resolved
Comment thread source Resolved
@nt1m
nt1m force-pushed the inert branch 4 times, most recently from daf571a to 6a1fcbc Compare March 1, 2022 18:03
@Loirooriol

Copy link
Copy Markdown
Contributor

Is there anything else to do here? I'd want this to land in order to send an intent to ship for Blink.

Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
Comment thread source Resolved
@nt1m
nt1m force-pushed the inert branch 2 times, most recently from 5c7bc20 to a8ddca2 Compare March 7, 2022 22:19

@domenic domenic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but @annevk has been the primary reviewer so he should confirm before we merge.

@nt1m
nt1m requested a review from annevk March 9, 2022 16:36
@annevk
annevk merged commit 755ae90 into whatwg:main Mar 10, 2022
@annevk annevk mentioned this pull request Mar 10, 2022
@annevk

ghost commented Mar 10, 2022

Copy link
Copy Markdown
Member

Thanks again @alice and @nt1m for making this happen! And everyone else who took part in design, review, implementation, and testing. It took a while, but the inert attribute is now officially part of HTML. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

9 participants