Open Bug 1900080 Opened 11 months ago Updated 11 months ago

* { box-sizing: inherit } might be relatively common, and it tanks some of the style system optimizations.

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

People

(Reporter: emilio, Unassigned)

Details

Flags: needinfo?(zcorpan)

Based on GH code search, it seems to be common: https://github.com/search?q=*+%7B+box-sizing%3A+inherit+&type=code

Httparchive query:

SELECT
  DISTINCT page
FROM
  `httparchive.almanac.parsed_css`
WHERE
  date = "2022-07-01"
  AND client = "desktop"
  AND REGEXP_CONTAINS(css, r"\*(?:,\s*\*?::?before,\s*\*?::?after)?\s*{(?:[^}]*)\bbox-sizing:\s*inherit[;}]")

11,638 matches out of 7,303,959 pages ≈ 0.16% of pages (in 2022).

The matches are: https://docs.google.com/spreadsheets/d/1MAJHWEl9UZ30N7aP7iNwT6NE8lutDt8eGYMRVRz6LVA/edit?usp=sharing

Flags: needinfo?(zcorpan)
You need to log in before you can comment on or make changes to this bug.