| Summary: | [Interop 2021][css-flexbox] Incorrect computed style for first-letter pseudo-element | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Alberto Lopez Perez <clopez> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | bfulgham, ntim, rego, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Carlos Alberto Lopez Perez
2020-04-13 20:29:56 PDT
This is quite straightforward to fix: https://searchfox.org/wubkat/rev/30ec4a7da2ed391580b109cbae2595e4b04652b3/Source/WebCore/rendering/updating/RenderTreeBuilderFirstLetter.cpp#42 `firstLetterStyle.setOrder(RenderStyle::initialOrder());` Just not sure if there's anything other ::first-letter needs this adjustment (::first-line maybe?) Looks like to edit the computed style, we need to change a bit earlier on: https://searchfox.org/wubkat/rev/88494bd8279fc758940dcabe84dc7c79e6a1231b/Source/WebCore/style/StyleResolver.cpp#438 The other function I linked for the used computed style actually clones the style, so it doesn't make it into the computed style. The only approach I can really think of here is a blocklist/allowlist of properties. |