Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checklist #1

Open
6 of 23 tasks
aubymori opened this issue Nov 14, 2024 · 1 comment
Open
6 of 23 tasks

Checklist #1

aubymori opened this issue Nov 14, 2024 · 1 comment

Comments

@aubymori
Copy link
Member

aubymori commented Nov 14, 2024

Here's a list of things that need to be done for Nara, in no particular order:

  • Restore native Win32 control styles:
    • Basic/classic titlebar and caption buttons
    • Focus outlines
    • Scrollbars
    • Radio buttons
    • Checkboxes
    • Spinner buttons
    • Menulist arrows
    • Tree/list view parts
      • List items
      • Tree views
      • Tree twisties
      • Tree items
    • DWM (glass) titlebar and caption buttons
    • Toolboxes
    • Toolbars
    • Status bars
    • Menus
  • Restore/implement nonstandard CSS properties which are convenient for the UI Nara is trying to achieve
    • -moz-outline-radius
    • -moz-image-region
  • Fix issues with WebRender*
    • DWM caption button mask breaks unless software renderer is used
    • DWM caption button mask cannot be rounded
    • Tree text rendering doesn't respect the user having ClearType disabled
  • Port XBL-based controls that were removed entirely to custom elements
    • Preferences window controls (e.g. prefpane)
    • Status bar controls
  • Port XUL overlays? Seem to be used by prefpane control and also seem to be gone. Will not add this as a task for now. We'll see when the time comes.

*There are two ways to go about this:

  1. Fix the issues in WebRender itself (probably the preferred option)
  2. Restore the old "Layers" rendering system (will this impact performance?)
aubymori pushed a commit that referenced this issue Nov 18, 2024
…t/last formatted line., a=testonly

Automatic update from web-platform-tests
[text-box-trim] More spec-compliant first/last formatted line.

See https://drafts.csswg.org/css-pseudo-4/#first-text-line

1. For a block container that establishes an inline formatting context,
the "first formatted line" is its first line box, if it has one.
Otherwise, there is no first formatted line.

2. Otherwise, for a block container that has block children, look inside
the first in-flow block child (if any) and do #1 if it establishes an
inline formatting context. Otherwise, do #2.

In short, we don't need to search for line boxes in blocks after the
first block child. If there is no line in the first child, there's no
"first formatted line".

There's no spec for "last formatted line", but apply the same logic.
I.e. if the last block child has no line, there's no "last formatted
line".

This allows us to simplify things a bit, especially when it comes to
re-laying out (kTextBoxTrimEndDidNotApply). The only case where we need
this now is for blocks inside inlines: If the last formatted line is
inside a block-in-inline, we need to go back and re-lay it out if it
turns out to be the last line (which isn't something we can check inside
block-in-inline layout). Note: When adding support for block
fragmentation, trimming at a fragmentainer's block end will be another
case where we need to re-lay out.

The motivation for this change was text box trimming inside block
fragmentation (upcoming CL), and be able to add support for that and
still be reasonably confident that it won't become too complicated.

This fixes one existing test. Some other existing tests had to be
updated because of this change (they were making incorrect assumptions
about first/last formatted line). As a result of that, some new refs had
to be added, since other tests were piggy-backing on the same ref.

Bug: 40254880, 367766472
Change-Id: I3fcc53af86353725b1f5705a5528493a72bf2e69
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5952979
Commit-Queue: Morten Stenshorne <[email protected]>
Reviewed-by: Koji Ishii <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1373765}

--

wpt-commits: 274bd0d593efebce81292bc6f9a8ca58c578e343
wpt-pr: 48815
@Erizur Erizur pinned this issue Dec 19, 2024
@aubymori aubymori unpinned this issue Dec 19, 2024
@aubymori aubymori pinned this issue Dec 19, 2024
@VORAPIS
Copy link

VORAPIS commented Dec 19, 2024

hi :3

@NetworkNeighborhood NetworkNeighborhood locked and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants