VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1660384

⇱ 1660384 - (css-content-visibility) Implement CSS Containment content-visibility


Open Bug 1660384 (css-content-visibility) Opened 5 years ago Updated 4 days ago

Implement CSS Containment content-visibility

Implement CSS Containment content-visibility
Core
Layout
unspecified
Unspecified
Unspecified
enhancement
Points:
---
NEW
---
Iteration:
---
Webcompat Priority P3
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox-esr153
firefox152
firefox153
firefox154
css-content-visibility
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 

https://drafts.csswg.org/css-contain-2/#content-visibility

The content-visibility property controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed.

.somecontent {content-visibility: visible}
.somecontent {content-visibility: hidden}
.somecontent {content-visibility: auto}

See https://web.dev/content-visibility/

At this date, only implemented in Chromium 85
https://www.chromestatus.com/feature/4613920211861504
https://bugs.chromium.org/p/chromium/issues/detail?id=882663

no visible bug on Safari yet.
https://bugs.webkit.org/buglist.cgi?quicksearch=content-visibility

Note:

  • Opening as a placeholder for this property.
  • And in case we see webcompat issue in the future. (none yet)
Webcompat Priority: --- → ?

Hi. I get bug with content-visibility:auto; for svg element in div. If img with svg more than block with property content-visibility:auto; img with svg would cropped

We don't implement this property, are you having this bug with Firefox or Chromium-based browsers? Could you attach a test-case?

Yes, I can show you.
https://drive.google.com/file/d/1OJVQZbMnoWyBN0atdprkH8BA8DMiRC0M/view?usp=sharing
http://prntscr.com/unxed2

  • It's my test work =) Sorry, I don't know how else I can show you an error. You will see this error if you open file index.html.

That only happens in Chrome as expected, so this is not the correct bug tracker to report it, that's https://crbug.com. But the bug is invalid, the icon is overflowing the content-visibility: auto element. It behaves like contain: paint.

Reporter

Updated

4 years ago
Webcompat Priority: ? → P3

Comment 7

3 years ago

Hi, is there a timeline for supporting this feature?

Alias: css-content-visibility
Blocks: 1668136
No longer duplicate of this bug: 1668136
Blocks: 1702083
No longer duplicate of this bug: 1702083
No longer blocks: 1668136
Depends on: 1668136
No longer blocks: 1822694
Depends on: 1822694

Updated

2 years ago
Depends on: 1849559

Updated

2 years ago
Depends on: 1859220

Updated

2 years ago
Depends on: 1862241

Updated

2 years ago
Depends on: 1862569

Updated

2 years ago
Depends on: 1864887

Updated

2 years ago
Depends on: 1866566

Updated

2 years ago
Depends on: 1861378

Updated

2 years ago
Depends on: 1868868

Updated

2 years ago
Depends on: 1874761
Depends on: 1894546
No longer depends on: 1899707
No longer blocks: 1898833, 1702083
Depends on: 1898833, 1702083
You need to log in before you can comment on or make changes to this bug.