Bug 94070

Summary: [CSS Regions] broken feature detection: syntax parsing succeeds when ENABLE_CSS_REGIONS is false
Product: WebKit Reporter: Paul Irish <paulirish>
Component: CSSAssignee: Mihai Maerean <mmaerean>
Status: RESOLVED INVALID    
Severity: Normal CC: divya, donggwan.kim, mibalan, mihnea, mmaerean, morrita, rhudea, WebkitBugTracker
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 101192    
Bug Blocks: 57312    

Description Paul Irish 2012-08-14 22:27:12 PDT
1. If CSS Regions is not enabled (it's turned off in about:flags in Chrome) then the following should be true

    document.body.style.webkitRegionOverflow == undefined

Currently it'll return an empty string.

2. Additionally, in http://adobe.github.com/web-platform/utilities/css-regions-support-matrix/
One of the assertions ('Initial default value for region-overflow') will pass in Chrome Canary with the flag turned off.  Chrome should score a 0 with the feature turned off.

3. With this fixed, feature detects would fail fast:
https://github.com/Modernizr/Modernizr/blob/b18048b4b4245326d7f6f5a998df58050acf51a9/feature-detects/css-regions.js#L12-17

4. More importantly, this may end up being a false positive in the upcoming @supports functionality (bug 86146)

Thanks!

(Feel free to rename ticket if I've gotten the details wrong)
Comment 1 Hajime Morrita 2012-10-14 05:42:47 PDT
*** Bug 98884 has been marked as a duplicate of this bug. ***
Comment 2 Michelangelo De Simone 2013-06-13 20:26:58 PDT
This seems to be a Chromium bug, closing.
Comment 3 Mihai Balan 2013-06-14 02:13:38 PDT
The bug actually has some WebKit ramifications, too.
Keeping it open.
Comment 4 Mihai Balan 2014-02-03 07:30:37 PST
Since Regions are enabled by default in Safari, will close as RESOLVED/INVALID