Commit 6e28c2e
authored
fix: css important semantics (#792)
- **fix(css): align !important semantics across cascade**
- **perf(css): speed up CSSStyleDeclaration union/merge**
- **perf(css): skip pseudo-element matching when unused**
- **refactor(css): make inline styles Dart-only**
- **perf(css): gate pseudo emissions by rule features**
- **test(css): update snapshot for relayout-align-to-stretch integration
test**
- **fix(bridge): stabilize style export traversal**
- **perf(bridge): treat kLocalStyleChange as element-only**
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Inline and sheet styles now support !important and explicit
sheet-style updates for correct cascade behavior.
* Better support for pseudo-element styles
(before/after/first-letter/first-line).
* **Bug Fixes**
* More accurate style merging and fallback between inline and stylesheet
rules; computed styles reflect priority changes.
* **Chores**
* Refactored style handling and improved style recalculation performance
(reduced traversal work, caching).
* **Tests**
* Added and updated unit/integration tests covering important semantics
and inline/sheet interactions.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->File tree
65 files changed
+3012
-1374
lines changed- bridge
- bindings/qjs
- core
- api
- css
- legacy
- resolver
- dom
- legacy
- frame
- foundation
- test
- integration_tests
- snapshots/dom/elements
- specs/css
- css-grid/parsing
- css-inline
- css-transforms
- webf
- lib/src
- bridge
- css
- parser
- devtools/cdp_service/modules
- dom
- html
- form
- launcher
- widget
- test
- src
- css
- rendering
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+3012
-1374
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | 641 | | |
691 | 642 | | |
692 | 643 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 82 | + | |
110 | 83 | | |
111 | 84 | | |
112 | 85 | | |
| |||
118 | 91 | | |
119 | 92 | | |
120 | 93 | | |
121 | | - | |
| 94 | + | |
122 | 95 | | |
123 | 96 | | |
124 | 97 | | |
| |||
137 | 110 | | |
138 | 111 | | |
139 | 112 | | |
140 | | - | |
| 113 | + | |
141 | 114 | | |
142 | 115 | | |
143 | 116 | | |
144 | | - | |
145 | | - | |
| 117 | + | |
| 118 | + | |
146 | 119 | | |
147 | 120 | | |
148 | 121 | | |
149 | | - | |
| 122 | + | |
150 | 123 | | |
151 | 124 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | 1109 | | |
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
| 1154 | + | |
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
0 commit comments