Closed Bug 1719239 Opened 4 years ago Closed 4 years ago

Can't see search results with content: none on non-pseudo elements

Categories

(Core :: Layout, defect)

Firefox 91
All
Unspecified
defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- unaffected
firefox90 --- unaffected
firefox91 --- fixed

People

(Reporter: ksenia, Assigned: emilio)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

As reported in https://github.com/webcompat/web-bugs/issues/78699 search results are not showing on https://www.gobros.com/collections/running-training-socks/women in Nightly 91.0a1 (2021-07-05)

The site is using content: none on non-pseudo elements:

div.snize-search-results ul li {
    list-style: none;
    content: none;
}

We've got a couple more reports similar to this, so creating this bug to track them.

From mozregression:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=35f2782bf0021e7261ef9d8953ddafe892fb6e48&tochange=dcc1d0a10a11a66af97be9d6691f60f5b78e66f1

Two more cases:

https://www.lookfantastic.dk/

a,abbr,address,article,aside,audio,b,blockquote,body,button,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,input,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,select,small,span,strong,sub,summary,sup,table,tbody,td,textarea,tfoot,th,thead,time,tr,u,ul,var,video {
       ...
	content:none;
      ...
}

and
https://www.six-group.com/en/home.html

*,
*::before,
*::after {
  box-sizing: inherit;
  content: none;
}

Hi Mats, adding a ni here

Flags: needinfo?(mats)

We should probably disable it by default for now and go back to the csswg or something.

Set release status flags based on info from the regressing bug 1699964

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Attachment #9229876 - Attachment is obsolete: true
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f74b16b4001 Disable support for content:none on elements due to webcompat issues. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch

Thanks for looking into this!

Flags: needinfo?(mats)
Has Regression Range: --- → yes
Regressions: 1979755
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: