Commit e5ec0fa
committed
Fix a stale Ignore and its own test bug on an already-working ::after test
CssContentWithCssEscapeInString_RendersLiterally was Ignore'd, citing
"this fork has no pseudo-element support at all" - false: ::before
already works (the CSS-escape test right above it in this same file
passes), and CssContentEngine/CssData's pseudo-element creation
predates this port entirely.
Un-ignoring it surfaced a real bug in the TEST itself, not the
engine: its box-finding predicate (HtmlTag == null && Text != null)
matches the real text node "text" (which also has no HtmlTag) before
it reaches the ::after box, since ::after is appended at the end of
p.Boxes while ::before is inserted at index 0 - the sibling test just
above happens to pass because ::before's insert-at-0 placement wins
the FirstOrDefault race by coincidence. Fixed to key off
IsAfterPseudoElement directly, and it passes.1 parent 0f793a5 commit e5ec0fa
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 192 | | |
196 | 193 | | |
197 | 194 | | |
| |||
200 | 197 | | |
201 | 198 | | |
202 | 199 | | |
203 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments