Closed Bug 1578565 Opened 5 years ago Closed 5 years ago

Inactive CSS: False positive with SVG.

Categories

(DevTools :: Inspector: Rules, defect, P1)

defect

Tracking

(firefox69 unaffected, firefox70 verified, firefox71 verified)

VERIFIED FIXED
Firefox 71
Tracking Status
firefox69 --- unaffected
firefox70 --- verified
firefox71 --- verified

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(1 file)

STR:

  • Open data:text/html,<svg width=100 height=100><rect y="0.41" width="60" fill="grey" style="height: 80px"></rect></svg>
  • Inspect the <rect> element.

ER:

  • No inactive CSS warning, as height clearly applies.

AR:

  • It says height doesn't apply, but it does.

We could be more explicit and also handle svg on the height / width stuff
(width and height don't apply to all SVG elements).

But this avoids the false positive for now.

Assignee: nobody → emilio

We might want to attempt uplifting this to 70. It's very early in the beta cycle, and this fix looks very safe to me. Because this is a "false positive" problem, which we consider very important for this feature, and because the feature is riding the trains with 70, I think it's important to do this.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1ed874403355
SVG and MathML elements don't follow the CSS layout model. r=pbro

Comment on attachment 9090305 [details]
Bug 1578565 - SVG and MathML elements don't follow the CSS layout model.

Beta/Release Uplift Approval Request

  • User impact if declined: False positive warning.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: comment 0
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Very simple fix to avoid treating SVG elements as non-replaced inline boxes.
  • String changes made/needed: none
Attachment #9090305 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
Priority: -- → P1

Comment on attachment 9090305 [details]
Bug 1578565 - SVG and MathML elements don't follow the CSS layout model.

Fix for a feature shipping in 70, doesn't look risky, seems reasonable to uplift for beta 4.

Attachment #9090305 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

Hi, This issue is Verified as fixed on Mac OsX 10.14, Windows 10 and Ubuntu 18.04 in both Nightly 71.0a1 (2019-09-04) as well as Beta 70.0b4.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: