mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.17k stars 9.95k forks source link

Group and scope the findbar rules using CSS nesting #18568

Closed timvandermeij closed 1 month ago

timvandermeij commented 2 months ago

The findbar CSS rules predate the general availability of CSS nesting, which makes them more difficult to understand and change safely. The primary issues are that the findbar rules are spread all over the viewer.css file, they share blocks with non-findbar elements and the scope of the rules is sometimes bigger than necessary.

This refactoring groups all findbar-related CSS rules together, scoped to the top-level #findbar element, for improved overview and isolation. Note that this patch only intends to move the existing rules around and not change any behavior yet, but it does lay the foundation for e.g. making the findbar respect the browser.uidensity preference in Firefox in follow-up work.

Notes for the reviewer:

Image

Extracts a part of #18385.

timvandermeij commented 2 months ago

/botio-linux preview

moz-tools-bot commented 2 months ago

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/8ad2c1f7d669cf4/output.txt

moz-tools-bot commented 2 months ago

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/8ad2c1f7d669cf4/output.txt

Total script time: 1.03 mins

Published

timvandermeij commented 2 months ago

/botio integrationtest

moz-tools-bot commented 2 months ago

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/a99fa62fe79c1ac/output.txt

moz-tools-bot commented 2 months ago

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @timvandermeij received. Current queue size: 0

Live output at: http://54.193.163.58:8877/ffc9debbfff0603/output.txt

moz-tools-bot commented 2 months ago

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/a99fa62fe79c1ac/output.txt

Total script time: 8.49 mins

moz-tools-bot commented 2 months ago

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/ffc9debbfff0603/output.txt

Total script time: 19.05 mins

timvandermeij commented 1 month ago

/botio-linux preview

moz-tools-bot commented 1 month ago

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/c5133c705aaff0e/output.txt

moz-tools-bot commented 1 month ago

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/c5133c705aaff0e/output.txt

Total script time: 1.03 mins

Published