Closed
Bug 1375337
Opened 7 years ago
Closed 7 years ago
stylo: Support emulating medium
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 1371395
People
(Reporter: xidorn, Unassigned)
References
(Blocks 1 open bug)
Details
See comment in https://github.com/servo/servo/blob/ed5485ed18535a1de9401c7c9499be26292e76fc/components/style/gecko/media_queries.rs#L134
Gecko support emulating random medium, which takes effect via nsPresContext::Medium() [1]. However, Stylo doesn't use that, but instead read nsPresContext::mMedium directly.
Also Servo doesn't support random medium either because it uses enum for medium type.
Test layout/base/tests/test_emulateMedium.html checks this functionality, and it seems to me devtools may depend on this.
[1] https://dxr.mozilla.org/mozilla-central/rev/92eb911c35da48907d326604c4c92cf55e551895/layout/base/nsPresContext.h#329-333
Reporter | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•