Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
Commit714ff4e
LibWeb: Fix previous style calculation for CSS transitions on pseudo
...elements. Adds missing pseudo-element type passed into computedproperties getter.Previously, due to this bug, we were using the element's computedproperties as the previous computed properties for its pseudo-elements.This caused an excessive number of unintended CSS transitions to run.The issue was particularly noticeable in Discord's emoji picker, whereeach emoji has `::after` pseudo-element. We were incorrectly triggeringtransitions on all their properties, resulting in significantunnecessary work in style computation and animation event dispatching.1 parent2fc405f commit714ff4e
File tree
3 files changed
+56
-1
lines changed- Libraries/LibWeb/CSS
- Tests/LibWeb/Text
- expected/WebAnimations/transitions
- input/WebAnimations/transitions
3 files changed
+56
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2724 | 2724 |
| |
2725 | 2725 |
| |
2726 | 2726 |
| |
2727 |
| - | |
| 2727 | + | |
2728 | 2728 |
| |
2729 | 2729 |
| |
2730 | 2730 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + |
Lines changed: 54 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + |
0 commit comments
Comments
(0)