Skip to content

Instantly share code, notes, and snippets.

@larsbergstrom
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsbergstrom/92bb6e36702f8e2b968f to your computer and use it in GitHub Desktop.
Save larsbergstrom/92bb6e36702f8e2b968f to your computer and use it in GitHub Desktop.
Servo Layout Exercise
Reproduce a failing CSS test locally:
./mach test-css tests/wpt/css-tests/css21_dev/html4/background-color-088.htm --log-raw out.log
Open in the Gecko reftest analyzer to see the failure graphically:
http://hoppipolla.co.uk/410/reftest-analyser-structured.xhtml
(click on the test name, then mouse over the squares to see the different pixels, though it should be pretty obvious in this case).
Looking at the file and the spec (http://www.w3.org/TR/CSS2/syndata.html#value-def-color), what is the likely problem?
Extra exercise:
The problematic code is in one of Servo's many dependencies. Which one? And how should we fix it?
Extreme-mode spec lawyering extra exercise:
The behavior specified in CSS2 reflects current browsers and usage in the wild, but may not be strictly consistent with the terminology in CSS3 as to where this behavioral decision should be made. Deeply consider whether / where to make this change and how placement of the change affects standards compliance vs. existing web behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment