Open Bug 1577361 Opened 5 years ago Updated 2 years ago

Add css use counters for unimplemented properties used via CSSOM setters and inline style

Categories

(Core :: CSS Parsing and Computation, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Per the discussion of Bug 1575062, it'd be great to record the css use counter for CSSOM and inline style.

Summary: Add css use counters for CSSOM setters and inline style → Add css use counters for unimplemented properties used via CSSOM setters and inline style
Assignee: nobody → boris.chiou

Working on this now, and have some patches. Basically, I'd like to record the CSS use counters for following things:

1) <div style="zoom: 1.0;"></div>
2) div.setAttribute("style", "zoom: 2.0;");
3) div.style.cssText = "zoom: 3.0;";
4) div.style.setProperty("zoom", "4.0");
5) div.style.zoom = "5.0";

(5) might be tricky because it seems we have to extend the IDL bindings. Still looking at this one actually.

This includes two cases:

  1. <div style="zoom: 1.0;"></div>
  2. div.setAttribute("style", "zoom: 1.0;");

This also support one another way to set the inline styles:
div.style.cssText = "zoom: 1.0;";

It seems the getter would be implemented by Bug 1576757, so perhaps it's worth to check the implementation of Bug 1576757 to avoid the duplicated work.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: