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

chore: Refactor createStackingOrder #3932

Merged
merged 2 commits into from
Mar 6, 2023
Merged

Conversation

WilcoFiers
Copy link
Contributor

As part of my review of #3930 I ended up refactoring that method. I couldn't wrap my brain around how it worked.

@WilcoFiers WilcoFiers requested a review from a team as a code owner March 6, 2023 11:13
@straker straker merged commit 46d3832 into stack-opacity Mar 6, 2023
@straker straker deleted the static-opacity-refactor branch March 6, 2023 16:48
straker added a commit that referenced this pull request Mar 15, 2023
…acking contexts (#3930)

* fix(create-grid): correctly compute stack order for non-positioned stacking contexts

* chore: Refactor createStackingOrder (#3932)

* chore: Refactor createStackingOrder

* Remove magic numbers

* use treewalker nodeIndex

* no floatpoint precision errors

* pass nodeIndex to createGrid for shadowDom

* do it properly

* remove whitespace

* test for outside tree elements

---------

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
straker added a commit that referenced this pull request Mar 22, 2023
…with opacity (#3944)

* fix(create-grid): correctly compute stack order for non-positioned stacking contexts

* chore: Refactor createStackingOrder (#3932)

* chore: Refactor createStackingOrder

* Remove magic numbers

* use treewalker nodeIndex

* no floatpoint precision errors

* pass nodeIndex to createGrid for shadowDom

* do it properly

* remove whitespace

* fix(color-contrast): correctly handle opacity on parent elements

* working

* idea finalized

* remove comments

* move function

* tests!

* fix comments

* fix stuff

---------

Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
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.

2 participants