Open Bug 801844 Opened 12 years ago Updated 2 years ago

[meta] CSS Images Refactoring

Categories

(Core :: Layout: Images, Video, and HTML Frames, task)

19 Branch
task

Tracking

()

People

(Reporter: bugs, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

Refactor and Modify Gecko to support feature work related to CSS Images:

CSS3 Images
- handling of media fragments
- image notation
- handful of props for replaced elements
- assign resolution for images other than 1dppx

*this bug is about supporting the first 3 above

CSS4
- more gradients
- element notation (has issues)
- image set (has issues)
- image rendering
- crossfade

nsCSSRendering code (images, gradients, mozelement) needs to be refactored to be called from places other than backgrounds. Those code path currently use imgLib API directly.

Optimizations in images now use GPU Acceleration. Paint using nsCSSRendering for bullets, borderimage & generated content, other images, rounding issues, pixel snapping. Avoid touching XUL Images.

CSS parser needs to allow CSS images parsing path. Storage in the style structs needs to be unified to save off the CSS images data.

Prepare for the future when we'll need to support image values that affect other image values (eg. crossfade, imageset, image notation.)

Prototype Idea: get a gradient somewhere we didn't have it before (hack enough parser code and nsCSSImages to render it.)
Let's treat this as a tracking bug since there are a lot of subprojects here. I'll create additional bugs for the specific features as needed.
There's an existing bug for implementing the spatial dimension of the Media Fragments URI spec. We'll track that work in bug 790640.
Depends on: 790640
Depends on: 703217
Depends on: 700926
This did not make Moz19.
Target Milestone: mozilla19 → ---
Product: Core → Core Graveyard
Product: Core Graveyard → Core
Type: defect → task
Blocks: cross-fade

image-set() from /css-images-4/ was implemented in Firefox 88.

The bug assignee didn't login in Bugzilla in the last 7 months.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: seth.bugzilla → nobody
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Keywords: meta
Summary: CSS Images Refactoring → [meta] CSS Images Refactoring
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.