LeaVerou / css3test

How does your browser score for its CSS3 support?
http://css3test.com
MIT License
214 stars 83 forks source link

Added rest of CSS 2 features #226

Closed SebastianZ closed 2 years ago

SebastianZ commented 2 years ago

This change adds the rest of the CSS 2 features except for @import and !important.

Testing for @import fails in Firefox because it waits until the external stylesheet is imported to assign style.sheet. Testing for !important fails because the way property values are tested doesn't recognized that it's set.

This is in addition to #208.

Sebastian

SebastianZ commented 2 years ago

Looks good, except i think we could test @page descriptors with Supports.descriptorvalue(...).

Good point! I tried that yesterday though it didn't work for the margin shorthand. I'll have a look later what's the reason for that.

Sebastian

SebastianZ commented 2 years ago

I tried that yesterday though it didn't work for the margin shorthand.

Found it! The reason was that the test checked for a rule number of one, though margin gets split into its four longhands. So I adjusted the test to check for >= 1.

Sebastian