mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Support media query range comparisons for responsive navigation
This commit is contained in:
parent
5e93ebd7f1
commit
8bc41fe3ea
2 changed files with 38 additions and 4 deletions
|
|
@ -321,6 +321,15 @@ function run() {
|
|||
(Math.floor(value/em_size) - 1) + "rem)");
|
||||
}
|
||||
|
||||
// GitHub's navigation uses range queries without whitespace around the
|
||||
// comparison operator. Check both sides of its desktop breakpoint.
|
||||
should_apply("(width>=117px)");
|
||||
should_not_apply("(width<=116.98px)");
|
||||
should_apply("(width=117px)");
|
||||
expression_should_not_be_parseable("width > = 117px");
|
||||
expression_should_not_be_parseable("min-width >= 117px");
|
||||
expression_should_not_be_parseable("orientation >= landscape");
|
||||
|
||||
change_state(function() {
|
||||
iframe_style.width = "100px";
|
||||
iframe_style.height = "10px";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue