839 B
839 B
Layout module instructions
Scoped guidance for layout/. The global ../AGENTS.md still applies.
Start here
Read the docs in layout/docs/ before non-trivial work.
layout/docs/LayoutOverview.mdfor frame tree, frame construction, reflow, and fragmentation.
Review
- Read
layout/docs/LayoutCodeReviewerChecklist.mdas guidance when reviewing layout changes.
Testing
- When adding reftests / crashtests for standardized CSS properties, prefer
putting them in the relevant subdirectory of
testing/web-platform/tests/css/rather than the in-treelayout/reftests/or the per-subdirectorylayout/*/crashtests/directories.
Debugging
- Layout debugger can dump useful layout internal information for a URL. Run
./mach run --layoutdebug [filename]. Readlayout/docs/LayoutDebugger.mdfor usage.