Closed Bug 1660804 Opened 4 years ago Closed 4 years ago

Bad rendering of pseudo-element with CSS custom property added through JS in an iframe

Categories

(Core :: DOM: CSS Object Model, defect)

80 Branch
defect

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox80 --- wontfix
firefox81 --- wontfix
firefox82 --- wontfix
firefox83 --- fixed

People

(Reporter: dev, Assigned: emilio)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0

Steps to reproduce:

I use TinyMCE editor and styled headings to have a little badge with heading level written down there after the heading text. This badge is implemented as and ::after pseudo-element and its content is passed through a custom property.

Actual results:

The badge does not render. When I open DOM Inspector and select the node in there (or whichever from editor's DOM) it appears.

See this codepen: https://codepen.io/dakur/pen/NWNdEQB

Expected results:

Render instantly.

Reproduced on the latest version of Firefox Nightly 82.0a1 (2020-08-27), beta 81.0b3 and release 80.0.

Setting a component for this issue in order to get the dev team involved.
If you feel it's an incorrect one please feel free to change it to a more appropriate one.

Status: UNCONFIRMED → NEW
Component: Untriaged → DOM: CSS Object Model
Ever confirmed: true
Product: Firefox → Core
Attached file Reduced test-case

For reference, attaching more minimal test-cases usually helps getting bugs looked at faster.

That being said this looks clearly broken, I'll poke. Thank you for filing!

Assignee: nobody → emilio
Severity: -- → S3
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9863c168a18f
Don't optimize ::before/::after away if content/display have been specified via custom properties. r=jwatt
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/25646 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
Upstream PR merged by moz-wptsync-bot

Great, thank you very much!

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta to wontfix.

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

Long-standing bug, can probably ride the trains.

Flags: needinfo?(emilio)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: